hexsha stringlengths 40 40 | size int64 5 2.72M | ext stringclasses 5 values | lang stringclasses 1 value | max_stars_repo_path stringlengths 3 976 | max_stars_repo_name stringlengths 5 113 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringdate 2015-01-01 00:01:43 2022-03-31 23:59:48 ⌀ | max_stars_repo_stars_event_max_datetime stringdate 2015-01-01 00:06:24 2022-03-31 23:59:53 ⌀ | max_issues_repo_path stringlengths 3 976 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count float64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 976 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringdate 2015-01-01 00:01:19 2022-03-31 23:59:49 ⌀ | max_forks_repo_forks_event_max_datetime stringdate 2015-01-03 12:00:57 2022-03-31 23:59:49 ⌀ | content stringlengths 5 2.72M | avg_line_length float64 1.38 573k | max_line_length int64 2 1.01M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ec8974eac97ae1d0ce78699c26a2cd58e5c974c3 | 14,970 | c | C | src/agent/test/ofp_role_test.c | ryoon/lagopus | 624b27b28121c913764cb8de8f14e8f586651442 | [
"Apache-2.0"
] | 2 | 2016-05-21T18:17:01.000Z | 2016-06-23T15:38:03.000Z | src/agent/test/ofp_role_test.c | ryoon/lagopus | 624b27b28121c913764cb8de8f14e8f586651442 | [
"Apache-2.0"
] | null | null | null | src/agent/test/ofp_role_test.c | ryoon/lagopus | 624b27b28121c913764cb8de8f14e8f586651442 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2014-2016 Nippon Telegraph and Telephone Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <sys/queue.h>
#include "unity.h"
#include "lagopus_apis.h"
#include "lagopus_session.h"
#include "lagopus/pbuf.h"
#include "lagopus/flowdb.h"
#include "openflow13.h"
#include "handler_test_utils.h"
#include "../channel_mgr.h"
#include "../channel.h"
#include "../ofp_apis.h"
static
bool test_closed = false;
static
struct ofp_async_config test_role_mask;
void
setUp(void) {
}
void
tearDown(void) {
}
static lagopus_result_t
ofp_role_channel_update_find_wrap(struct channel **channels,
struct ofp_header *xid_headers) {
struct ofp_role_request role_request;
lagopus_result_t ret;
uint64_t dpid = 0x01;
(void) xid_headers;
/* Call func (update channels[1] : equal -> slave). */
role_request.role = OFPCR_ROLE_SLAVE;
ret = ofp_role_channel_update(channels[1], &role_request, dpid);
TEST_ASSERT_EQUAL_MESSAGE(LAGOPUS_RESULT_OK, ret,
"ofp_role_channel_update error.");
/* Call func (update channels[0] : nochange). */
role_request.role = OFPCR_ROLE_NOCHANGE;
ret = ofp_role_channel_update(channels[0], &role_request, dpid);
TEST_ASSERT_EQUAL_MESSAGE(LAGOPUS_RESULT_OK, ret,
"ofp_role_channel_update error.");
/* Call func (update channels[0] : equal -> master). */
role_request.role = OFPCR_ROLE_MASTER;
ret = ofp_role_channel_update(channels[0], &role_request, dpid);
TEST_ASSERT_EQUAL_MESSAGE(LAGOPUS_RESULT_OK, ret,
"ofp_role_channel_update error.");
/* Call func (channel is NULL). */
role_request.role = OFPCR_ROLE_SLAVE;
ret = ofp_role_channel_update(NULL, &role_request, dpid);
TEST_ASSERT_EQUAL_MESSAGE(LAGOPUS_RESULT_INVALID_ARGS, ret,
"ofp_role_channel_update error.");
/* Call func (role_request is NULL). */
ret = ofp_role_channel_update(channels[0], NULL, dpid);
TEST_ASSERT_EQUAL_MESSAGE(LAGOPUS_RESULT_INVALID_ARGS, ret,
"ofp_role_channel_update error.");
return LAGOPUS_RESULT_OK;
}
void
test_prologue(void) {
lagopus_result_t r;
const char *argv0 =
((IS_VALID_STRING(lagopus_get_command_name()) == true) ?
lagopus_get_command_name() : "callout_test");
const char * const argv[] = {
argv0, NULL
};
#define N_CALLOUT_WORKERS 1
(void)lagopus_mainloop_set_callout_workers_number(N_CALLOUT_WORKERS);
r = lagopus_mainloop_with_callout(1, argv, NULL, NULL,
false, false, true);
TEST_ASSERT_EQUAL(r, LAGOPUS_RESULT_OK);
channel_mgr_initialize();
}
void
test_ofp_role_channel_update_find(void) {
(void) check_use_channels(ofp_role_channel_update_find_wrap);
}
static lagopus_result_t
ofp_role_channel_check_mask_wrap(struct channel **channels,
struct ofp_header *xid_headers) {
struct ofp_async_config role_mask;
bool rv;
int i;
int j;
uint8_t reason = 0x01;
int type_test_num = 3;
uint8_t type[] = {OFPT_PACKET_IN,
OFPT_FLOW_REMOVED,
OFPT_PORT_STATUS
};
int role_test_num = 3;
uint32_t role[] = {OFPCR_ROLE_MASTER,
OFPCR_ROLE_EQUAL,
OFPCR_ROLE_SLAVE
};
(void) xid_headers;
for (i = 0; i < type_test_num; i++) {
for (j = 0; j < role_test_num; j++) {
/* Call func. (Result true.) */
channel_role_mask_get(channels[0], &role_mask);
rv = ofp_role_channel_check_mask(&role_mask, type[i], reason, role[j]);
TEST_ASSERT_EQUAL_MESSAGE(true, rv,
"ofp_role_channel_check_mask error.");
}
}
/* unset mask. */
for (i = 0; i < 2; i++) {
role_mask.packet_in_mask[i] = 0x00;
role_mask.port_status_mask[i] = 0x00;
role_mask.flow_removed_mask[i] = 0x00;
}
for (i = 0; i < type_test_num; i++) {
for (j = 0; j < role_test_num; j++) {
/* Call func. (Result false.) */
rv = ofp_role_channel_check_mask(&role_mask, type[i],
reason, role[j]);
TEST_ASSERT_EQUAL_MESSAGE(false, rv,
"ofp_role_channel_check_mask error.");
}
}
/* set mask packet_in_mask[master, equal] only. */
for (i = 0; i < 2; i++) {
role_mask.packet_in_mask[i] = 0x01;
role_mask.port_status_mask[i] = 0x01;
role_mask.flow_removed_mask[i] = 0x01;
}
role_mask.packet_in_mask[0] = 0x02;
for (i = 0; i < type_test_num; i++) {
for (j = 0; j < role_test_num; j++) {
/* Call func. (Result false.) */
rv = ofp_role_channel_check_mask(&role_mask, type[i],
reason, role[j]);
if (i == 0 && (j == 0 || j == 1)) {
/* packet_in_mask[master, equal] */
TEST_ASSERT_EQUAL_MESSAGE(true, rv,
"ofp_role_channel_check_mask(packet_in, master) error.");
} else {
TEST_ASSERT_EQUAL_MESSAGE(false, rv,
"ofp_role_channel_check_mask error.");
}
}
}
/* Call func (Arg is NULL). */
rv = ofp_role_channel_check_mask(NULL, type[0], reason, role[0]);
TEST_ASSERT_EQUAL_MESSAGE(false, rv,
"ofp_role_channel_check_mask error.");
/* Call func (unsport ofp type). */
rv = ofp_role_channel_check_mask(&role_mask, OFPT_PACKET_OUT,
reason, role[0]);
TEST_ASSERT_EQUAL_MESSAGE(false, rv,
"ofp_role_channel_check_mask error.");
/* Call func (unsport role type). */
rv = ofp_role_channel_check_mask(&role_mask, type[0],
reason, OFPCR_ROLE_NOCHANGE);
TEST_ASSERT_EQUAL_MESSAGE(false, rv,
"ofp_role_channel_check_mask error.");
return LAGOPUS_RESULT_OK;
}
void
test_ofp_role_channel_check_mask(void) {
(void) check_use_channels(ofp_role_channel_check_mask_wrap);
}
static lagopus_result_t
ofp_role_channel_write_wrap(struct channel **channels,
struct ofp_header *xid_headers,
struct pbuf *pbuf) {
lagopus_result_t ret = LAGOPUS_RESULT_ANY_FAILURES;
uint64_t dpid = 0xabc;
uint8_t reason = 0x01;
int i;
(void) channels;
(void) xid_headers;
for (i = 0; i < CHANNEL_MAX_NUM; i++) {
channel_role_mask_set(channels[i], &test_role_mask);
}
ret = ofp_role_channel_write(pbuf, dpid, OFPT_PACKET_IN, reason);
return ret;
}
void
test_ofp_role_channel_write(void) {
lagopus_result_t ret;
int i;
/* set role mask. */
for (i = 0; i < 2; i++) {
test_role_mask.packet_in_mask[i] = 0xff;
test_role_mask.port_status_mask[i] = 0xff;
test_role_mask.flow_removed_mask[i] = 0xff;
}
ret = check_use_channels_send(ofp_role_channel_write_wrap,
"04 10 00 08 00 00 00 64");
TEST_ASSERT_EQUAL_MESSAGE(LAGOPUS_RESULT_OK, ret,
"ofp_role_channel_write error.");
}
void
test_ofp_role_channel_write_filtering(void) {
lagopus_result_t ret;
int i;
/* set role mask. */
for (i = 0; i < 2; i++) {
test_role_mask.packet_in_mask[i] = 0x00;
test_role_mask.port_status_mask[i] = 0x00;
test_role_mask.flow_removed_mask[i] = 0x00;
}
ret = check_use_channels_send(ofp_role_channel_write_wrap,
"04 10 00 08 00 00 00 64");
TEST_ASSERT_EQUAL_MESSAGE(LAGOPUS_RESULT_OK, ret,
"ofp_role_channel_write(filtering) error.");
}
static void
ofp_role_check_wrap(struct channel **channels,
struct ofp_header *xid_headers,
struct pbuf *pbuf) {
bool ret;
int i;
int ofp_type_num = 10;
uint8_t type[] = {OFPT_SET_CONFIG, OFPT_TABLE_MOD,
OFPT_FLOW_MOD, OFPT_GROUP_MOD,
OFPT_PORT_MOD, OFPT_METER_MOD,
OFPT_PACKET_OUT, OFPT_PACKET_IN,
OFPT_FLOW_REMOVED, OFPT_FEATURES_REQUEST
};
(void) pbuf;
/* role is equal. */
channel_role_set(channels[0], OFPCR_ROLE_EQUAL);
for (i = 0; i < ofp_type_num; i++) {
xid_headers[0].type = type[i];
ret = ofp_role_check(channels[0], &xid_headers[0]);
TEST_ASSERT_EQUAL_MESSAGE(true, ret, "ofp_role_check error.");
}
/* role is master. */
channel_role_set(channels[0], OFPCR_ROLE_MASTER);
for (i = 0; i < ofp_type_num; i++) {
xid_headers[0].type = type[i];
ret = ofp_role_check(channels[0], &xid_headers[0]);
TEST_ASSERT_EQUAL_MESSAGE(true, ret, "ofp_role_check error.");
}
/* role is slave. */
channel_role_set(channels[0], OFPCR_ROLE_SLAVE);
for (i = 0; i < ofp_type_num; i++) {
xid_headers[0].type = type[i];
ret = ofp_role_check(channels[0], &xid_headers[0]);
if (type[i] == OFPT_FEATURES_REQUEST) {
TEST_ASSERT_EQUAL_MESSAGE(true, ret, "ofp_role_check error.");
} else {
TEST_ASSERT_EQUAL_MESSAGE(false, ret, "ofp_role_check error.");
}
}
}
void
test_ofp_role_check(void) {
data_create(ofp_role_check_wrap, "");
}
static void
ofp_role_check_null_wrap(struct channel **channels,
struct ofp_header *xid_headers,
struct pbuf *pbuf) {
bool ret;
(void) pbuf;
ret = ofp_role_check(NULL, &xid_headers[0]);
TEST_ASSERT_EQUAL_MESSAGE(false, ret, "ofp_role_check error.");
ret = ofp_role_check(channels[0], NULL);
TEST_ASSERT_EQUAL_MESSAGE(false, ret, "ofp_role_check error.");
}
void
test_ofp_role_check_null(void) {
data_create(ofp_role_check_null_wrap, "");
}
static void
ofp_role_mp_check_wrap(struct channel **channels,
struct ofp_header *xid_headers,
struct pbuf *pbuf) {
bool ret;
int i;
int ofp_type_num = 2;
uint8_t type[] = {OFPMP_TABLE_FEATURES,
OFPMP_QUEUE
};
struct ofp_multipart_request multipart;
(void) xid_headers;
/* role is equal. */
channel_role_set(channels[0], OFPCR_ROLE_EQUAL);
for (i = 0; i < ofp_type_num; i++) {
multipart.type = type[i];
ret = ofp_role_mp_check(channels[0], pbuf,
&multipart);
TEST_ASSERT_EQUAL_MESSAGE(true, ret, "ofp_role_mp_check error.");
}
/* role is master. */
channel_role_set(channels[0], OFPCR_ROLE_MASTER);
for (i = 0; i < ofp_type_num; i++) {
multipart.type = type[i];
ret = ofp_role_mp_check(channels[0], pbuf,
&multipart);
TEST_ASSERT_EQUAL_MESSAGE(true, ret, "ofp_role_mp_check error.");
}
/* role is slave and body is not empty. */
channel_role_set(channels[0], OFPCR_ROLE_SLAVE);
for (i = 0; i < ofp_type_num; i++) {
multipart.type = type[i];
ret = ofp_role_mp_check(channels[0], pbuf,
&multipart);
if (type[i] == OFPMP_TABLE_FEATURES) {
TEST_ASSERT_EQUAL_MESSAGE(false, ret, "ofp_role_mp_check error.");
} else {
TEST_ASSERT_EQUAL_MESSAGE(true, ret, "ofp_role_mp_check error.");
}
}
/* role is slave and body is empty. */
channel_role_set(channels[0], OFPCR_ROLE_SLAVE);
pbuf->plen = 0;
for (i = 0; i < ofp_type_num; i++) {
multipart.type = type[i];
ret = ofp_role_mp_check(channels[0], pbuf,
&multipart);
TEST_ASSERT_EQUAL_MESSAGE(true, ret, "ofp_role_mp_check error.");
}
}
void
test_ofp_role_mp_check(void) {
data_create(ofp_role_mp_check_wrap,
"00 00 00 00 00 00 00 00");
}
static void
ofp_role_mp_check_null_wrap(struct channel **channels,
struct ofp_header *xid_headers,
struct pbuf *pbuf) {
bool ret;
struct ofp_multipart_request multipart;
(void) xid_headers;
ret = ofp_role_mp_check(NULL, pbuf,
&multipart);
TEST_ASSERT_EQUAL_MESSAGE(false, ret, "ofp_role_mp_check error.");
ret = ofp_role_mp_check(channels[0], NULL,
&multipart);
TEST_ASSERT_EQUAL_MESSAGE(false, ret, "ofp_role_mp_check error.");
ret = ofp_role_mp_check(channels[0], pbuf, NULL);
TEST_ASSERT_EQUAL_MESSAGE(false, ret, "ofp_role_mp_check error.");
}
void
test_role_mp_null_check(void) {
data_create(ofp_role_mp_check_null_wrap, "");
}
static lagopus_result_t
ofp_role_generation_id_check_wrap(struct channel **channels,
struct ofp_header *xid_headers) {
bool rt;
uint64_t dpid = 0xabc;
(void) channels;
(void) xid_headers;
/* new generation_id. */
rt = ofp_role_generation_id_check(dpid, OFPCR_ROLE_SLAVE, 0x10);
TEST_ASSERT_EQUAL_MESSAGE(true, rt,
"ofp_role_generation_id_check error.");
/* same generation_id. */
rt = ofp_role_generation_id_check(dpid, OFPCR_ROLE_SLAVE, 0x10);
TEST_ASSERT_EQUAL_MESSAGE(true, rt,
"ofp_role_generation_id_check error.");
/* small generation_id. */
rt = ofp_role_generation_id_check(dpid, OFPCR_ROLE_SLAVE, 0x0f);
TEST_ASSERT_EQUAL_MESSAGE(false, rt,
"ofp_role_generation_id_check error.");
/* role is OFPCR_ROLE_EQUAL (small generation_id). */
rt = ofp_role_generation_id_check(dpid, OFPCR_ROLE_EQUAL, 0x0f);
TEST_ASSERT_EQUAL_MESSAGE(true, rt,
"ofp_role_generation_id_check error.");
/* same small generation_id. */
rt = ofp_role_generation_id_check(dpid, OFPCR_ROLE_SLAVE, 0x0f);
TEST_ASSERT_EQUAL_MESSAGE(false, rt,
"ofp_role_generation_id_check error.");
/* large generation_id. */
rt = ofp_role_generation_id_check(dpid, OFPCR_ROLE_SLAVE, 0x11);
TEST_ASSERT_EQUAL_MESSAGE(true, rt,
"ofp_role_generation_id_check error.");
/* minus generation_id. */
rt = ofp_role_generation_id_check(dpid, OFPCR_ROLE_SLAVE, 0xfffffffffffffffe);
TEST_ASSERT_EQUAL_MESSAGE(false, rt,
"ofp_role_generation_id_check error.");
return LAGOPUS_RESULT_OK;
}
void
test_ofp_role_generation_id_check(void) {
(void) check_use_channels(ofp_role_generation_id_check_wrap);
}
void
test_close(void) {
test_closed = true;
}
void
test_epilogue(void) {
lagopus_result_t r;
channel_mgr_finalize();
r = global_state_request_shutdown(SHUTDOWN_GRACEFULLY);
TEST_ASSERT_EQUAL(r, LAGOPUS_RESULT_OK);
lagopus_mainloop_wait_thread();
}
| 31.25261 | 91 | 0.644289 |
ec89d904b43e296b0b4d6029038d9adb0ebc3c25 | 178,348 | h | C | src/cpp/protobuf-3.5.1/src/google/protobuf/util/internal/testdata/struct.pb.h | zifter/conf_protobuf | 1a8639d6f2a2535ece30dde840c99ba8261b5d7d | [
"MIT"
] | 33 | 2016-05-06T14:23:20.000Z | 2021-06-03T16:53:12.000Z | src/cpp/protobuf-3.5.1/src/google/protobuf/util/internal/testdata/struct.pb.h | zifter/conf_protobuf | 1a8639d6f2a2535ece30dde840c99ba8261b5d7d | [
"MIT"
] | 2 | 2016-06-20T02:29:53.000Z | 2018-06-05T19:41:03.000Z | src/cpp/protobuf-3.5.1/src/google/protobuf/util/internal/testdata/struct.pb.h | zifter/conf_protobuf | 1a8639d6f2a2535ece30dde840c99ba8261b5d7d | [
"MIT"
] | 11 | 2016-05-27T08:41:55.000Z | 2019-11-18T10:33:22.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/util/internal/testdata/struct.proto
#ifndef PROTOBUF_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto__INCLUDED
#define PROTOBUF_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3005000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/map.h> // IWYU pragma: export
#include <google/protobuf/map_entry.h>
#include <google/protobuf/map_field_inl.h>
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/struct.pb.h>
// @@protoc_insertion_point(includes)
namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
static const ::google::protobuf::internal::ParseTableField entries[];
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
static const ::google::protobuf::internal::ParseTable schema[12];
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
static const ::google::protobuf::internal::SerializationTable serialization_table[];
static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
void InitDefaultsStructTestCasesImpl();
void InitDefaultsStructTestCases();
void InitDefaultsStructWrapperImpl();
void InitDefaultsStructWrapper();
void InitDefaultsValueWrapperImpl();
void InitDefaultsValueWrapper();
void InitDefaultsRepeatedValueWrapperImpl();
void InitDefaultsRepeatedValueWrapper();
void InitDefaultsListValueWrapperImpl();
void InitDefaultsListValueWrapper();
void InitDefaultsRepeatedListValueWrapperImpl();
void InitDefaultsRepeatedListValueWrapper();
void InitDefaultsMapOfStruct_StructMapEntry_DoNotUseImpl();
void InitDefaultsMapOfStruct_StructMapEntry_DoNotUse();
void InitDefaultsMapOfStruct_ValueMapEntry_DoNotUseImpl();
void InitDefaultsMapOfStruct_ValueMapEntry_DoNotUse();
void InitDefaultsMapOfStruct_ListvalueMapEntry_DoNotUseImpl();
void InitDefaultsMapOfStruct_ListvalueMapEntry_DoNotUse();
void InitDefaultsMapOfStructImpl();
void InitDefaultsMapOfStruct();
void InitDefaultsDummyImpl();
void InitDefaultsDummy();
void InitDefaultsStructTypeImpl();
void InitDefaultsStructType();
inline void InitDefaults() {
InitDefaultsStructTestCases();
InitDefaultsStructWrapper();
InitDefaultsValueWrapper();
InitDefaultsRepeatedValueWrapper();
InitDefaultsListValueWrapper();
InitDefaultsRepeatedListValueWrapper();
InitDefaultsMapOfStruct_StructMapEntry_DoNotUse();
InitDefaultsMapOfStruct_ValueMapEntry_DoNotUse();
InitDefaultsMapOfStruct_ListvalueMapEntry_DoNotUse();
InitDefaultsMapOfStruct();
InitDefaultsDummy();
InitDefaultsStructType();
}
} // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto
namespace google {
namespace protobuf {
namespace testing {
class Dummy;
class DummyDefaultTypeInternal;
extern DummyDefaultTypeInternal _Dummy_default_instance_;
class ListValueWrapper;
class ListValueWrapperDefaultTypeInternal;
extern ListValueWrapperDefaultTypeInternal _ListValueWrapper_default_instance_;
class MapOfStruct;
class MapOfStructDefaultTypeInternal;
extern MapOfStructDefaultTypeInternal _MapOfStruct_default_instance_;
class MapOfStruct_ListvalueMapEntry_DoNotUse;
class MapOfStruct_ListvalueMapEntry_DoNotUseDefaultTypeInternal;
extern MapOfStruct_ListvalueMapEntry_DoNotUseDefaultTypeInternal _MapOfStruct_ListvalueMapEntry_DoNotUse_default_instance_;
class MapOfStruct_StructMapEntry_DoNotUse;
class MapOfStruct_StructMapEntry_DoNotUseDefaultTypeInternal;
extern MapOfStruct_StructMapEntry_DoNotUseDefaultTypeInternal _MapOfStruct_StructMapEntry_DoNotUse_default_instance_;
class MapOfStruct_ValueMapEntry_DoNotUse;
class MapOfStruct_ValueMapEntry_DoNotUseDefaultTypeInternal;
extern MapOfStruct_ValueMapEntry_DoNotUseDefaultTypeInternal _MapOfStruct_ValueMapEntry_DoNotUse_default_instance_;
class RepeatedListValueWrapper;
class RepeatedListValueWrapperDefaultTypeInternal;
extern RepeatedListValueWrapperDefaultTypeInternal _RepeatedListValueWrapper_default_instance_;
class RepeatedValueWrapper;
class RepeatedValueWrapperDefaultTypeInternal;
extern RepeatedValueWrapperDefaultTypeInternal _RepeatedValueWrapper_default_instance_;
class StructTestCases;
class StructTestCasesDefaultTypeInternal;
extern StructTestCasesDefaultTypeInternal _StructTestCases_default_instance_;
class StructType;
class StructTypeDefaultTypeInternal;
extern StructTypeDefaultTypeInternal _StructType_default_instance_;
class StructWrapper;
class StructWrapperDefaultTypeInternal;
extern StructWrapperDefaultTypeInternal _StructWrapper_default_instance_;
class ValueWrapper;
class ValueWrapperDefaultTypeInternal;
extern ValueWrapperDefaultTypeInternal _ValueWrapper_default_instance_;
} // namespace testing
} // namespace protobuf
} // namespace google
namespace google {
namespace protobuf {
namespace testing {
// ===================================================================
class StructTestCases : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.StructTestCases) */ {
public:
StructTestCases();
virtual ~StructTestCases();
StructTestCases(const StructTestCases& from);
inline StructTestCases& operator=(const StructTestCases& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
StructTestCases(StructTestCases&& from) noexcept
: StructTestCases() {
*this = ::std::move(from);
}
inline StructTestCases& operator=(StructTestCases&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const StructTestCases& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const StructTestCases* internal_default_instance() {
return reinterpret_cast<const StructTestCases*>(
&_StructTestCases_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
0;
void Swap(StructTestCases* other);
friend void swap(StructTestCases& a, StructTestCases& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline StructTestCases* New() const PROTOBUF_FINAL { return New(NULL); }
StructTestCases* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const StructTestCases& from);
void MergeFrom(const StructTestCases& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(StructTestCases* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// .google.protobuf.testing.StructWrapper empty_value = 1;
bool has_empty_value() const;
void clear_empty_value();
static const int kEmptyValueFieldNumber = 1;
const ::google::protobuf::testing::StructWrapper& empty_value() const;
::google::protobuf::testing::StructWrapper* release_empty_value();
::google::protobuf::testing::StructWrapper* mutable_empty_value();
void set_allocated_empty_value(::google::protobuf::testing::StructWrapper* empty_value);
// .google.protobuf.testing.StructWrapper empty_value2 = 2;
bool has_empty_value2() const;
void clear_empty_value2();
static const int kEmptyValue2FieldNumber = 2;
const ::google::protobuf::testing::StructWrapper& empty_value2() const;
::google::protobuf::testing::StructWrapper* release_empty_value2();
::google::protobuf::testing::StructWrapper* mutable_empty_value2();
void set_allocated_empty_value2(::google::protobuf::testing::StructWrapper* empty_value2);
// .google.protobuf.testing.StructWrapper null_value = 3;
bool has_null_value() const;
void clear_null_value();
static const int kNullValueFieldNumber = 3;
const ::google::protobuf::testing::StructWrapper& null_value() const;
::google::protobuf::testing::StructWrapper* release_null_value();
::google::protobuf::testing::StructWrapper* mutable_null_value();
void set_allocated_null_value(::google::protobuf::testing::StructWrapper* null_value);
// .google.protobuf.testing.StructWrapper simple_struct = 4;
bool has_simple_struct() const;
void clear_simple_struct();
static const int kSimpleStructFieldNumber = 4;
const ::google::protobuf::testing::StructWrapper& simple_struct() const;
::google::protobuf::testing::StructWrapper* release_simple_struct();
::google::protobuf::testing::StructWrapper* mutable_simple_struct();
void set_allocated_simple_struct(::google::protobuf::testing::StructWrapper* simple_struct);
// .google.protobuf.testing.StructWrapper longer_struct = 5;
bool has_longer_struct() const;
void clear_longer_struct();
static const int kLongerStructFieldNumber = 5;
const ::google::protobuf::testing::StructWrapper& longer_struct() const;
::google::protobuf::testing::StructWrapper* release_longer_struct();
::google::protobuf::testing::StructWrapper* mutable_longer_struct();
void set_allocated_longer_struct(::google::protobuf::testing::StructWrapper* longer_struct);
// .google.protobuf.testing.StructWrapper struct_with_nested_struct = 6;
bool has_struct_with_nested_struct() const;
void clear_struct_with_nested_struct();
static const int kStructWithNestedStructFieldNumber = 6;
const ::google::protobuf::testing::StructWrapper& struct_with_nested_struct() const;
::google::protobuf::testing::StructWrapper* release_struct_with_nested_struct();
::google::protobuf::testing::StructWrapper* mutable_struct_with_nested_struct();
void set_allocated_struct_with_nested_struct(::google::protobuf::testing::StructWrapper* struct_with_nested_struct);
// .google.protobuf.testing.StructWrapper struct_with_nested_list = 7;
bool has_struct_with_nested_list() const;
void clear_struct_with_nested_list();
static const int kStructWithNestedListFieldNumber = 7;
const ::google::protobuf::testing::StructWrapper& struct_with_nested_list() const;
::google::protobuf::testing::StructWrapper* release_struct_with_nested_list();
::google::protobuf::testing::StructWrapper* mutable_struct_with_nested_list();
void set_allocated_struct_with_nested_list(::google::protobuf::testing::StructWrapper* struct_with_nested_list);
// .google.protobuf.testing.StructWrapper struct_with_list_of_nulls = 8;
bool has_struct_with_list_of_nulls() const;
void clear_struct_with_list_of_nulls();
static const int kStructWithListOfNullsFieldNumber = 8;
const ::google::protobuf::testing::StructWrapper& struct_with_list_of_nulls() const;
::google::protobuf::testing::StructWrapper* release_struct_with_list_of_nulls();
::google::protobuf::testing::StructWrapper* mutable_struct_with_list_of_nulls();
void set_allocated_struct_with_list_of_nulls(::google::protobuf::testing::StructWrapper* struct_with_list_of_nulls);
// .google.protobuf.testing.StructWrapper struct_with_list_of_lists = 9;
bool has_struct_with_list_of_lists() const;
void clear_struct_with_list_of_lists();
static const int kStructWithListOfListsFieldNumber = 9;
const ::google::protobuf::testing::StructWrapper& struct_with_list_of_lists() const;
::google::protobuf::testing::StructWrapper* release_struct_with_list_of_lists();
::google::protobuf::testing::StructWrapper* mutable_struct_with_list_of_lists();
void set_allocated_struct_with_list_of_lists(::google::protobuf::testing::StructWrapper* struct_with_list_of_lists);
// .google.protobuf.testing.StructWrapper struct_with_list_of_structs = 10;
bool has_struct_with_list_of_structs() const;
void clear_struct_with_list_of_structs();
static const int kStructWithListOfStructsFieldNumber = 10;
const ::google::protobuf::testing::StructWrapper& struct_with_list_of_structs() const;
::google::protobuf::testing::StructWrapper* release_struct_with_list_of_structs();
::google::protobuf::testing::StructWrapper* mutable_struct_with_list_of_structs();
void set_allocated_struct_with_list_of_structs(::google::protobuf::testing::StructWrapper* struct_with_list_of_structs);
// .google.protobuf.testing.StructWrapper struct_with_empty_list = 11;
bool has_struct_with_empty_list() const;
void clear_struct_with_empty_list();
static const int kStructWithEmptyListFieldNumber = 11;
const ::google::protobuf::testing::StructWrapper& struct_with_empty_list() const;
::google::protobuf::testing::StructWrapper* release_struct_with_empty_list();
::google::protobuf::testing::StructWrapper* mutable_struct_with_empty_list();
void set_allocated_struct_with_empty_list(::google::protobuf::testing::StructWrapper* struct_with_empty_list);
// .google.protobuf.testing.StructWrapper struct_with_list_with_empty_struct = 12;
bool has_struct_with_list_with_empty_struct() const;
void clear_struct_with_list_with_empty_struct();
static const int kStructWithListWithEmptyStructFieldNumber = 12;
const ::google::protobuf::testing::StructWrapper& struct_with_list_with_empty_struct() const;
::google::protobuf::testing::StructWrapper* release_struct_with_list_with_empty_struct();
::google::protobuf::testing::StructWrapper* mutable_struct_with_list_with_empty_struct();
void set_allocated_struct_with_list_with_empty_struct(::google::protobuf::testing::StructWrapper* struct_with_list_with_empty_struct);
// .google.protobuf.Struct top_level_struct = 13;
bool has_top_level_struct() const;
void clear_top_level_struct();
static const int kTopLevelStructFieldNumber = 13;
const ::google::protobuf::Struct& top_level_struct() const;
::google::protobuf::Struct* release_top_level_struct();
::google::protobuf::Struct* mutable_top_level_struct();
void set_allocated_top_level_struct(::google::protobuf::Struct* top_level_struct);
// .google.protobuf.Struct top_level_struct_with_empty_list = 14;
bool has_top_level_struct_with_empty_list() const;
void clear_top_level_struct_with_empty_list();
static const int kTopLevelStructWithEmptyListFieldNumber = 14;
const ::google::protobuf::Struct& top_level_struct_with_empty_list() const;
::google::protobuf::Struct* release_top_level_struct_with_empty_list();
::google::protobuf::Struct* mutable_top_level_struct_with_empty_list();
void set_allocated_top_level_struct_with_empty_list(::google::protobuf::Struct* top_level_struct_with_empty_list);
// .google.protobuf.Struct top_level_struct_with_list_with_empty_struct = 15;
bool has_top_level_struct_with_list_with_empty_struct() const;
void clear_top_level_struct_with_list_with_empty_struct();
static const int kTopLevelStructWithListWithEmptyStructFieldNumber = 15;
const ::google::protobuf::Struct& top_level_struct_with_list_with_empty_struct() const;
::google::protobuf::Struct* release_top_level_struct_with_list_with_empty_struct();
::google::protobuf::Struct* mutable_top_level_struct_with_list_with_empty_struct();
void set_allocated_top_level_struct_with_list_with_empty_struct(::google::protobuf::Struct* top_level_struct_with_list_with_empty_struct);
// .google.protobuf.testing.ValueWrapper value_wrapper_simple = 16;
bool has_value_wrapper_simple() const;
void clear_value_wrapper_simple();
static const int kValueWrapperSimpleFieldNumber = 16;
const ::google::protobuf::testing::ValueWrapper& value_wrapper_simple() const;
::google::protobuf::testing::ValueWrapper* release_value_wrapper_simple();
::google::protobuf::testing::ValueWrapper* mutable_value_wrapper_simple();
void set_allocated_value_wrapper_simple(::google::protobuf::testing::ValueWrapper* value_wrapper_simple);
// .google.protobuf.testing.ValueWrapper value_wrapper_with_struct = 17;
bool has_value_wrapper_with_struct() const;
void clear_value_wrapper_with_struct();
static const int kValueWrapperWithStructFieldNumber = 17;
const ::google::protobuf::testing::ValueWrapper& value_wrapper_with_struct() const;
::google::protobuf::testing::ValueWrapper* release_value_wrapper_with_struct();
::google::protobuf::testing::ValueWrapper* mutable_value_wrapper_with_struct();
void set_allocated_value_wrapper_with_struct(::google::protobuf::testing::ValueWrapper* value_wrapper_with_struct);
// .google.protobuf.testing.ValueWrapper value_wrapper_with_list = 18;
bool has_value_wrapper_with_list() const;
void clear_value_wrapper_with_list();
static const int kValueWrapperWithListFieldNumber = 18;
const ::google::protobuf::testing::ValueWrapper& value_wrapper_with_list() const;
::google::protobuf::testing::ValueWrapper* release_value_wrapper_with_list();
::google::protobuf::testing::ValueWrapper* mutable_value_wrapper_with_list();
void set_allocated_value_wrapper_with_list(::google::protobuf::testing::ValueWrapper* value_wrapper_with_list);
// .google.protobuf.testing.ValueWrapper value_wrapper_with_empty_list = 19;
bool has_value_wrapper_with_empty_list() const;
void clear_value_wrapper_with_empty_list();
static const int kValueWrapperWithEmptyListFieldNumber = 19;
const ::google::protobuf::testing::ValueWrapper& value_wrapper_with_empty_list() const;
::google::protobuf::testing::ValueWrapper* release_value_wrapper_with_empty_list();
::google::protobuf::testing::ValueWrapper* mutable_value_wrapper_with_empty_list();
void set_allocated_value_wrapper_with_empty_list(::google::protobuf::testing::ValueWrapper* value_wrapper_with_empty_list);
// .google.protobuf.testing.ValueWrapper value_wrapper_with_list_with_empty_struct = 20;
bool has_value_wrapper_with_list_with_empty_struct() const;
void clear_value_wrapper_with_list_with_empty_struct();
static const int kValueWrapperWithListWithEmptyStructFieldNumber = 20;
const ::google::protobuf::testing::ValueWrapper& value_wrapper_with_list_with_empty_struct() const;
::google::protobuf::testing::ValueWrapper* release_value_wrapper_with_list_with_empty_struct();
::google::protobuf::testing::ValueWrapper* mutable_value_wrapper_with_list_with_empty_struct();
void set_allocated_value_wrapper_with_list_with_empty_struct(::google::protobuf::testing::ValueWrapper* value_wrapper_with_list_with_empty_struct);
// .google.protobuf.testing.ListValueWrapper list_value_wrapper = 21;
bool has_list_value_wrapper() const;
void clear_list_value_wrapper();
static const int kListValueWrapperFieldNumber = 21;
const ::google::protobuf::testing::ListValueWrapper& list_value_wrapper() const;
::google::protobuf::testing::ListValueWrapper* release_list_value_wrapper();
::google::protobuf::testing::ListValueWrapper* mutable_list_value_wrapper();
void set_allocated_list_value_wrapper(::google::protobuf::testing::ListValueWrapper* list_value_wrapper);
// .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_empty_list = 22;
bool has_list_value_wrapper_with_empty_list() const;
void clear_list_value_wrapper_with_empty_list();
static const int kListValueWrapperWithEmptyListFieldNumber = 22;
const ::google::protobuf::testing::ListValueWrapper& list_value_wrapper_with_empty_list() const;
::google::protobuf::testing::ListValueWrapper* release_list_value_wrapper_with_empty_list();
::google::protobuf::testing::ListValueWrapper* mutable_list_value_wrapper_with_empty_list();
void set_allocated_list_value_wrapper_with_empty_list(::google::protobuf::testing::ListValueWrapper* list_value_wrapper_with_empty_list);
// .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_list_with_empty_struct = 23;
bool has_list_value_wrapper_with_list_with_empty_struct() const;
void clear_list_value_wrapper_with_list_with_empty_struct();
static const int kListValueWrapperWithListWithEmptyStructFieldNumber = 23;
const ::google::protobuf::testing::ListValueWrapper& list_value_wrapper_with_list_with_empty_struct() const;
::google::protobuf::testing::ListValueWrapper* release_list_value_wrapper_with_list_with_empty_struct();
::google::protobuf::testing::ListValueWrapper* mutable_list_value_wrapper_with_list_with_empty_struct();
void set_allocated_list_value_wrapper_with_list_with_empty_struct(::google::protobuf::testing::ListValueWrapper* list_value_wrapper_with_list_with_empty_struct);
// .google.protobuf.Value top_level_value_simple = 24;
bool has_top_level_value_simple() const;
void clear_top_level_value_simple();
static const int kTopLevelValueSimpleFieldNumber = 24;
const ::google::protobuf::Value& top_level_value_simple() const;
::google::protobuf::Value* release_top_level_value_simple();
::google::protobuf::Value* mutable_top_level_value_simple();
void set_allocated_top_level_value_simple(::google::protobuf::Value* top_level_value_simple);
// .google.protobuf.Value top_level_value_with_struct = 25;
bool has_top_level_value_with_struct() const;
void clear_top_level_value_with_struct();
static const int kTopLevelValueWithStructFieldNumber = 25;
const ::google::protobuf::Value& top_level_value_with_struct() const;
::google::protobuf::Value* release_top_level_value_with_struct();
::google::protobuf::Value* mutable_top_level_value_with_struct();
void set_allocated_top_level_value_with_struct(::google::protobuf::Value* top_level_value_with_struct);
// .google.protobuf.Value top_level_value_with_list = 26;
bool has_top_level_value_with_list() const;
void clear_top_level_value_with_list();
static const int kTopLevelValueWithListFieldNumber = 26;
const ::google::protobuf::Value& top_level_value_with_list() const;
::google::protobuf::Value* release_top_level_value_with_list();
::google::protobuf::Value* mutable_top_level_value_with_list();
void set_allocated_top_level_value_with_list(::google::protobuf::Value* top_level_value_with_list);
// .google.protobuf.Value top_level_value_with_empty_list = 27;
bool has_top_level_value_with_empty_list() const;
void clear_top_level_value_with_empty_list();
static const int kTopLevelValueWithEmptyListFieldNumber = 27;
const ::google::protobuf::Value& top_level_value_with_empty_list() const;
::google::protobuf::Value* release_top_level_value_with_empty_list();
::google::protobuf::Value* mutable_top_level_value_with_empty_list();
void set_allocated_top_level_value_with_empty_list(::google::protobuf::Value* top_level_value_with_empty_list);
// .google.protobuf.Value top_level_value_with_list_with_empty_struct = 28;
bool has_top_level_value_with_list_with_empty_struct() const;
void clear_top_level_value_with_list_with_empty_struct();
static const int kTopLevelValueWithListWithEmptyStructFieldNumber = 28;
const ::google::protobuf::Value& top_level_value_with_list_with_empty_struct() const;
::google::protobuf::Value* release_top_level_value_with_list_with_empty_struct();
::google::protobuf::Value* mutable_top_level_value_with_list_with_empty_struct();
void set_allocated_top_level_value_with_list_with_empty_struct(::google::protobuf::Value* top_level_value_with_list_with_empty_struct);
// .google.protobuf.ListValue top_level_listvalue = 29;
bool has_top_level_listvalue() const;
void clear_top_level_listvalue();
static const int kTopLevelListvalueFieldNumber = 29;
const ::google::protobuf::ListValue& top_level_listvalue() const;
::google::protobuf::ListValue* release_top_level_listvalue();
::google::protobuf::ListValue* mutable_top_level_listvalue();
void set_allocated_top_level_listvalue(::google::protobuf::ListValue* top_level_listvalue);
// .google.protobuf.ListValue top_level_empty_listvalue = 30;
bool has_top_level_empty_listvalue() const;
void clear_top_level_empty_listvalue();
static const int kTopLevelEmptyListvalueFieldNumber = 30;
const ::google::protobuf::ListValue& top_level_empty_listvalue() const;
::google::protobuf::ListValue* release_top_level_empty_listvalue();
::google::protobuf::ListValue* mutable_top_level_empty_listvalue();
void set_allocated_top_level_empty_listvalue(::google::protobuf::ListValue* top_level_empty_listvalue);
// .google.protobuf.ListValue top_level_listvalue_with_empty_struct = 31;
bool has_top_level_listvalue_with_empty_struct() const;
void clear_top_level_listvalue_with_empty_struct();
static const int kTopLevelListvalueWithEmptyStructFieldNumber = 31;
const ::google::protobuf::ListValue& top_level_listvalue_with_empty_struct() const;
::google::protobuf::ListValue* release_top_level_listvalue_with_empty_struct();
::google::protobuf::ListValue* mutable_top_level_listvalue_with_empty_struct();
void set_allocated_top_level_listvalue_with_empty_struct(::google::protobuf::ListValue* top_level_listvalue_with_empty_struct);
// .google.protobuf.testing.RepeatedValueWrapper repeated_value = 32;
bool has_repeated_value() const;
void clear_repeated_value();
static const int kRepeatedValueFieldNumber = 32;
const ::google::protobuf::testing::RepeatedValueWrapper& repeated_value() const;
::google::protobuf::testing::RepeatedValueWrapper* release_repeated_value();
::google::protobuf::testing::RepeatedValueWrapper* mutable_repeated_value();
void set_allocated_repeated_value(::google::protobuf::testing::RepeatedValueWrapper* repeated_value);
// .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list = 33;
bool has_repeated_value_nested_list() const;
void clear_repeated_value_nested_list();
static const int kRepeatedValueNestedListFieldNumber = 33;
const ::google::protobuf::testing::RepeatedValueWrapper& repeated_value_nested_list() const;
::google::protobuf::testing::RepeatedValueWrapper* release_repeated_value_nested_list();
::google::protobuf::testing::RepeatedValueWrapper* mutable_repeated_value_nested_list();
void set_allocated_repeated_value_nested_list(::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list);
// .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list2 = 34;
bool has_repeated_value_nested_list2() const;
void clear_repeated_value_nested_list2();
static const int kRepeatedValueNestedList2FieldNumber = 34;
const ::google::protobuf::testing::RepeatedValueWrapper& repeated_value_nested_list2() const;
::google::protobuf::testing::RepeatedValueWrapper* release_repeated_value_nested_list2();
::google::protobuf::testing::RepeatedValueWrapper* mutable_repeated_value_nested_list2();
void set_allocated_repeated_value_nested_list2(::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list2);
// .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list3 = 35;
bool has_repeated_value_nested_list3() const;
void clear_repeated_value_nested_list3();
static const int kRepeatedValueNestedList3FieldNumber = 35;
const ::google::protobuf::testing::RepeatedValueWrapper& repeated_value_nested_list3() const;
::google::protobuf::testing::RepeatedValueWrapper* release_repeated_value_nested_list3();
::google::protobuf::testing::RepeatedValueWrapper* mutable_repeated_value_nested_list3();
void set_allocated_repeated_value_nested_list3(::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list3);
// .google.protobuf.testing.RepeatedListValueWrapper repeated_listvalue = 36;
bool has_repeated_listvalue() const;
void clear_repeated_listvalue();
static const int kRepeatedListvalueFieldNumber = 36;
const ::google::protobuf::testing::RepeatedListValueWrapper& repeated_listvalue() const;
::google::protobuf::testing::RepeatedListValueWrapper* release_repeated_listvalue();
::google::protobuf::testing::RepeatedListValueWrapper* mutable_repeated_listvalue();
void set_allocated_repeated_listvalue(::google::protobuf::testing::RepeatedListValueWrapper* repeated_listvalue);
// .google.protobuf.testing.MapOfStruct map_of_struct = 37;
bool has_map_of_struct() const;
void clear_map_of_struct();
static const int kMapOfStructFieldNumber = 37;
const ::google::protobuf::testing::MapOfStruct& map_of_struct() const;
::google::protobuf::testing::MapOfStruct* release_map_of_struct();
::google::protobuf::testing::MapOfStruct* mutable_map_of_struct();
void set_allocated_map_of_struct(::google::protobuf::testing::MapOfStruct* map_of_struct);
// .google.protobuf.testing.MapOfStruct map_of_struct_value = 38;
bool has_map_of_struct_value() const;
void clear_map_of_struct_value();
static const int kMapOfStructValueFieldNumber = 38;
const ::google::protobuf::testing::MapOfStruct& map_of_struct_value() const;
::google::protobuf::testing::MapOfStruct* release_map_of_struct_value();
::google::protobuf::testing::MapOfStruct* mutable_map_of_struct_value();
void set_allocated_map_of_struct_value(::google::protobuf::testing::MapOfStruct* map_of_struct_value);
// .google.protobuf.testing.MapOfStruct map_of_listvalue = 39;
bool has_map_of_listvalue() const;
void clear_map_of_listvalue();
static const int kMapOfListvalueFieldNumber = 39;
const ::google::protobuf::testing::MapOfStruct& map_of_listvalue() const;
::google::protobuf::testing::MapOfStruct* release_map_of_listvalue();
::google::protobuf::testing::MapOfStruct* mutable_map_of_listvalue();
void set_allocated_map_of_listvalue(::google::protobuf::testing::MapOfStruct* map_of_listvalue);
// @@protoc_insertion_point(class_scope:google.protobuf.testing.StructTestCases)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::testing::StructWrapper* empty_value_;
::google::protobuf::testing::StructWrapper* empty_value2_;
::google::protobuf::testing::StructWrapper* null_value_;
::google::protobuf::testing::StructWrapper* simple_struct_;
::google::protobuf::testing::StructWrapper* longer_struct_;
::google::protobuf::testing::StructWrapper* struct_with_nested_struct_;
::google::protobuf::testing::StructWrapper* struct_with_nested_list_;
::google::protobuf::testing::StructWrapper* struct_with_list_of_nulls_;
::google::protobuf::testing::StructWrapper* struct_with_list_of_lists_;
::google::protobuf::testing::StructWrapper* struct_with_list_of_structs_;
::google::protobuf::testing::StructWrapper* struct_with_empty_list_;
::google::protobuf::testing::StructWrapper* struct_with_list_with_empty_struct_;
::google::protobuf::Struct* top_level_struct_;
::google::protobuf::Struct* top_level_struct_with_empty_list_;
::google::protobuf::Struct* top_level_struct_with_list_with_empty_struct_;
::google::protobuf::testing::ValueWrapper* value_wrapper_simple_;
::google::protobuf::testing::ValueWrapper* value_wrapper_with_struct_;
::google::protobuf::testing::ValueWrapper* value_wrapper_with_list_;
::google::protobuf::testing::ValueWrapper* value_wrapper_with_empty_list_;
::google::protobuf::testing::ValueWrapper* value_wrapper_with_list_with_empty_struct_;
::google::protobuf::testing::ListValueWrapper* list_value_wrapper_;
::google::protobuf::testing::ListValueWrapper* list_value_wrapper_with_empty_list_;
::google::protobuf::testing::ListValueWrapper* list_value_wrapper_with_list_with_empty_struct_;
::google::protobuf::Value* top_level_value_simple_;
::google::protobuf::Value* top_level_value_with_struct_;
::google::protobuf::Value* top_level_value_with_list_;
::google::protobuf::Value* top_level_value_with_empty_list_;
::google::protobuf::Value* top_level_value_with_list_with_empty_struct_;
::google::protobuf::ListValue* top_level_listvalue_;
::google::protobuf::ListValue* top_level_empty_listvalue_;
::google::protobuf::ListValue* top_level_listvalue_with_empty_struct_;
::google::protobuf::testing::RepeatedValueWrapper* repeated_value_;
::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list_;
::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list2_;
::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list3_;
::google::protobuf::testing::RepeatedListValueWrapper* repeated_listvalue_;
::google::protobuf::testing::MapOfStruct* map_of_struct_;
::google::protobuf::testing::MapOfStruct* map_of_struct_value_;
::google::protobuf::testing::MapOfStruct* map_of_listvalue_;
mutable int _cached_size_;
friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
friend void ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::InitDefaultsStructTestCasesImpl();
};
// -------------------------------------------------------------------
class StructWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.StructWrapper) */ {
public:
StructWrapper();
virtual ~StructWrapper();
StructWrapper(const StructWrapper& from);
inline StructWrapper& operator=(const StructWrapper& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
StructWrapper(StructWrapper&& from) noexcept
: StructWrapper() {
*this = ::std::move(from);
}
inline StructWrapper& operator=(StructWrapper&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const StructWrapper& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const StructWrapper* internal_default_instance() {
return reinterpret_cast<const StructWrapper*>(
&_StructWrapper_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
1;
void Swap(StructWrapper* other);
friend void swap(StructWrapper& a, StructWrapper& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline StructWrapper* New() const PROTOBUF_FINAL { return New(NULL); }
StructWrapper* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const StructWrapper& from);
void MergeFrom(const StructWrapper& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(StructWrapper* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// .google.protobuf.Struct struct = 1;
bool has_struct_() const;
void clear_struct_();
static const int kStructFieldNumber = 1;
const ::google::protobuf::Struct& struct_() const;
::google::protobuf::Struct* release_struct_();
::google::protobuf::Struct* mutable_struct_();
void set_allocated_struct_(::google::protobuf::Struct* struct_);
// @@protoc_insertion_point(class_scope:google.protobuf.testing.StructWrapper)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::Struct* struct__;
mutable int _cached_size_;
friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
friend void ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::InitDefaultsStructWrapperImpl();
};
// -------------------------------------------------------------------
class ValueWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.ValueWrapper) */ {
public:
ValueWrapper();
virtual ~ValueWrapper();
ValueWrapper(const ValueWrapper& from);
inline ValueWrapper& operator=(const ValueWrapper& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
ValueWrapper(ValueWrapper&& from) noexcept
: ValueWrapper() {
*this = ::std::move(from);
}
inline ValueWrapper& operator=(ValueWrapper&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const ValueWrapper& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const ValueWrapper* internal_default_instance() {
return reinterpret_cast<const ValueWrapper*>(
&_ValueWrapper_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
2;
void Swap(ValueWrapper* other);
friend void swap(ValueWrapper& a, ValueWrapper& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline ValueWrapper* New() const PROTOBUF_FINAL { return New(NULL); }
ValueWrapper* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const ValueWrapper& from);
void MergeFrom(const ValueWrapper& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(ValueWrapper* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// .google.protobuf.Value value = 1;
bool has_value() const;
void clear_value();
static const int kValueFieldNumber = 1;
const ::google::protobuf::Value& value() const;
::google::protobuf::Value* release_value();
::google::protobuf::Value* mutable_value();
void set_allocated_value(::google::protobuf::Value* value);
// @@protoc_insertion_point(class_scope:google.protobuf.testing.ValueWrapper)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::Value* value_;
mutable int _cached_size_;
friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
friend void ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::InitDefaultsValueWrapperImpl();
};
// -------------------------------------------------------------------
class RepeatedValueWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.RepeatedValueWrapper) */ {
public:
RepeatedValueWrapper();
virtual ~RepeatedValueWrapper();
RepeatedValueWrapper(const RepeatedValueWrapper& from);
inline RepeatedValueWrapper& operator=(const RepeatedValueWrapper& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
RepeatedValueWrapper(RepeatedValueWrapper&& from) noexcept
: RepeatedValueWrapper() {
*this = ::std::move(from);
}
inline RepeatedValueWrapper& operator=(RepeatedValueWrapper&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const RepeatedValueWrapper& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const RepeatedValueWrapper* internal_default_instance() {
return reinterpret_cast<const RepeatedValueWrapper*>(
&_RepeatedValueWrapper_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
3;
void Swap(RepeatedValueWrapper* other);
friend void swap(RepeatedValueWrapper& a, RepeatedValueWrapper& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline RepeatedValueWrapper* New() const PROTOBUF_FINAL { return New(NULL); }
RepeatedValueWrapper* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const RepeatedValueWrapper& from);
void MergeFrom(const RepeatedValueWrapper& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(RepeatedValueWrapper* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .google.protobuf.Value values = 1;
int values_size() const;
void clear_values();
static const int kValuesFieldNumber = 1;
const ::google::protobuf::Value& values(int index) const;
::google::protobuf::Value* mutable_values(int index);
::google::protobuf::Value* add_values();
::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >*
mutable_values();
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >&
values() const;
// @@protoc_insertion_point(class_scope:google.protobuf.testing.RepeatedValueWrapper)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::RepeatedPtrField< ::google::protobuf::Value > values_;
mutable int _cached_size_;
friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
friend void ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::InitDefaultsRepeatedValueWrapperImpl();
};
// -------------------------------------------------------------------
class ListValueWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.ListValueWrapper) */ {
public:
ListValueWrapper();
virtual ~ListValueWrapper();
ListValueWrapper(const ListValueWrapper& from);
inline ListValueWrapper& operator=(const ListValueWrapper& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
ListValueWrapper(ListValueWrapper&& from) noexcept
: ListValueWrapper() {
*this = ::std::move(from);
}
inline ListValueWrapper& operator=(ListValueWrapper&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const ListValueWrapper& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const ListValueWrapper* internal_default_instance() {
return reinterpret_cast<const ListValueWrapper*>(
&_ListValueWrapper_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
4;
void Swap(ListValueWrapper* other);
friend void swap(ListValueWrapper& a, ListValueWrapper& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline ListValueWrapper* New() const PROTOBUF_FINAL { return New(NULL); }
ListValueWrapper* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const ListValueWrapper& from);
void MergeFrom(const ListValueWrapper& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(ListValueWrapper* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// .google.protobuf.ListValue shopping_list = 1;
bool has_shopping_list() const;
void clear_shopping_list();
static const int kShoppingListFieldNumber = 1;
const ::google::protobuf::ListValue& shopping_list() const;
::google::protobuf::ListValue* release_shopping_list();
::google::protobuf::ListValue* mutable_shopping_list();
void set_allocated_shopping_list(::google::protobuf::ListValue* shopping_list);
// @@protoc_insertion_point(class_scope:google.protobuf.testing.ListValueWrapper)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::ListValue* shopping_list_;
mutable int _cached_size_;
friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
friend void ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::InitDefaultsListValueWrapperImpl();
};
// -------------------------------------------------------------------
class RepeatedListValueWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.RepeatedListValueWrapper) */ {
public:
RepeatedListValueWrapper();
virtual ~RepeatedListValueWrapper();
RepeatedListValueWrapper(const RepeatedListValueWrapper& from);
inline RepeatedListValueWrapper& operator=(const RepeatedListValueWrapper& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
RepeatedListValueWrapper(RepeatedListValueWrapper&& from) noexcept
: RepeatedListValueWrapper() {
*this = ::std::move(from);
}
inline RepeatedListValueWrapper& operator=(RepeatedListValueWrapper&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const RepeatedListValueWrapper& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const RepeatedListValueWrapper* internal_default_instance() {
return reinterpret_cast<const RepeatedListValueWrapper*>(
&_RepeatedListValueWrapper_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
5;
void Swap(RepeatedListValueWrapper* other);
friend void swap(RepeatedListValueWrapper& a, RepeatedListValueWrapper& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline RepeatedListValueWrapper* New() const PROTOBUF_FINAL { return New(NULL); }
RepeatedListValueWrapper* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const RepeatedListValueWrapper& from);
void MergeFrom(const RepeatedListValueWrapper& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(RepeatedListValueWrapper* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .google.protobuf.ListValue dimensions = 1;
int dimensions_size() const;
void clear_dimensions();
static const int kDimensionsFieldNumber = 1;
const ::google::protobuf::ListValue& dimensions(int index) const;
::google::protobuf::ListValue* mutable_dimensions(int index);
::google::protobuf::ListValue* add_dimensions();
::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue >*
mutable_dimensions();
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue >&
dimensions() const;
// @@protoc_insertion_point(class_scope:google.protobuf.testing.RepeatedListValueWrapper)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue > dimensions_;
mutable int _cached_size_;
friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
friend void ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::InitDefaultsRepeatedListValueWrapperImpl();
};
// -------------------------------------------------------------------
class MapOfStruct_StructMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapOfStruct_StructMapEntry_DoNotUse,
::std::string, ::google::protobuf::Struct,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > {
public:
typedef ::google::protobuf::internal::MapEntry<MapOfStruct_StructMapEntry_DoNotUse,
::std::string, ::google::protobuf::Struct,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > SuperType;
MapOfStruct_StructMapEntry_DoNotUse();
MapOfStruct_StructMapEntry_DoNotUse(::google::protobuf::Arena* arena);
void MergeFrom(const MapOfStruct_StructMapEntry_DoNotUse& other);
static const MapOfStruct_StructMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapOfStruct_StructMapEntry_DoNotUse*>(&_MapOfStruct_StructMapEntry_DoNotUse_default_instance_); }
void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
::google::protobuf::Metadata GetMetadata() const;
};
// -------------------------------------------------------------------
class MapOfStruct_ValueMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapOfStruct_ValueMapEntry_DoNotUse,
::std::string, ::google::protobuf::Value,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > {
public:
typedef ::google::protobuf::internal::MapEntry<MapOfStruct_ValueMapEntry_DoNotUse,
::std::string, ::google::protobuf::Value,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > SuperType;
MapOfStruct_ValueMapEntry_DoNotUse();
MapOfStruct_ValueMapEntry_DoNotUse(::google::protobuf::Arena* arena);
void MergeFrom(const MapOfStruct_ValueMapEntry_DoNotUse& other);
static const MapOfStruct_ValueMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapOfStruct_ValueMapEntry_DoNotUse*>(&_MapOfStruct_ValueMapEntry_DoNotUse_default_instance_); }
void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
::google::protobuf::Metadata GetMetadata() const;
};
// -------------------------------------------------------------------
class MapOfStruct_ListvalueMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapOfStruct_ListvalueMapEntry_DoNotUse,
::std::string, ::google::protobuf::ListValue,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > {
public:
typedef ::google::protobuf::internal::MapEntry<MapOfStruct_ListvalueMapEntry_DoNotUse,
::std::string, ::google::protobuf::ListValue,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > SuperType;
MapOfStruct_ListvalueMapEntry_DoNotUse();
MapOfStruct_ListvalueMapEntry_DoNotUse(::google::protobuf::Arena* arena);
void MergeFrom(const MapOfStruct_ListvalueMapEntry_DoNotUse& other);
static const MapOfStruct_ListvalueMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapOfStruct_ListvalueMapEntry_DoNotUse*>(&_MapOfStruct_ListvalueMapEntry_DoNotUse_default_instance_); }
void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
::google::protobuf::Metadata GetMetadata() const;
};
// -------------------------------------------------------------------
class MapOfStruct : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapOfStruct) */ {
public:
MapOfStruct();
virtual ~MapOfStruct();
MapOfStruct(const MapOfStruct& from);
inline MapOfStruct& operator=(const MapOfStruct& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
MapOfStruct(MapOfStruct&& from) noexcept
: MapOfStruct() {
*this = ::std::move(from);
}
inline MapOfStruct& operator=(MapOfStruct&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const MapOfStruct& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const MapOfStruct* internal_default_instance() {
return reinterpret_cast<const MapOfStruct*>(
&_MapOfStruct_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
9;
void Swap(MapOfStruct* other);
friend void swap(MapOfStruct& a, MapOfStruct& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline MapOfStruct* New() const PROTOBUF_FINAL { return New(NULL); }
MapOfStruct* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const MapOfStruct& from);
void MergeFrom(const MapOfStruct& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(MapOfStruct* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// map<string, .google.protobuf.Struct> struct_map = 1;
int struct_map_size() const;
void clear_struct_map();
static const int kStructMapFieldNumber = 1;
const ::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >&
struct_map() const;
::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >*
mutable_struct_map();
// map<string, .google.protobuf.Value> value_map = 2;
int value_map_size() const;
void clear_value_map();
static const int kValueMapFieldNumber = 2;
const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >&
value_map() const;
::google::protobuf::Map< ::std::string, ::google::protobuf::Value >*
mutable_value_map();
// map<string, .google.protobuf.ListValue> listvalue_map = 3;
int listvalue_map_size() const;
void clear_listvalue_map();
static const int kListvalueMapFieldNumber = 3;
const ::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >&
listvalue_map() const;
::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >*
mutable_listvalue_map();
// @@protoc_insertion_point(class_scope:google.protobuf.testing.MapOfStruct)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::MapField<
MapOfStruct_StructMapEntry_DoNotUse,
::std::string, ::google::protobuf::Struct,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > struct_map_;
::google::protobuf::internal::MapField<
MapOfStruct_ValueMapEntry_DoNotUse,
::std::string, ::google::protobuf::Value,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > value_map_;
::google::protobuf::internal::MapField<
MapOfStruct_ListvalueMapEntry_DoNotUse,
::std::string, ::google::protobuf::ListValue,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > listvalue_map_;
mutable int _cached_size_;
friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
friend void ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::InitDefaultsMapOfStructImpl();
};
// -------------------------------------------------------------------
class Dummy : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Dummy) */ {
public:
Dummy();
virtual ~Dummy();
Dummy(const Dummy& from);
inline Dummy& operator=(const Dummy& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
Dummy(Dummy&& from) noexcept
: Dummy() {
*this = ::std::move(from);
}
inline Dummy& operator=(Dummy&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const Dummy& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const Dummy* internal_default_instance() {
return reinterpret_cast<const Dummy*>(
&_Dummy_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
10;
void Swap(Dummy* other);
friend void swap(Dummy& a, Dummy& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline Dummy* New() const PROTOBUF_FINAL { return New(NULL); }
Dummy* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const Dummy& from);
void MergeFrom(const Dummy& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(Dummy* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// string text = 1;
void clear_text();
static const int kTextFieldNumber = 1;
const ::std::string& text() const;
void set_text(const ::std::string& value);
#if LANG_CXX11
void set_text(::std::string&& value);
#endif
void set_text(const char* value);
void set_text(const char* value, size_t size);
::std::string* mutable_text();
::std::string* release_text();
void set_allocated_text(::std::string* text);
// @@protoc_insertion_point(class_scope:google.protobuf.testing.Dummy)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::ArenaStringPtr text_;
mutable int _cached_size_;
friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
friend void ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::InitDefaultsDummyImpl();
};
// -------------------------------------------------------------------
class StructType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.StructType) */ {
public:
StructType();
virtual ~StructType();
StructType(const StructType& from);
inline StructType& operator=(const StructType& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
StructType(StructType&& from) noexcept
: StructType() {
*this = ::std::move(from);
}
inline StructType& operator=(StructType&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
static const ::google::protobuf::Descriptor* descriptor();
static const StructType& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const StructType* internal_default_instance() {
return reinterpret_cast<const StructType*>(
&_StructType_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
11;
void Swap(StructType* other);
friend void swap(StructType& a, StructType& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline StructType* New() const PROTOBUF_FINAL { return New(NULL); }
StructType* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const StructType& from);
void MergeFrom(const StructType& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(StructType* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// .google.protobuf.Struct object = 1;
bool has_object() const;
void clear_object();
static const int kObjectFieldNumber = 1;
const ::google::protobuf::Struct& object() const;
::google::protobuf::Struct* release_object();
::google::protobuf::Struct* mutable_object();
void set_allocated_object(::google::protobuf::Struct* object);
// @@protoc_insertion_point(class_scope:google.protobuf.testing.StructType)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::Struct* object_;
mutable int _cached_size_;
friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
friend void ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::InitDefaultsStructTypeImpl();
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// StructTestCases
// .google.protobuf.testing.StructWrapper empty_value = 1;
inline bool StructTestCases::has_empty_value() const {
return this != internal_default_instance() && empty_value_ != NULL;
}
inline void StructTestCases::clear_empty_value() {
if (GetArenaNoVirtual() == NULL && empty_value_ != NULL) {
delete empty_value_;
}
empty_value_ = NULL;
}
inline const ::google::protobuf::testing::StructWrapper& StructTestCases::empty_value() const {
const ::google::protobuf::testing::StructWrapper* p = empty_value_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.empty_value)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
&::google::protobuf::testing::_StructWrapper_default_instance_);
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_empty_value() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.empty_value)
::google::protobuf::testing::StructWrapper* temp = empty_value_;
empty_value_ = NULL;
return temp;
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_empty_value() {
if (empty_value_ == NULL) {
empty_value_ = new ::google::protobuf::testing::StructWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.empty_value)
return empty_value_;
}
inline void StructTestCases::set_allocated_empty_value(::google::protobuf::testing::StructWrapper* empty_value) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete empty_value_;
}
if (empty_value) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
empty_value = ::google::protobuf::internal::GetOwnedMessage(
message_arena, empty_value, submessage_arena);
}
} else {
}
empty_value_ = empty_value;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.empty_value)
}
// .google.protobuf.testing.StructWrapper empty_value2 = 2;
inline bool StructTestCases::has_empty_value2() const {
return this != internal_default_instance() && empty_value2_ != NULL;
}
inline void StructTestCases::clear_empty_value2() {
if (GetArenaNoVirtual() == NULL && empty_value2_ != NULL) {
delete empty_value2_;
}
empty_value2_ = NULL;
}
inline const ::google::protobuf::testing::StructWrapper& StructTestCases::empty_value2() const {
const ::google::protobuf::testing::StructWrapper* p = empty_value2_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.empty_value2)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
&::google::protobuf::testing::_StructWrapper_default_instance_);
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_empty_value2() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.empty_value2)
::google::protobuf::testing::StructWrapper* temp = empty_value2_;
empty_value2_ = NULL;
return temp;
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_empty_value2() {
if (empty_value2_ == NULL) {
empty_value2_ = new ::google::protobuf::testing::StructWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.empty_value2)
return empty_value2_;
}
inline void StructTestCases::set_allocated_empty_value2(::google::protobuf::testing::StructWrapper* empty_value2) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete empty_value2_;
}
if (empty_value2) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
empty_value2 = ::google::protobuf::internal::GetOwnedMessage(
message_arena, empty_value2, submessage_arena);
}
} else {
}
empty_value2_ = empty_value2;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.empty_value2)
}
// .google.protobuf.testing.StructWrapper null_value = 3;
inline bool StructTestCases::has_null_value() const {
return this != internal_default_instance() && null_value_ != NULL;
}
inline void StructTestCases::clear_null_value() {
if (GetArenaNoVirtual() == NULL && null_value_ != NULL) {
delete null_value_;
}
null_value_ = NULL;
}
inline const ::google::protobuf::testing::StructWrapper& StructTestCases::null_value() const {
const ::google::protobuf::testing::StructWrapper* p = null_value_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.null_value)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
&::google::protobuf::testing::_StructWrapper_default_instance_);
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_null_value() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.null_value)
::google::protobuf::testing::StructWrapper* temp = null_value_;
null_value_ = NULL;
return temp;
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_null_value() {
if (null_value_ == NULL) {
null_value_ = new ::google::protobuf::testing::StructWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.null_value)
return null_value_;
}
inline void StructTestCases::set_allocated_null_value(::google::protobuf::testing::StructWrapper* null_value) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete null_value_;
}
if (null_value) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
null_value = ::google::protobuf::internal::GetOwnedMessage(
message_arena, null_value, submessage_arena);
}
} else {
}
null_value_ = null_value;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.null_value)
}
// .google.protobuf.testing.StructWrapper simple_struct = 4;
inline bool StructTestCases::has_simple_struct() const {
return this != internal_default_instance() && simple_struct_ != NULL;
}
inline void StructTestCases::clear_simple_struct() {
if (GetArenaNoVirtual() == NULL && simple_struct_ != NULL) {
delete simple_struct_;
}
simple_struct_ = NULL;
}
inline const ::google::protobuf::testing::StructWrapper& StructTestCases::simple_struct() const {
const ::google::protobuf::testing::StructWrapper* p = simple_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.simple_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
&::google::protobuf::testing::_StructWrapper_default_instance_);
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_simple_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.simple_struct)
::google::protobuf::testing::StructWrapper* temp = simple_struct_;
simple_struct_ = NULL;
return temp;
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_simple_struct() {
if (simple_struct_ == NULL) {
simple_struct_ = new ::google::protobuf::testing::StructWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.simple_struct)
return simple_struct_;
}
inline void StructTestCases::set_allocated_simple_struct(::google::protobuf::testing::StructWrapper* simple_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete simple_struct_;
}
if (simple_struct) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
simple_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, simple_struct, submessage_arena);
}
} else {
}
simple_struct_ = simple_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.simple_struct)
}
// .google.protobuf.testing.StructWrapper longer_struct = 5;
inline bool StructTestCases::has_longer_struct() const {
return this != internal_default_instance() && longer_struct_ != NULL;
}
inline void StructTestCases::clear_longer_struct() {
if (GetArenaNoVirtual() == NULL && longer_struct_ != NULL) {
delete longer_struct_;
}
longer_struct_ = NULL;
}
inline const ::google::protobuf::testing::StructWrapper& StructTestCases::longer_struct() const {
const ::google::protobuf::testing::StructWrapper* p = longer_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.longer_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
&::google::protobuf::testing::_StructWrapper_default_instance_);
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_longer_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.longer_struct)
::google::protobuf::testing::StructWrapper* temp = longer_struct_;
longer_struct_ = NULL;
return temp;
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_longer_struct() {
if (longer_struct_ == NULL) {
longer_struct_ = new ::google::protobuf::testing::StructWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.longer_struct)
return longer_struct_;
}
inline void StructTestCases::set_allocated_longer_struct(::google::protobuf::testing::StructWrapper* longer_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete longer_struct_;
}
if (longer_struct) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
longer_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, longer_struct, submessage_arena);
}
} else {
}
longer_struct_ = longer_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.longer_struct)
}
// .google.protobuf.testing.StructWrapper struct_with_nested_struct = 6;
inline bool StructTestCases::has_struct_with_nested_struct() const {
return this != internal_default_instance() && struct_with_nested_struct_ != NULL;
}
inline void StructTestCases::clear_struct_with_nested_struct() {
if (GetArenaNoVirtual() == NULL && struct_with_nested_struct_ != NULL) {
delete struct_with_nested_struct_;
}
struct_with_nested_struct_ = NULL;
}
inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_nested_struct() const {
const ::google::protobuf::testing::StructWrapper* p = struct_with_nested_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_nested_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
&::google::protobuf::testing::_StructWrapper_default_instance_);
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_nested_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_nested_struct)
::google::protobuf::testing::StructWrapper* temp = struct_with_nested_struct_;
struct_with_nested_struct_ = NULL;
return temp;
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_nested_struct() {
if (struct_with_nested_struct_ == NULL) {
struct_with_nested_struct_ = new ::google::protobuf::testing::StructWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_nested_struct)
return struct_with_nested_struct_;
}
inline void StructTestCases::set_allocated_struct_with_nested_struct(::google::protobuf::testing::StructWrapper* struct_with_nested_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete struct_with_nested_struct_;
}
if (struct_with_nested_struct) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
struct_with_nested_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, struct_with_nested_struct, submessage_arena);
}
} else {
}
struct_with_nested_struct_ = struct_with_nested_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_nested_struct)
}
// .google.protobuf.testing.StructWrapper struct_with_nested_list = 7;
inline bool StructTestCases::has_struct_with_nested_list() const {
return this != internal_default_instance() && struct_with_nested_list_ != NULL;
}
inline void StructTestCases::clear_struct_with_nested_list() {
if (GetArenaNoVirtual() == NULL && struct_with_nested_list_ != NULL) {
delete struct_with_nested_list_;
}
struct_with_nested_list_ = NULL;
}
inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_nested_list() const {
const ::google::protobuf::testing::StructWrapper* p = struct_with_nested_list_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_nested_list)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
&::google::protobuf::testing::_StructWrapper_default_instance_);
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_nested_list() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_nested_list)
::google::protobuf::testing::StructWrapper* temp = struct_with_nested_list_;
struct_with_nested_list_ = NULL;
return temp;
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_nested_list() {
if (struct_with_nested_list_ == NULL) {
struct_with_nested_list_ = new ::google::protobuf::testing::StructWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_nested_list)
return struct_with_nested_list_;
}
inline void StructTestCases::set_allocated_struct_with_nested_list(::google::protobuf::testing::StructWrapper* struct_with_nested_list) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete struct_with_nested_list_;
}
if (struct_with_nested_list) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
struct_with_nested_list = ::google::protobuf::internal::GetOwnedMessage(
message_arena, struct_with_nested_list, submessage_arena);
}
} else {
}
struct_with_nested_list_ = struct_with_nested_list;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_nested_list)
}
// .google.protobuf.testing.StructWrapper struct_with_list_of_nulls = 8;
inline bool StructTestCases::has_struct_with_list_of_nulls() const {
return this != internal_default_instance() && struct_with_list_of_nulls_ != NULL;
}
inline void StructTestCases::clear_struct_with_list_of_nulls() {
if (GetArenaNoVirtual() == NULL && struct_with_list_of_nulls_ != NULL) {
delete struct_with_list_of_nulls_;
}
struct_with_list_of_nulls_ = NULL;
}
inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_list_of_nulls() const {
const ::google::protobuf::testing::StructWrapper* p = struct_with_list_of_nulls_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_list_of_nulls)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
&::google::protobuf::testing::_StructWrapper_default_instance_);
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_list_of_nulls() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_list_of_nulls)
::google::protobuf::testing::StructWrapper* temp = struct_with_list_of_nulls_;
struct_with_list_of_nulls_ = NULL;
return temp;
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_list_of_nulls() {
if (struct_with_list_of_nulls_ == NULL) {
struct_with_list_of_nulls_ = new ::google::protobuf::testing::StructWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_list_of_nulls)
return struct_with_list_of_nulls_;
}
inline void StructTestCases::set_allocated_struct_with_list_of_nulls(::google::protobuf::testing::StructWrapper* struct_with_list_of_nulls) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete struct_with_list_of_nulls_;
}
if (struct_with_list_of_nulls) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
struct_with_list_of_nulls = ::google::protobuf::internal::GetOwnedMessage(
message_arena, struct_with_list_of_nulls, submessage_arena);
}
} else {
}
struct_with_list_of_nulls_ = struct_with_list_of_nulls;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_list_of_nulls)
}
// .google.protobuf.testing.StructWrapper struct_with_list_of_lists = 9;
inline bool StructTestCases::has_struct_with_list_of_lists() const {
return this != internal_default_instance() && struct_with_list_of_lists_ != NULL;
}
inline void StructTestCases::clear_struct_with_list_of_lists() {
if (GetArenaNoVirtual() == NULL && struct_with_list_of_lists_ != NULL) {
delete struct_with_list_of_lists_;
}
struct_with_list_of_lists_ = NULL;
}
inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_list_of_lists() const {
const ::google::protobuf::testing::StructWrapper* p = struct_with_list_of_lists_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_list_of_lists)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
&::google::protobuf::testing::_StructWrapper_default_instance_);
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_list_of_lists() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_list_of_lists)
::google::protobuf::testing::StructWrapper* temp = struct_with_list_of_lists_;
struct_with_list_of_lists_ = NULL;
return temp;
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_list_of_lists() {
if (struct_with_list_of_lists_ == NULL) {
struct_with_list_of_lists_ = new ::google::protobuf::testing::StructWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_list_of_lists)
return struct_with_list_of_lists_;
}
inline void StructTestCases::set_allocated_struct_with_list_of_lists(::google::protobuf::testing::StructWrapper* struct_with_list_of_lists) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete struct_with_list_of_lists_;
}
if (struct_with_list_of_lists) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
struct_with_list_of_lists = ::google::protobuf::internal::GetOwnedMessage(
message_arena, struct_with_list_of_lists, submessage_arena);
}
} else {
}
struct_with_list_of_lists_ = struct_with_list_of_lists;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_list_of_lists)
}
// .google.protobuf.testing.StructWrapper struct_with_list_of_structs = 10;
inline bool StructTestCases::has_struct_with_list_of_structs() const {
return this != internal_default_instance() && struct_with_list_of_structs_ != NULL;
}
inline void StructTestCases::clear_struct_with_list_of_structs() {
if (GetArenaNoVirtual() == NULL && struct_with_list_of_structs_ != NULL) {
delete struct_with_list_of_structs_;
}
struct_with_list_of_structs_ = NULL;
}
inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_list_of_structs() const {
const ::google::protobuf::testing::StructWrapper* p = struct_with_list_of_structs_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_list_of_structs)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
&::google::protobuf::testing::_StructWrapper_default_instance_);
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_list_of_structs() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_list_of_structs)
::google::protobuf::testing::StructWrapper* temp = struct_with_list_of_structs_;
struct_with_list_of_structs_ = NULL;
return temp;
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_list_of_structs() {
if (struct_with_list_of_structs_ == NULL) {
struct_with_list_of_structs_ = new ::google::protobuf::testing::StructWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_list_of_structs)
return struct_with_list_of_structs_;
}
inline void StructTestCases::set_allocated_struct_with_list_of_structs(::google::protobuf::testing::StructWrapper* struct_with_list_of_structs) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete struct_with_list_of_structs_;
}
if (struct_with_list_of_structs) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
struct_with_list_of_structs = ::google::protobuf::internal::GetOwnedMessage(
message_arena, struct_with_list_of_structs, submessage_arena);
}
} else {
}
struct_with_list_of_structs_ = struct_with_list_of_structs;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_list_of_structs)
}
// .google.protobuf.testing.StructWrapper struct_with_empty_list = 11;
inline bool StructTestCases::has_struct_with_empty_list() const {
return this != internal_default_instance() && struct_with_empty_list_ != NULL;
}
inline void StructTestCases::clear_struct_with_empty_list() {
if (GetArenaNoVirtual() == NULL && struct_with_empty_list_ != NULL) {
delete struct_with_empty_list_;
}
struct_with_empty_list_ = NULL;
}
inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_empty_list() const {
const ::google::protobuf::testing::StructWrapper* p = struct_with_empty_list_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_empty_list)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
&::google::protobuf::testing::_StructWrapper_default_instance_);
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_empty_list() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_empty_list)
::google::protobuf::testing::StructWrapper* temp = struct_with_empty_list_;
struct_with_empty_list_ = NULL;
return temp;
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_empty_list() {
if (struct_with_empty_list_ == NULL) {
struct_with_empty_list_ = new ::google::protobuf::testing::StructWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_empty_list)
return struct_with_empty_list_;
}
inline void StructTestCases::set_allocated_struct_with_empty_list(::google::protobuf::testing::StructWrapper* struct_with_empty_list) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete struct_with_empty_list_;
}
if (struct_with_empty_list) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
struct_with_empty_list = ::google::protobuf::internal::GetOwnedMessage(
message_arena, struct_with_empty_list, submessage_arena);
}
} else {
}
struct_with_empty_list_ = struct_with_empty_list;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_empty_list)
}
// .google.protobuf.testing.StructWrapper struct_with_list_with_empty_struct = 12;
inline bool StructTestCases::has_struct_with_list_with_empty_struct() const {
return this != internal_default_instance() && struct_with_list_with_empty_struct_ != NULL;
}
inline void StructTestCases::clear_struct_with_list_with_empty_struct() {
if (GetArenaNoVirtual() == NULL && struct_with_list_with_empty_struct_ != NULL) {
delete struct_with_list_with_empty_struct_;
}
struct_with_list_with_empty_struct_ = NULL;
}
inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_list_with_empty_struct() const {
const ::google::protobuf::testing::StructWrapper* p = struct_with_list_with_empty_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_list_with_empty_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
&::google::protobuf::testing::_StructWrapper_default_instance_);
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_list_with_empty_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_list_with_empty_struct)
::google::protobuf::testing::StructWrapper* temp = struct_with_list_with_empty_struct_;
struct_with_list_with_empty_struct_ = NULL;
return temp;
}
inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_list_with_empty_struct() {
if (struct_with_list_with_empty_struct_ == NULL) {
struct_with_list_with_empty_struct_ = new ::google::protobuf::testing::StructWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_list_with_empty_struct)
return struct_with_list_with_empty_struct_;
}
inline void StructTestCases::set_allocated_struct_with_list_with_empty_struct(::google::protobuf::testing::StructWrapper* struct_with_list_with_empty_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete struct_with_list_with_empty_struct_;
}
if (struct_with_list_with_empty_struct) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
struct_with_list_with_empty_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, struct_with_list_with_empty_struct, submessage_arena);
}
} else {
}
struct_with_list_with_empty_struct_ = struct_with_list_with_empty_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_list_with_empty_struct)
}
// .google.protobuf.Struct top_level_struct = 13;
inline bool StructTestCases::has_top_level_struct() const {
return this != internal_default_instance() && top_level_struct_ != NULL;
}
inline const ::google::protobuf::Struct& StructTestCases::top_level_struct() const {
const ::google::protobuf::Struct* p = top_level_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
&::google::protobuf::_Struct_default_instance_);
}
inline ::google::protobuf::Struct* StructTestCases::release_top_level_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_struct)
::google::protobuf::Struct* temp = top_level_struct_;
top_level_struct_ = NULL;
return temp;
}
inline ::google::protobuf::Struct* StructTestCases::mutable_top_level_struct() {
if (top_level_struct_ == NULL) {
top_level_struct_ = new ::google::protobuf::Struct;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_struct)
return top_level_struct_;
}
inline void StructTestCases::set_allocated_top_level_struct(::google::protobuf::Struct* top_level_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_struct_);
}
if (top_level_struct) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_struct)->GetArena();
if (message_arena != submessage_arena) {
top_level_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, top_level_struct, submessage_arena);
}
} else {
}
top_level_struct_ = top_level_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_struct)
}
// .google.protobuf.Struct top_level_struct_with_empty_list = 14;
inline bool StructTestCases::has_top_level_struct_with_empty_list() const {
return this != internal_default_instance() && top_level_struct_with_empty_list_ != NULL;
}
inline const ::google::protobuf::Struct& StructTestCases::top_level_struct_with_empty_list() const {
const ::google::protobuf::Struct* p = top_level_struct_with_empty_list_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_struct_with_empty_list)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
&::google::protobuf::_Struct_default_instance_);
}
inline ::google::protobuf::Struct* StructTestCases::release_top_level_struct_with_empty_list() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_struct_with_empty_list)
::google::protobuf::Struct* temp = top_level_struct_with_empty_list_;
top_level_struct_with_empty_list_ = NULL;
return temp;
}
inline ::google::protobuf::Struct* StructTestCases::mutable_top_level_struct_with_empty_list() {
if (top_level_struct_with_empty_list_ == NULL) {
top_level_struct_with_empty_list_ = new ::google::protobuf::Struct;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_struct_with_empty_list)
return top_level_struct_with_empty_list_;
}
inline void StructTestCases::set_allocated_top_level_struct_with_empty_list(::google::protobuf::Struct* top_level_struct_with_empty_list) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_struct_with_empty_list_);
}
if (top_level_struct_with_empty_list) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_struct_with_empty_list)->GetArena();
if (message_arena != submessage_arena) {
top_level_struct_with_empty_list = ::google::protobuf::internal::GetOwnedMessage(
message_arena, top_level_struct_with_empty_list, submessage_arena);
}
} else {
}
top_level_struct_with_empty_list_ = top_level_struct_with_empty_list;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_struct_with_empty_list)
}
// .google.protobuf.Struct top_level_struct_with_list_with_empty_struct = 15;
inline bool StructTestCases::has_top_level_struct_with_list_with_empty_struct() const {
return this != internal_default_instance() && top_level_struct_with_list_with_empty_struct_ != NULL;
}
inline const ::google::protobuf::Struct& StructTestCases::top_level_struct_with_list_with_empty_struct() const {
const ::google::protobuf::Struct* p = top_level_struct_with_list_with_empty_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_struct_with_list_with_empty_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
&::google::protobuf::_Struct_default_instance_);
}
inline ::google::protobuf::Struct* StructTestCases::release_top_level_struct_with_list_with_empty_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_struct_with_list_with_empty_struct)
::google::protobuf::Struct* temp = top_level_struct_with_list_with_empty_struct_;
top_level_struct_with_list_with_empty_struct_ = NULL;
return temp;
}
inline ::google::protobuf::Struct* StructTestCases::mutable_top_level_struct_with_list_with_empty_struct() {
if (top_level_struct_with_list_with_empty_struct_ == NULL) {
top_level_struct_with_list_with_empty_struct_ = new ::google::protobuf::Struct;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_struct_with_list_with_empty_struct)
return top_level_struct_with_list_with_empty_struct_;
}
inline void StructTestCases::set_allocated_top_level_struct_with_list_with_empty_struct(::google::protobuf::Struct* top_level_struct_with_list_with_empty_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_struct_with_list_with_empty_struct_);
}
if (top_level_struct_with_list_with_empty_struct) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_struct_with_list_with_empty_struct)->GetArena();
if (message_arena != submessage_arena) {
top_level_struct_with_list_with_empty_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, top_level_struct_with_list_with_empty_struct, submessage_arena);
}
} else {
}
top_level_struct_with_list_with_empty_struct_ = top_level_struct_with_list_with_empty_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_struct_with_list_with_empty_struct)
}
// .google.protobuf.testing.ValueWrapper value_wrapper_simple = 16;
inline bool StructTestCases::has_value_wrapper_simple() const {
return this != internal_default_instance() && value_wrapper_simple_ != NULL;
}
inline void StructTestCases::clear_value_wrapper_simple() {
if (GetArenaNoVirtual() == NULL && value_wrapper_simple_ != NULL) {
delete value_wrapper_simple_;
}
value_wrapper_simple_ = NULL;
}
inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::value_wrapper_simple() const {
const ::google::protobuf::testing::ValueWrapper* p = value_wrapper_simple_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.value_wrapper_simple)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueWrapper*>(
&::google::protobuf::testing::_ValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::ValueWrapper* StructTestCases::release_value_wrapper_simple() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.value_wrapper_simple)
::google::protobuf::testing::ValueWrapper* temp = value_wrapper_simple_;
value_wrapper_simple_ = NULL;
return temp;
}
inline ::google::protobuf::testing::ValueWrapper* StructTestCases::mutable_value_wrapper_simple() {
if (value_wrapper_simple_ == NULL) {
value_wrapper_simple_ = new ::google::protobuf::testing::ValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.value_wrapper_simple)
return value_wrapper_simple_;
}
inline void StructTestCases::set_allocated_value_wrapper_simple(::google::protobuf::testing::ValueWrapper* value_wrapper_simple) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete value_wrapper_simple_;
}
if (value_wrapper_simple) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
value_wrapper_simple = ::google::protobuf::internal::GetOwnedMessage(
message_arena, value_wrapper_simple, submessage_arena);
}
} else {
}
value_wrapper_simple_ = value_wrapper_simple;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.value_wrapper_simple)
}
// .google.protobuf.testing.ValueWrapper value_wrapper_with_struct = 17;
inline bool StructTestCases::has_value_wrapper_with_struct() const {
return this != internal_default_instance() && value_wrapper_with_struct_ != NULL;
}
inline void StructTestCases::clear_value_wrapper_with_struct() {
if (GetArenaNoVirtual() == NULL && value_wrapper_with_struct_ != NULL) {
delete value_wrapper_with_struct_;
}
value_wrapper_with_struct_ = NULL;
}
inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::value_wrapper_with_struct() const {
const ::google::protobuf::testing::ValueWrapper* p = value_wrapper_with_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.value_wrapper_with_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueWrapper*>(
&::google::protobuf::testing::_ValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::ValueWrapper* StructTestCases::release_value_wrapper_with_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.value_wrapper_with_struct)
::google::protobuf::testing::ValueWrapper* temp = value_wrapper_with_struct_;
value_wrapper_with_struct_ = NULL;
return temp;
}
inline ::google::protobuf::testing::ValueWrapper* StructTestCases::mutable_value_wrapper_with_struct() {
if (value_wrapper_with_struct_ == NULL) {
value_wrapper_with_struct_ = new ::google::protobuf::testing::ValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.value_wrapper_with_struct)
return value_wrapper_with_struct_;
}
inline void StructTestCases::set_allocated_value_wrapper_with_struct(::google::protobuf::testing::ValueWrapper* value_wrapper_with_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete value_wrapper_with_struct_;
}
if (value_wrapper_with_struct) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
value_wrapper_with_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, value_wrapper_with_struct, submessage_arena);
}
} else {
}
value_wrapper_with_struct_ = value_wrapper_with_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.value_wrapper_with_struct)
}
// .google.protobuf.testing.ValueWrapper value_wrapper_with_list = 18;
inline bool StructTestCases::has_value_wrapper_with_list() const {
return this != internal_default_instance() && value_wrapper_with_list_ != NULL;
}
inline void StructTestCases::clear_value_wrapper_with_list() {
if (GetArenaNoVirtual() == NULL && value_wrapper_with_list_ != NULL) {
delete value_wrapper_with_list_;
}
value_wrapper_with_list_ = NULL;
}
inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::value_wrapper_with_list() const {
const ::google::protobuf::testing::ValueWrapper* p = value_wrapper_with_list_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.value_wrapper_with_list)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueWrapper*>(
&::google::protobuf::testing::_ValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::ValueWrapper* StructTestCases::release_value_wrapper_with_list() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.value_wrapper_with_list)
::google::protobuf::testing::ValueWrapper* temp = value_wrapper_with_list_;
value_wrapper_with_list_ = NULL;
return temp;
}
inline ::google::protobuf::testing::ValueWrapper* StructTestCases::mutable_value_wrapper_with_list() {
if (value_wrapper_with_list_ == NULL) {
value_wrapper_with_list_ = new ::google::protobuf::testing::ValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.value_wrapper_with_list)
return value_wrapper_with_list_;
}
inline void StructTestCases::set_allocated_value_wrapper_with_list(::google::protobuf::testing::ValueWrapper* value_wrapper_with_list) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete value_wrapper_with_list_;
}
if (value_wrapper_with_list) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
value_wrapper_with_list = ::google::protobuf::internal::GetOwnedMessage(
message_arena, value_wrapper_with_list, submessage_arena);
}
} else {
}
value_wrapper_with_list_ = value_wrapper_with_list;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.value_wrapper_with_list)
}
// .google.protobuf.testing.ValueWrapper value_wrapper_with_empty_list = 19;
inline bool StructTestCases::has_value_wrapper_with_empty_list() const {
return this != internal_default_instance() && value_wrapper_with_empty_list_ != NULL;
}
inline void StructTestCases::clear_value_wrapper_with_empty_list() {
if (GetArenaNoVirtual() == NULL && value_wrapper_with_empty_list_ != NULL) {
delete value_wrapper_with_empty_list_;
}
value_wrapper_with_empty_list_ = NULL;
}
inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::value_wrapper_with_empty_list() const {
const ::google::protobuf::testing::ValueWrapper* p = value_wrapper_with_empty_list_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.value_wrapper_with_empty_list)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueWrapper*>(
&::google::protobuf::testing::_ValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::ValueWrapper* StructTestCases::release_value_wrapper_with_empty_list() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.value_wrapper_with_empty_list)
::google::protobuf::testing::ValueWrapper* temp = value_wrapper_with_empty_list_;
value_wrapper_with_empty_list_ = NULL;
return temp;
}
inline ::google::protobuf::testing::ValueWrapper* StructTestCases::mutable_value_wrapper_with_empty_list() {
if (value_wrapper_with_empty_list_ == NULL) {
value_wrapper_with_empty_list_ = new ::google::protobuf::testing::ValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.value_wrapper_with_empty_list)
return value_wrapper_with_empty_list_;
}
inline void StructTestCases::set_allocated_value_wrapper_with_empty_list(::google::protobuf::testing::ValueWrapper* value_wrapper_with_empty_list) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete value_wrapper_with_empty_list_;
}
if (value_wrapper_with_empty_list) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
value_wrapper_with_empty_list = ::google::protobuf::internal::GetOwnedMessage(
message_arena, value_wrapper_with_empty_list, submessage_arena);
}
} else {
}
value_wrapper_with_empty_list_ = value_wrapper_with_empty_list;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.value_wrapper_with_empty_list)
}
// .google.protobuf.testing.ValueWrapper value_wrapper_with_list_with_empty_struct = 20;
inline bool StructTestCases::has_value_wrapper_with_list_with_empty_struct() const {
return this != internal_default_instance() && value_wrapper_with_list_with_empty_struct_ != NULL;
}
inline void StructTestCases::clear_value_wrapper_with_list_with_empty_struct() {
if (GetArenaNoVirtual() == NULL && value_wrapper_with_list_with_empty_struct_ != NULL) {
delete value_wrapper_with_list_with_empty_struct_;
}
value_wrapper_with_list_with_empty_struct_ = NULL;
}
inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::value_wrapper_with_list_with_empty_struct() const {
const ::google::protobuf::testing::ValueWrapper* p = value_wrapper_with_list_with_empty_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.value_wrapper_with_list_with_empty_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueWrapper*>(
&::google::protobuf::testing::_ValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::ValueWrapper* StructTestCases::release_value_wrapper_with_list_with_empty_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.value_wrapper_with_list_with_empty_struct)
::google::protobuf::testing::ValueWrapper* temp = value_wrapper_with_list_with_empty_struct_;
value_wrapper_with_list_with_empty_struct_ = NULL;
return temp;
}
inline ::google::protobuf::testing::ValueWrapper* StructTestCases::mutable_value_wrapper_with_list_with_empty_struct() {
if (value_wrapper_with_list_with_empty_struct_ == NULL) {
value_wrapper_with_list_with_empty_struct_ = new ::google::protobuf::testing::ValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.value_wrapper_with_list_with_empty_struct)
return value_wrapper_with_list_with_empty_struct_;
}
inline void StructTestCases::set_allocated_value_wrapper_with_list_with_empty_struct(::google::protobuf::testing::ValueWrapper* value_wrapper_with_list_with_empty_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete value_wrapper_with_list_with_empty_struct_;
}
if (value_wrapper_with_list_with_empty_struct) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
value_wrapper_with_list_with_empty_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, value_wrapper_with_list_with_empty_struct, submessage_arena);
}
} else {
}
value_wrapper_with_list_with_empty_struct_ = value_wrapper_with_list_with_empty_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.value_wrapper_with_list_with_empty_struct)
}
// .google.protobuf.testing.ListValueWrapper list_value_wrapper = 21;
inline bool StructTestCases::has_list_value_wrapper() const {
return this != internal_default_instance() && list_value_wrapper_ != NULL;
}
inline void StructTestCases::clear_list_value_wrapper() {
if (GetArenaNoVirtual() == NULL && list_value_wrapper_ != NULL) {
delete list_value_wrapper_;
}
list_value_wrapper_ = NULL;
}
inline const ::google::protobuf::testing::ListValueWrapper& StructTestCases::list_value_wrapper() const {
const ::google::protobuf::testing::ListValueWrapper* p = list_value_wrapper_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.list_value_wrapper)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ListValueWrapper*>(
&::google::protobuf::testing::_ListValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::ListValueWrapper* StructTestCases::release_list_value_wrapper() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.list_value_wrapper)
::google::protobuf::testing::ListValueWrapper* temp = list_value_wrapper_;
list_value_wrapper_ = NULL;
return temp;
}
inline ::google::protobuf::testing::ListValueWrapper* StructTestCases::mutable_list_value_wrapper() {
if (list_value_wrapper_ == NULL) {
list_value_wrapper_ = new ::google::protobuf::testing::ListValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.list_value_wrapper)
return list_value_wrapper_;
}
inline void StructTestCases::set_allocated_list_value_wrapper(::google::protobuf::testing::ListValueWrapper* list_value_wrapper) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete list_value_wrapper_;
}
if (list_value_wrapper) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
list_value_wrapper = ::google::protobuf::internal::GetOwnedMessage(
message_arena, list_value_wrapper, submessage_arena);
}
} else {
}
list_value_wrapper_ = list_value_wrapper;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.list_value_wrapper)
}
// .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_empty_list = 22;
inline bool StructTestCases::has_list_value_wrapper_with_empty_list() const {
return this != internal_default_instance() && list_value_wrapper_with_empty_list_ != NULL;
}
inline void StructTestCases::clear_list_value_wrapper_with_empty_list() {
if (GetArenaNoVirtual() == NULL && list_value_wrapper_with_empty_list_ != NULL) {
delete list_value_wrapper_with_empty_list_;
}
list_value_wrapper_with_empty_list_ = NULL;
}
inline const ::google::protobuf::testing::ListValueWrapper& StructTestCases::list_value_wrapper_with_empty_list() const {
const ::google::protobuf::testing::ListValueWrapper* p = list_value_wrapper_with_empty_list_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.list_value_wrapper_with_empty_list)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ListValueWrapper*>(
&::google::protobuf::testing::_ListValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::ListValueWrapper* StructTestCases::release_list_value_wrapper_with_empty_list() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.list_value_wrapper_with_empty_list)
::google::protobuf::testing::ListValueWrapper* temp = list_value_wrapper_with_empty_list_;
list_value_wrapper_with_empty_list_ = NULL;
return temp;
}
inline ::google::protobuf::testing::ListValueWrapper* StructTestCases::mutable_list_value_wrapper_with_empty_list() {
if (list_value_wrapper_with_empty_list_ == NULL) {
list_value_wrapper_with_empty_list_ = new ::google::protobuf::testing::ListValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.list_value_wrapper_with_empty_list)
return list_value_wrapper_with_empty_list_;
}
inline void StructTestCases::set_allocated_list_value_wrapper_with_empty_list(::google::protobuf::testing::ListValueWrapper* list_value_wrapper_with_empty_list) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete list_value_wrapper_with_empty_list_;
}
if (list_value_wrapper_with_empty_list) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
list_value_wrapper_with_empty_list = ::google::protobuf::internal::GetOwnedMessage(
message_arena, list_value_wrapper_with_empty_list, submessage_arena);
}
} else {
}
list_value_wrapper_with_empty_list_ = list_value_wrapper_with_empty_list;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.list_value_wrapper_with_empty_list)
}
// .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_list_with_empty_struct = 23;
inline bool StructTestCases::has_list_value_wrapper_with_list_with_empty_struct() const {
return this != internal_default_instance() && list_value_wrapper_with_list_with_empty_struct_ != NULL;
}
inline void StructTestCases::clear_list_value_wrapper_with_list_with_empty_struct() {
if (GetArenaNoVirtual() == NULL && list_value_wrapper_with_list_with_empty_struct_ != NULL) {
delete list_value_wrapper_with_list_with_empty_struct_;
}
list_value_wrapper_with_list_with_empty_struct_ = NULL;
}
inline const ::google::protobuf::testing::ListValueWrapper& StructTestCases::list_value_wrapper_with_list_with_empty_struct() const {
const ::google::protobuf::testing::ListValueWrapper* p = list_value_wrapper_with_list_with_empty_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.list_value_wrapper_with_list_with_empty_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ListValueWrapper*>(
&::google::protobuf::testing::_ListValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::ListValueWrapper* StructTestCases::release_list_value_wrapper_with_list_with_empty_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.list_value_wrapper_with_list_with_empty_struct)
::google::protobuf::testing::ListValueWrapper* temp = list_value_wrapper_with_list_with_empty_struct_;
list_value_wrapper_with_list_with_empty_struct_ = NULL;
return temp;
}
inline ::google::protobuf::testing::ListValueWrapper* StructTestCases::mutable_list_value_wrapper_with_list_with_empty_struct() {
if (list_value_wrapper_with_list_with_empty_struct_ == NULL) {
list_value_wrapper_with_list_with_empty_struct_ = new ::google::protobuf::testing::ListValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.list_value_wrapper_with_list_with_empty_struct)
return list_value_wrapper_with_list_with_empty_struct_;
}
inline void StructTestCases::set_allocated_list_value_wrapper_with_list_with_empty_struct(::google::protobuf::testing::ListValueWrapper* list_value_wrapper_with_list_with_empty_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete list_value_wrapper_with_list_with_empty_struct_;
}
if (list_value_wrapper_with_list_with_empty_struct) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
list_value_wrapper_with_list_with_empty_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, list_value_wrapper_with_list_with_empty_struct, submessage_arena);
}
} else {
}
list_value_wrapper_with_list_with_empty_struct_ = list_value_wrapper_with_list_with_empty_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.list_value_wrapper_with_list_with_empty_struct)
}
// .google.protobuf.Value top_level_value_simple = 24;
inline bool StructTestCases::has_top_level_value_simple() const {
return this != internal_default_instance() && top_level_value_simple_ != NULL;
}
inline const ::google::protobuf::Value& StructTestCases::top_level_value_simple() const {
const ::google::protobuf::Value* p = top_level_value_simple_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_value_simple)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
&::google::protobuf::_Value_default_instance_);
}
inline ::google::protobuf::Value* StructTestCases::release_top_level_value_simple() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_value_simple)
::google::protobuf::Value* temp = top_level_value_simple_;
top_level_value_simple_ = NULL;
return temp;
}
inline ::google::protobuf::Value* StructTestCases::mutable_top_level_value_simple() {
if (top_level_value_simple_ == NULL) {
top_level_value_simple_ = new ::google::protobuf::Value;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_value_simple)
return top_level_value_simple_;
}
inline void StructTestCases::set_allocated_top_level_value_simple(::google::protobuf::Value* top_level_value_simple) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_simple_);
}
if (top_level_value_simple) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_simple)->GetArena();
if (message_arena != submessage_arena) {
top_level_value_simple = ::google::protobuf::internal::GetOwnedMessage(
message_arena, top_level_value_simple, submessage_arena);
}
} else {
}
top_level_value_simple_ = top_level_value_simple;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_value_simple)
}
// .google.protobuf.Value top_level_value_with_struct = 25;
inline bool StructTestCases::has_top_level_value_with_struct() const {
return this != internal_default_instance() && top_level_value_with_struct_ != NULL;
}
inline const ::google::protobuf::Value& StructTestCases::top_level_value_with_struct() const {
const ::google::protobuf::Value* p = top_level_value_with_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_value_with_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
&::google::protobuf::_Value_default_instance_);
}
inline ::google::protobuf::Value* StructTestCases::release_top_level_value_with_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_value_with_struct)
::google::protobuf::Value* temp = top_level_value_with_struct_;
top_level_value_with_struct_ = NULL;
return temp;
}
inline ::google::protobuf::Value* StructTestCases::mutable_top_level_value_with_struct() {
if (top_level_value_with_struct_ == NULL) {
top_level_value_with_struct_ = new ::google::protobuf::Value;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_value_with_struct)
return top_level_value_with_struct_;
}
inline void StructTestCases::set_allocated_top_level_value_with_struct(::google::protobuf::Value* top_level_value_with_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_struct_);
}
if (top_level_value_with_struct) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_struct)->GetArena();
if (message_arena != submessage_arena) {
top_level_value_with_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, top_level_value_with_struct, submessage_arena);
}
} else {
}
top_level_value_with_struct_ = top_level_value_with_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_value_with_struct)
}
// .google.protobuf.Value top_level_value_with_list = 26;
inline bool StructTestCases::has_top_level_value_with_list() const {
return this != internal_default_instance() && top_level_value_with_list_ != NULL;
}
inline const ::google::protobuf::Value& StructTestCases::top_level_value_with_list() const {
const ::google::protobuf::Value* p = top_level_value_with_list_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_value_with_list)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
&::google::protobuf::_Value_default_instance_);
}
inline ::google::protobuf::Value* StructTestCases::release_top_level_value_with_list() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_value_with_list)
::google::protobuf::Value* temp = top_level_value_with_list_;
top_level_value_with_list_ = NULL;
return temp;
}
inline ::google::protobuf::Value* StructTestCases::mutable_top_level_value_with_list() {
if (top_level_value_with_list_ == NULL) {
top_level_value_with_list_ = new ::google::protobuf::Value;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_value_with_list)
return top_level_value_with_list_;
}
inline void StructTestCases::set_allocated_top_level_value_with_list(::google::protobuf::Value* top_level_value_with_list) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_list_);
}
if (top_level_value_with_list) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_list)->GetArena();
if (message_arena != submessage_arena) {
top_level_value_with_list = ::google::protobuf::internal::GetOwnedMessage(
message_arena, top_level_value_with_list, submessage_arena);
}
} else {
}
top_level_value_with_list_ = top_level_value_with_list;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_value_with_list)
}
// .google.protobuf.Value top_level_value_with_empty_list = 27;
inline bool StructTestCases::has_top_level_value_with_empty_list() const {
return this != internal_default_instance() && top_level_value_with_empty_list_ != NULL;
}
inline const ::google::protobuf::Value& StructTestCases::top_level_value_with_empty_list() const {
const ::google::protobuf::Value* p = top_level_value_with_empty_list_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_value_with_empty_list)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
&::google::protobuf::_Value_default_instance_);
}
inline ::google::protobuf::Value* StructTestCases::release_top_level_value_with_empty_list() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_value_with_empty_list)
::google::protobuf::Value* temp = top_level_value_with_empty_list_;
top_level_value_with_empty_list_ = NULL;
return temp;
}
inline ::google::protobuf::Value* StructTestCases::mutable_top_level_value_with_empty_list() {
if (top_level_value_with_empty_list_ == NULL) {
top_level_value_with_empty_list_ = new ::google::protobuf::Value;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_value_with_empty_list)
return top_level_value_with_empty_list_;
}
inline void StructTestCases::set_allocated_top_level_value_with_empty_list(::google::protobuf::Value* top_level_value_with_empty_list) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_empty_list_);
}
if (top_level_value_with_empty_list) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_empty_list)->GetArena();
if (message_arena != submessage_arena) {
top_level_value_with_empty_list = ::google::protobuf::internal::GetOwnedMessage(
message_arena, top_level_value_with_empty_list, submessage_arena);
}
} else {
}
top_level_value_with_empty_list_ = top_level_value_with_empty_list;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_value_with_empty_list)
}
// .google.protobuf.Value top_level_value_with_list_with_empty_struct = 28;
inline bool StructTestCases::has_top_level_value_with_list_with_empty_struct() const {
return this != internal_default_instance() && top_level_value_with_list_with_empty_struct_ != NULL;
}
inline const ::google::protobuf::Value& StructTestCases::top_level_value_with_list_with_empty_struct() const {
const ::google::protobuf::Value* p = top_level_value_with_list_with_empty_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_value_with_list_with_empty_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
&::google::protobuf::_Value_default_instance_);
}
inline ::google::protobuf::Value* StructTestCases::release_top_level_value_with_list_with_empty_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_value_with_list_with_empty_struct)
::google::protobuf::Value* temp = top_level_value_with_list_with_empty_struct_;
top_level_value_with_list_with_empty_struct_ = NULL;
return temp;
}
inline ::google::protobuf::Value* StructTestCases::mutable_top_level_value_with_list_with_empty_struct() {
if (top_level_value_with_list_with_empty_struct_ == NULL) {
top_level_value_with_list_with_empty_struct_ = new ::google::protobuf::Value;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_value_with_list_with_empty_struct)
return top_level_value_with_list_with_empty_struct_;
}
inline void StructTestCases::set_allocated_top_level_value_with_list_with_empty_struct(::google::protobuf::Value* top_level_value_with_list_with_empty_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_list_with_empty_struct_);
}
if (top_level_value_with_list_with_empty_struct) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_list_with_empty_struct)->GetArena();
if (message_arena != submessage_arena) {
top_level_value_with_list_with_empty_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, top_level_value_with_list_with_empty_struct, submessage_arena);
}
} else {
}
top_level_value_with_list_with_empty_struct_ = top_level_value_with_list_with_empty_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_value_with_list_with_empty_struct)
}
// .google.protobuf.ListValue top_level_listvalue = 29;
inline bool StructTestCases::has_top_level_listvalue() const {
return this != internal_default_instance() && top_level_listvalue_ != NULL;
}
inline const ::google::protobuf::ListValue& StructTestCases::top_level_listvalue() const {
const ::google::protobuf::ListValue* p = top_level_listvalue_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_listvalue)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ListValue*>(
&::google::protobuf::_ListValue_default_instance_);
}
inline ::google::protobuf::ListValue* StructTestCases::release_top_level_listvalue() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_listvalue)
::google::protobuf::ListValue* temp = top_level_listvalue_;
top_level_listvalue_ = NULL;
return temp;
}
inline ::google::protobuf::ListValue* StructTestCases::mutable_top_level_listvalue() {
if (top_level_listvalue_ == NULL) {
top_level_listvalue_ = new ::google::protobuf::ListValue;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_listvalue)
return top_level_listvalue_;
}
inline void StructTestCases::set_allocated_top_level_listvalue(::google::protobuf::ListValue* top_level_listvalue) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_listvalue_);
}
if (top_level_listvalue) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_listvalue)->GetArena();
if (message_arena != submessage_arena) {
top_level_listvalue = ::google::protobuf::internal::GetOwnedMessage(
message_arena, top_level_listvalue, submessage_arena);
}
} else {
}
top_level_listvalue_ = top_level_listvalue;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_listvalue)
}
// .google.protobuf.ListValue top_level_empty_listvalue = 30;
inline bool StructTestCases::has_top_level_empty_listvalue() const {
return this != internal_default_instance() && top_level_empty_listvalue_ != NULL;
}
inline const ::google::protobuf::ListValue& StructTestCases::top_level_empty_listvalue() const {
const ::google::protobuf::ListValue* p = top_level_empty_listvalue_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_empty_listvalue)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ListValue*>(
&::google::protobuf::_ListValue_default_instance_);
}
inline ::google::protobuf::ListValue* StructTestCases::release_top_level_empty_listvalue() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_empty_listvalue)
::google::protobuf::ListValue* temp = top_level_empty_listvalue_;
top_level_empty_listvalue_ = NULL;
return temp;
}
inline ::google::protobuf::ListValue* StructTestCases::mutable_top_level_empty_listvalue() {
if (top_level_empty_listvalue_ == NULL) {
top_level_empty_listvalue_ = new ::google::protobuf::ListValue;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_empty_listvalue)
return top_level_empty_listvalue_;
}
inline void StructTestCases::set_allocated_top_level_empty_listvalue(::google::protobuf::ListValue* top_level_empty_listvalue) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_empty_listvalue_);
}
if (top_level_empty_listvalue) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_empty_listvalue)->GetArena();
if (message_arena != submessage_arena) {
top_level_empty_listvalue = ::google::protobuf::internal::GetOwnedMessage(
message_arena, top_level_empty_listvalue, submessage_arena);
}
} else {
}
top_level_empty_listvalue_ = top_level_empty_listvalue;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_empty_listvalue)
}
// .google.protobuf.ListValue top_level_listvalue_with_empty_struct = 31;
inline bool StructTestCases::has_top_level_listvalue_with_empty_struct() const {
return this != internal_default_instance() && top_level_listvalue_with_empty_struct_ != NULL;
}
inline const ::google::protobuf::ListValue& StructTestCases::top_level_listvalue_with_empty_struct() const {
const ::google::protobuf::ListValue* p = top_level_listvalue_with_empty_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_listvalue_with_empty_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ListValue*>(
&::google::protobuf::_ListValue_default_instance_);
}
inline ::google::protobuf::ListValue* StructTestCases::release_top_level_listvalue_with_empty_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_listvalue_with_empty_struct)
::google::protobuf::ListValue* temp = top_level_listvalue_with_empty_struct_;
top_level_listvalue_with_empty_struct_ = NULL;
return temp;
}
inline ::google::protobuf::ListValue* StructTestCases::mutable_top_level_listvalue_with_empty_struct() {
if (top_level_listvalue_with_empty_struct_ == NULL) {
top_level_listvalue_with_empty_struct_ = new ::google::protobuf::ListValue;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_listvalue_with_empty_struct)
return top_level_listvalue_with_empty_struct_;
}
inline void StructTestCases::set_allocated_top_level_listvalue_with_empty_struct(::google::protobuf::ListValue* top_level_listvalue_with_empty_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_listvalue_with_empty_struct_);
}
if (top_level_listvalue_with_empty_struct) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_listvalue_with_empty_struct)->GetArena();
if (message_arena != submessage_arena) {
top_level_listvalue_with_empty_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, top_level_listvalue_with_empty_struct, submessage_arena);
}
} else {
}
top_level_listvalue_with_empty_struct_ = top_level_listvalue_with_empty_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_listvalue_with_empty_struct)
}
// .google.protobuf.testing.RepeatedValueWrapper repeated_value = 32;
inline bool StructTestCases::has_repeated_value() const {
return this != internal_default_instance() && repeated_value_ != NULL;
}
inline void StructTestCases::clear_repeated_value() {
if (GetArenaNoVirtual() == NULL && repeated_value_ != NULL) {
delete repeated_value_;
}
repeated_value_ = NULL;
}
inline const ::google::protobuf::testing::RepeatedValueWrapper& StructTestCases::repeated_value() const {
const ::google::protobuf::testing::RepeatedValueWrapper* p = repeated_value_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.repeated_value)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::RepeatedValueWrapper*>(
&::google::protobuf::testing::_RepeatedValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::release_repeated_value() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.repeated_value)
::google::protobuf::testing::RepeatedValueWrapper* temp = repeated_value_;
repeated_value_ = NULL;
return temp;
}
inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::mutable_repeated_value() {
if (repeated_value_ == NULL) {
repeated_value_ = new ::google::protobuf::testing::RepeatedValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.repeated_value)
return repeated_value_;
}
inline void StructTestCases::set_allocated_repeated_value(::google::protobuf::testing::RepeatedValueWrapper* repeated_value) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete repeated_value_;
}
if (repeated_value) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
repeated_value = ::google::protobuf::internal::GetOwnedMessage(
message_arena, repeated_value, submessage_arena);
}
} else {
}
repeated_value_ = repeated_value;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.repeated_value)
}
// .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list = 33;
inline bool StructTestCases::has_repeated_value_nested_list() const {
return this != internal_default_instance() && repeated_value_nested_list_ != NULL;
}
inline void StructTestCases::clear_repeated_value_nested_list() {
if (GetArenaNoVirtual() == NULL && repeated_value_nested_list_ != NULL) {
delete repeated_value_nested_list_;
}
repeated_value_nested_list_ = NULL;
}
inline const ::google::protobuf::testing::RepeatedValueWrapper& StructTestCases::repeated_value_nested_list() const {
const ::google::protobuf::testing::RepeatedValueWrapper* p = repeated_value_nested_list_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.repeated_value_nested_list)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::RepeatedValueWrapper*>(
&::google::protobuf::testing::_RepeatedValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::release_repeated_value_nested_list() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.repeated_value_nested_list)
::google::protobuf::testing::RepeatedValueWrapper* temp = repeated_value_nested_list_;
repeated_value_nested_list_ = NULL;
return temp;
}
inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::mutable_repeated_value_nested_list() {
if (repeated_value_nested_list_ == NULL) {
repeated_value_nested_list_ = new ::google::protobuf::testing::RepeatedValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.repeated_value_nested_list)
return repeated_value_nested_list_;
}
inline void StructTestCases::set_allocated_repeated_value_nested_list(::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete repeated_value_nested_list_;
}
if (repeated_value_nested_list) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
repeated_value_nested_list = ::google::protobuf::internal::GetOwnedMessage(
message_arena, repeated_value_nested_list, submessage_arena);
}
} else {
}
repeated_value_nested_list_ = repeated_value_nested_list;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.repeated_value_nested_list)
}
// .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list2 = 34;
inline bool StructTestCases::has_repeated_value_nested_list2() const {
return this != internal_default_instance() && repeated_value_nested_list2_ != NULL;
}
inline void StructTestCases::clear_repeated_value_nested_list2() {
if (GetArenaNoVirtual() == NULL && repeated_value_nested_list2_ != NULL) {
delete repeated_value_nested_list2_;
}
repeated_value_nested_list2_ = NULL;
}
inline const ::google::protobuf::testing::RepeatedValueWrapper& StructTestCases::repeated_value_nested_list2() const {
const ::google::protobuf::testing::RepeatedValueWrapper* p = repeated_value_nested_list2_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.repeated_value_nested_list2)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::RepeatedValueWrapper*>(
&::google::protobuf::testing::_RepeatedValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::release_repeated_value_nested_list2() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.repeated_value_nested_list2)
::google::protobuf::testing::RepeatedValueWrapper* temp = repeated_value_nested_list2_;
repeated_value_nested_list2_ = NULL;
return temp;
}
inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::mutable_repeated_value_nested_list2() {
if (repeated_value_nested_list2_ == NULL) {
repeated_value_nested_list2_ = new ::google::protobuf::testing::RepeatedValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.repeated_value_nested_list2)
return repeated_value_nested_list2_;
}
inline void StructTestCases::set_allocated_repeated_value_nested_list2(::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list2) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete repeated_value_nested_list2_;
}
if (repeated_value_nested_list2) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
repeated_value_nested_list2 = ::google::protobuf::internal::GetOwnedMessage(
message_arena, repeated_value_nested_list2, submessage_arena);
}
} else {
}
repeated_value_nested_list2_ = repeated_value_nested_list2;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.repeated_value_nested_list2)
}
// .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list3 = 35;
inline bool StructTestCases::has_repeated_value_nested_list3() const {
return this != internal_default_instance() && repeated_value_nested_list3_ != NULL;
}
inline void StructTestCases::clear_repeated_value_nested_list3() {
if (GetArenaNoVirtual() == NULL && repeated_value_nested_list3_ != NULL) {
delete repeated_value_nested_list3_;
}
repeated_value_nested_list3_ = NULL;
}
inline const ::google::protobuf::testing::RepeatedValueWrapper& StructTestCases::repeated_value_nested_list3() const {
const ::google::protobuf::testing::RepeatedValueWrapper* p = repeated_value_nested_list3_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.repeated_value_nested_list3)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::RepeatedValueWrapper*>(
&::google::protobuf::testing::_RepeatedValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::release_repeated_value_nested_list3() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.repeated_value_nested_list3)
::google::protobuf::testing::RepeatedValueWrapper* temp = repeated_value_nested_list3_;
repeated_value_nested_list3_ = NULL;
return temp;
}
inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::mutable_repeated_value_nested_list3() {
if (repeated_value_nested_list3_ == NULL) {
repeated_value_nested_list3_ = new ::google::protobuf::testing::RepeatedValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.repeated_value_nested_list3)
return repeated_value_nested_list3_;
}
inline void StructTestCases::set_allocated_repeated_value_nested_list3(::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list3) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete repeated_value_nested_list3_;
}
if (repeated_value_nested_list3) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
repeated_value_nested_list3 = ::google::protobuf::internal::GetOwnedMessage(
message_arena, repeated_value_nested_list3, submessage_arena);
}
} else {
}
repeated_value_nested_list3_ = repeated_value_nested_list3;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.repeated_value_nested_list3)
}
// .google.protobuf.testing.RepeatedListValueWrapper repeated_listvalue = 36;
inline bool StructTestCases::has_repeated_listvalue() const {
return this != internal_default_instance() && repeated_listvalue_ != NULL;
}
inline void StructTestCases::clear_repeated_listvalue() {
if (GetArenaNoVirtual() == NULL && repeated_listvalue_ != NULL) {
delete repeated_listvalue_;
}
repeated_listvalue_ = NULL;
}
inline const ::google::protobuf::testing::RepeatedListValueWrapper& StructTestCases::repeated_listvalue() const {
const ::google::protobuf::testing::RepeatedListValueWrapper* p = repeated_listvalue_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.repeated_listvalue)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::RepeatedListValueWrapper*>(
&::google::protobuf::testing::_RepeatedListValueWrapper_default_instance_);
}
inline ::google::protobuf::testing::RepeatedListValueWrapper* StructTestCases::release_repeated_listvalue() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.repeated_listvalue)
::google::protobuf::testing::RepeatedListValueWrapper* temp = repeated_listvalue_;
repeated_listvalue_ = NULL;
return temp;
}
inline ::google::protobuf::testing::RepeatedListValueWrapper* StructTestCases::mutable_repeated_listvalue() {
if (repeated_listvalue_ == NULL) {
repeated_listvalue_ = new ::google::protobuf::testing::RepeatedListValueWrapper;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.repeated_listvalue)
return repeated_listvalue_;
}
inline void StructTestCases::set_allocated_repeated_listvalue(::google::protobuf::testing::RepeatedListValueWrapper* repeated_listvalue) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete repeated_listvalue_;
}
if (repeated_listvalue) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
repeated_listvalue = ::google::protobuf::internal::GetOwnedMessage(
message_arena, repeated_listvalue, submessage_arena);
}
} else {
}
repeated_listvalue_ = repeated_listvalue;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.repeated_listvalue)
}
// .google.protobuf.testing.MapOfStruct map_of_struct = 37;
inline bool StructTestCases::has_map_of_struct() const {
return this != internal_default_instance() && map_of_struct_ != NULL;
}
inline void StructTestCases::clear_map_of_struct() {
if (GetArenaNoVirtual() == NULL && map_of_struct_ != NULL) {
delete map_of_struct_;
}
map_of_struct_ = NULL;
}
inline const ::google::protobuf::testing::MapOfStruct& StructTestCases::map_of_struct() const {
const ::google::protobuf::testing::MapOfStruct* p = map_of_struct_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.map_of_struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MapOfStruct*>(
&::google::protobuf::testing::_MapOfStruct_default_instance_);
}
inline ::google::protobuf::testing::MapOfStruct* StructTestCases::release_map_of_struct() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.map_of_struct)
::google::protobuf::testing::MapOfStruct* temp = map_of_struct_;
map_of_struct_ = NULL;
return temp;
}
inline ::google::protobuf::testing::MapOfStruct* StructTestCases::mutable_map_of_struct() {
if (map_of_struct_ == NULL) {
map_of_struct_ = new ::google::protobuf::testing::MapOfStruct;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.map_of_struct)
return map_of_struct_;
}
inline void StructTestCases::set_allocated_map_of_struct(::google::protobuf::testing::MapOfStruct* map_of_struct) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete map_of_struct_;
}
if (map_of_struct) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
map_of_struct = ::google::protobuf::internal::GetOwnedMessage(
message_arena, map_of_struct, submessage_arena);
}
} else {
}
map_of_struct_ = map_of_struct;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.map_of_struct)
}
// .google.protobuf.testing.MapOfStruct map_of_struct_value = 38;
inline bool StructTestCases::has_map_of_struct_value() const {
return this != internal_default_instance() && map_of_struct_value_ != NULL;
}
inline void StructTestCases::clear_map_of_struct_value() {
if (GetArenaNoVirtual() == NULL && map_of_struct_value_ != NULL) {
delete map_of_struct_value_;
}
map_of_struct_value_ = NULL;
}
inline const ::google::protobuf::testing::MapOfStruct& StructTestCases::map_of_struct_value() const {
const ::google::protobuf::testing::MapOfStruct* p = map_of_struct_value_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.map_of_struct_value)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MapOfStruct*>(
&::google::protobuf::testing::_MapOfStruct_default_instance_);
}
inline ::google::protobuf::testing::MapOfStruct* StructTestCases::release_map_of_struct_value() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.map_of_struct_value)
::google::protobuf::testing::MapOfStruct* temp = map_of_struct_value_;
map_of_struct_value_ = NULL;
return temp;
}
inline ::google::protobuf::testing::MapOfStruct* StructTestCases::mutable_map_of_struct_value() {
if (map_of_struct_value_ == NULL) {
map_of_struct_value_ = new ::google::protobuf::testing::MapOfStruct;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.map_of_struct_value)
return map_of_struct_value_;
}
inline void StructTestCases::set_allocated_map_of_struct_value(::google::protobuf::testing::MapOfStruct* map_of_struct_value) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete map_of_struct_value_;
}
if (map_of_struct_value) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
map_of_struct_value = ::google::protobuf::internal::GetOwnedMessage(
message_arena, map_of_struct_value, submessage_arena);
}
} else {
}
map_of_struct_value_ = map_of_struct_value;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.map_of_struct_value)
}
// .google.protobuf.testing.MapOfStruct map_of_listvalue = 39;
inline bool StructTestCases::has_map_of_listvalue() const {
return this != internal_default_instance() && map_of_listvalue_ != NULL;
}
inline void StructTestCases::clear_map_of_listvalue() {
if (GetArenaNoVirtual() == NULL && map_of_listvalue_ != NULL) {
delete map_of_listvalue_;
}
map_of_listvalue_ = NULL;
}
inline const ::google::protobuf::testing::MapOfStruct& StructTestCases::map_of_listvalue() const {
const ::google::protobuf::testing::MapOfStruct* p = map_of_listvalue_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.map_of_listvalue)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MapOfStruct*>(
&::google::protobuf::testing::_MapOfStruct_default_instance_);
}
inline ::google::protobuf::testing::MapOfStruct* StructTestCases::release_map_of_listvalue() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.map_of_listvalue)
::google::protobuf::testing::MapOfStruct* temp = map_of_listvalue_;
map_of_listvalue_ = NULL;
return temp;
}
inline ::google::protobuf::testing::MapOfStruct* StructTestCases::mutable_map_of_listvalue() {
if (map_of_listvalue_ == NULL) {
map_of_listvalue_ = new ::google::protobuf::testing::MapOfStruct;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.map_of_listvalue)
return map_of_listvalue_;
}
inline void StructTestCases::set_allocated_map_of_listvalue(::google::protobuf::testing::MapOfStruct* map_of_listvalue) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete map_of_listvalue_;
}
if (map_of_listvalue) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
map_of_listvalue = ::google::protobuf::internal::GetOwnedMessage(
message_arena, map_of_listvalue, submessage_arena);
}
} else {
}
map_of_listvalue_ = map_of_listvalue;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.map_of_listvalue)
}
// -------------------------------------------------------------------
// StructWrapper
// .google.protobuf.Struct struct = 1;
inline bool StructWrapper::has_struct_() const {
return this != internal_default_instance() && struct__ != NULL;
}
inline const ::google::protobuf::Struct& StructWrapper::struct_() const {
const ::google::protobuf::Struct* p = struct__;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructWrapper.struct)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
&::google::protobuf::_Struct_default_instance_);
}
inline ::google::protobuf::Struct* StructWrapper::release_struct_() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructWrapper.struct)
::google::protobuf::Struct* temp = struct__;
struct__ = NULL;
return temp;
}
inline ::google::protobuf::Struct* StructWrapper::mutable_struct_() {
if (struct__ == NULL) {
struct__ = new ::google::protobuf::Struct;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructWrapper.struct)
return struct__;
}
inline void StructWrapper::set_allocated_struct_(::google::protobuf::Struct* struct_) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(struct__);
}
if (struct_) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(struct_)->GetArena();
if (message_arena != submessage_arena) {
struct_ = ::google::protobuf::internal::GetOwnedMessage(
message_arena, struct_, submessage_arena);
}
} else {
}
struct__ = struct_;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructWrapper.struct)
}
// -------------------------------------------------------------------
// ValueWrapper
// .google.protobuf.Value value = 1;
inline bool ValueWrapper::has_value() const {
return this != internal_default_instance() && value_ != NULL;
}
inline const ::google::protobuf::Value& ValueWrapper::value() const {
const ::google::protobuf::Value* p = value_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.ValueWrapper.value)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
&::google::protobuf::_Value_default_instance_);
}
inline ::google::protobuf::Value* ValueWrapper::release_value() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.ValueWrapper.value)
::google::protobuf::Value* temp = value_;
value_ = NULL;
return temp;
}
inline ::google::protobuf::Value* ValueWrapper::mutable_value() {
if (value_ == NULL) {
value_ = new ::google::protobuf::Value;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.ValueWrapper.value)
return value_;
}
inline void ValueWrapper::set_allocated_value(::google::protobuf::Value* value) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_);
}
if (value) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(value)->GetArena();
if (message_arena != submessage_arena) {
value = ::google::protobuf::internal::GetOwnedMessage(
message_arena, value, submessage_arena);
}
} else {
}
value_ = value;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.ValueWrapper.value)
}
// -------------------------------------------------------------------
// RepeatedValueWrapper
// repeated .google.protobuf.Value values = 1;
inline int RepeatedValueWrapper::values_size() const {
return values_.size();
}
inline const ::google::protobuf::Value& RepeatedValueWrapper::values(int index) const {
// @@protoc_insertion_point(field_get:google.protobuf.testing.RepeatedValueWrapper.values)
return values_.Get(index);
}
inline ::google::protobuf::Value* RepeatedValueWrapper::mutable_values(int index) {
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.RepeatedValueWrapper.values)
return values_.Mutable(index);
}
inline ::google::protobuf::Value* RepeatedValueWrapper::add_values() {
// @@protoc_insertion_point(field_add:google.protobuf.testing.RepeatedValueWrapper.values)
return values_.Add();
}
inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >*
RepeatedValueWrapper::mutable_values() {
// @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.RepeatedValueWrapper.values)
return &values_;
}
inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >&
RepeatedValueWrapper::values() const {
// @@protoc_insertion_point(field_list:google.protobuf.testing.RepeatedValueWrapper.values)
return values_;
}
// -------------------------------------------------------------------
// ListValueWrapper
// .google.protobuf.ListValue shopping_list = 1;
inline bool ListValueWrapper::has_shopping_list() const {
return this != internal_default_instance() && shopping_list_ != NULL;
}
inline const ::google::protobuf::ListValue& ListValueWrapper::shopping_list() const {
const ::google::protobuf::ListValue* p = shopping_list_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.ListValueWrapper.shopping_list)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ListValue*>(
&::google::protobuf::_ListValue_default_instance_);
}
inline ::google::protobuf::ListValue* ListValueWrapper::release_shopping_list() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.ListValueWrapper.shopping_list)
::google::protobuf::ListValue* temp = shopping_list_;
shopping_list_ = NULL;
return temp;
}
inline ::google::protobuf::ListValue* ListValueWrapper::mutable_shopping_list() {
if (shopping_list_ == NULL) {
shopping_list_ = new ::google::protobuf::ListValue;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.ListValueWrapper.shopping_list)
return shopping_list_;
}
inline void ListValueWrapper::set_allocated_shopping_list(::google::protobuf::ListValue* shopping_list) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(shopping_list_);
}
if (shopping_list) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(shopping_list)->GetArena();
if (message_arena != submessage_arena) {
shopping_list = ::google::protobuf::internal::GetOwnedMessage(
message_arena, shopping_list, submessage_arena);
}
} else {
}
shopping_list_ = shopping_list;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.ListValueWrapper.shopping_list)
}
// -------------------------------------------------------------------
// RepeatedListValueWrapper
// repeated .google.protobuf.ListValue dimensions = 1;
inline int RepeatedListValueWrapper::dimensions_size() const {
return dimensions_.size();
}
inline const ::google::protobuf::ListValue& RepeatedListValueWrapper::dimensions(int index) const {
// @@protoc_insertion_point(field_get:google.protobuf.testing.RepeatedListValueWrapper.dimensions)
return dimensions_.Get(index);
}
inline ::google::protobuf::ListValue* RepeatedListValueWrapper::mutable_dimensions(int index) {
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.RepeatedListValueWrapper.dimensions)
return dimensions_.Mutable(index);
}
inline ::google::protobuf::ListValue* RepeatedListValueWrapper::add_dimensions() {
// @@protoc_insertion_point(field_add:google.protobuf.testing.RepeatedListValueWrapper.dimensions)
return dimensions_.Add();
}
inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue >*
RepeatedListValueWrapper::mutable_dimensions() {
// @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.RepeatedListValueWrapper.dimensions)
return &dimensions_;
}
inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue >&
RepeatedListValueWrapper::dimensions() const {
// @@protoc_insertion_point(field_list:google.protobuf.testing.RepeatedListValueWrapper.dimensions)
return dimensions_;
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// MapOfStruct
// map<string, .google.protobuf.Struct> struct_map = 1;
inline int MapOfStruct::struct_map_size() const {
return struct_map_.size();
}
inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >&
MapOfStruct::struct_map() const {
// @@protoc_insertion_point(field_map:google.protobuf.testing.MapOfStruct.struct_map)
return struct_map_.GetMap();
}
inline ::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >*
MapOfStruct::mutable_struct_map() {
// @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MapOfStruct.struct_map)
return struct_map_.MutableMap();
}
// map<string, .google.protobuf.Value> value_map = 2;
inline int MapOfStruct::value_map_size() const {
return value_map_.size();
}
inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >&
MapOfStruct::value_map() const {
// @@protoc_insertion_point(field_map:google.protobuf.testing.MapOfStruct.value_map)
return value_map_.GetMap();
}
inline ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >*
MapOfStruct::mutable_value_map() {
// @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MapOfStruct.value_map)
return value_map_.MutableMap();
}
// map<string, .google.protobuf.ListValue> listvalue_map = 3;
inline int MapOfStruct::listvalue_map_size() const {
return listvalue_map_.size();
}
inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >&
MapOfStruct::listvalue_map() const {
// @@protoc_insertion_point(field_map:google.protobuf.testing.MapOfStruct.listvalue_map)
return listvalue_map_.GetMap();
}
inline ::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >*
MapOfStruct::mutable_listvalue_map() {
// @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MapOfStruct.listvalue_map)
return listvalue_map_.MutableMap();
}
// -------------------------------------------------------------------
// Dummy
// string text = 1;
inline void Dummy::clear_text() {
text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& Dummy::text() const {
// @@protoc_insertion_point(field_get:google.protobuf.testing.Dummy.text)
return text_.GetNoArena();
}
inline void Dummy::set_text(const ::std::string& value) {
text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:google.protobuf.testing.Dummy.text)
}
#if LANG_CXX11
inline void Dummy::set_text(::std::string&& value) {
text_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Dummy.text)
}
#endif
inline void Dummy::set_text(const char* value) {
GOOGLE_DCHECK(value != NULL);
text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:google.protobuf.testing.Dummy.text)
}
inline void Dummy::set_text(const char* value, size_t size) {
text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Dummy.text)
}
inline ::std::string* Dummy::mutable_text() {
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.Dummy.text)
return text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* Dummy::release_text() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.Dummy.text)
return text_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void Dummy::set_allocated_text(::std::string* text) {
if (text != NULL) {
} else {
}
text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), text);
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Dummy.text)
}
// -------------------------------------------------------------------
// StructType
// .google.protobuf.Struct object = 1;
inline bool StructType::has_object() const {
return this != internal_default_instance() && object_ != NULL;
}
inline const ::google::protobuf::Struct& StructType::object() const {
const ::google::protobuf::Struct* p = object_;
// @@protoc_insertion_point(field_get:google.protobuf.testing.StructType.object)
return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
&::google::protobuf::_Struct_default_instance_);
}
inline ::google::protobuf::Struct* StructType::release_object() {
// @@protoc_insertion_point(field_release:google.protobuf.testing.StructType.object)
::google::protobuf::Struct* temp = object_;
object_ = NULL;
return temp;
}
inline ::google::protobuf::Struct* StructType::mutable_object() {
if (object_ == NULL) {
object_ = new ::google::protobuf::Struct;
}
// @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructType.object)
return object_;
}
inline void StructType::set_allocated_object(::google::protobuf::Struct* object) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(object_);
}
if (object) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast< ::google::protobuf::MessageLite*>(object)->GetArena();
if (message_arena != submessage_arena) {
object = ::google::protobuf::internal::GetOwnedMessage(
message_arena, object, submessage_arena);
}
} else {
}
object_ = object;
// @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructType.object)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace testing
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto__INCLUDED
| 46.288087 | 218 | 0.761079 |
ec8a37d415f3b381529eb58bbd402542fd1d42e1 | 590 | h | C | src/signal-backend.h | SecureIndustries/medusa | 8cdf200d0fe492f3f912820b8b17218b4a35d8cd | [
"BSD-3-Clause"
] | 1 | 2019-07-12T01:54:54.000Z | 2019-07-12T01:54:54.000Z | src/signal-backend.h | SecureIndustries/medusa | 8cdf200d0fe492f3f912820b8b17218b4a35d8cd | [
"BSD-3-Clause"
] | null | null | null | src/signal-backend.h | SecureIndustries/medusa | 8cdf200d0fe492f3f912820b8b17218b4a35d8cd | [
"BSD-3-Clause"
] | 1 | 2019-06-24T11:03:29.000Z | 2019-06-24T11:03:29.000Z |
#if !defined(MEDUSA_SIGNAL_BACKEND_H)
#define MEDUSA_SIGNAL_BACKEND_H
struct medusa_signal;
struct medusa_monitor;
struct medusa_signal_backend {
const char *name;
int (*fd) (struct medusa_signal_backend *backend);
int (*add) (struct medusa_signal_backend *backend, struct medusa_signal *signal);
int (*del) (struct medusa_signal_backend *backend, struct medusa_signal *signal);
int (*run) (struct medusa_signal_backend *backend);
void (*destroy) (struct medusa_signal_backend *backend);
struct medusa_monitor *monitor;
};
#endif
| 31.052632 | 89 | 0.722034 |
ec8c919637b16b1284e367a787f28739e6f9dd5e | 753 | h | C | BLLandscape-master/BLLandscapeDemo/Pods/JPNavigationController/JPNavigationController/JPNavigationBar.h | 2004huang/LandScape | 91fbadb1295d82634733de322339c079d7e6cec9 | [
"MIT"
] | 188 | 2016-12-29T08:51:46.000Z | 2017-06-01T13:44:47.000Z | BLLandscape-master/BLLandscapeDemo/Pods/JPNavigationController/JPNavigationController/JPNavigationBar.h | 2004huang/LandScape | 91fbadb1295d82634733de322339c079d7e6cec9 | [
"MIT"
] | 1 | 2017-08-29T07:40:28.000Z | 2017-08-29T11:17:16.000Z | BLLandscape-master/BLLandscapeDemo/Pods/JPNavigationController/JPNavigationController/JPNavigationBar.h | 2004huang/LandScape | 91fbadb1295d82634733de322339c079d7e6cec9 | [
"MIT"
] | 32 | 2017-06-03T05:00:30.000Z | 2020-05-15T03:24:38.000Z | /*
* This file is part of the JPNavigationController package.
* (c) NewPan <13246884282@163.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Click https://github.com/newyjp
* or http://www.jianshu.com/users/e2f2d779c022/latest_articles to contact me.
*/
/**
* This class is custom navigation bar.
* Framework add the link container view on it, then the link view is out of its super class' range, this lead to link view cannot response user's touch events. we need handle this situation by override hitTest:withEvent: method.
*/
#import <UIKit/UIKit.h>
@interface JPLinkContainerView : UIView
@end
@interface JPNavigationBar : UINavigationBar
@end
| 28.961538 | 229 | 0.75166 |
ec8ca7ad0719c6ec81e790e784d0f6f9af11ebb9 | 660 | h | C | src/engine/fog/Fog.h | Armanimani/Game-Engine | 8087cd999f7264488d24a5dc5571b659347a49dd | [
"MIT"
] | null | null | null | src/engine/fog/Fog.h | Armanimani/Game-Engine | 8087cd999f7264488d24a5dc5571b659347a49dd | [
"MIT"
] | 1 | 2017-04-05T01:40:02.000Z | 2017-04-05T07:36:55.000Z | src/engine/fog/Fog.h | Armanimani/Game-Engine | 8087cd999f7264488d24a5dc5571b659347a49dd | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <glew\GL\glew.h>
#include "glm\glm.hpp"
class Fog
{
public:
Fog(const std::string& name, const glm::vec4& color, const GLfloat& density) : name(name), color(color), density(density) {}
inline void setName(const std::string& value) { name = value; }
inline const std::string& getName() { return name; }
inline void setColor(const glm::vec4& value) { color = value; }
inline const glm::vec4& getColor() { return color; }
inline void setDensity(const GLfloat& value) { density = value; }
inline const GLfloat& getDensity() { return density; }
protected:
std::string name;
glm::vec4 color;
GLfloat density;
}; | 27.5 | 125 | 0.7 |
ec8f0c7ae95b790ef23bee5ebca25836162a9832 | 13,698 | c | C | eddystone-url/implementations/CSR-1010/buzzer.c | buypolarbear/eddystone | bb8738d7ddac0ddd3dfa70e594d011a0475e763d | [
"Apache-2.0"
] | 3,352 | 2015-07-14T15:15:34.000Z | 2022-03-31T03:21:27.000Z | eddystone-url/implementations/CSR-1010/buzzer.c | buypolarbear/eddystone | bb8738d7ddac0ddd3dfa70e594d011a0475e763d | [
"Apache-2.0"
] | 233 | 2015-07-14T16:22:24.000Z | 2022-03-14T09:22:22.000Z | eddystone-url/implementations/CSR-1010/buzzer.c | buypolarbear/eddystone | bb8738d7ddac0ddd3dfa70e594d011a0475e763d | [
"Apache-2.0"
] | 954 | 2015-07-14T16:06:58.000Z | 2022-03-25T12:04:12.000Z | /******************************************************************************
* Copyright (c) 2015 Cambridge Silicon Radio Limited
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted (subject to the limitations in the disclaimer below) provided that the
* following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 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.
*
* Neither the name of copyright holder nor the names of its contributors
* may be used to endorse or promote products derived from this software without specific prior written permission.
*
*
* NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER 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.
*
* FILE
* buzzer.c
*
* DESCRIPTION
* This file defines routines for accessing buzzer functionality.
*
*
*****************************************************************************/
/*============================================================================*
* SDK Header Files
*============================================================================*/
#include <pio.h> /* PIO configuration and control functions */
#include <pio_ctrlr.h> /* Access to the PIO controller */
#include <timer.h> /* Chip timer functions */
/*============================================================================*
* Local Header Files
*============================================================================*/
#include "user_config.h" /* User configuration */
#include "buzzer.h" /* Interface to this file */
#include "hw_access.h" /* Hardware access */
#include "esurl_beacon.h" /* Definitions used throughout the GATT server */
/* Only compile this file if the buzzer code has been requested */
#ifdef ENABLE_BUZZER
/*============================================================================*
* Private Definitions
*============================================================================*/
/* Setup PIOs
* PIO3 Buzzer
*/
#define BUZZER_PIO (3)
#define BUZZER_PIO_MASK (PIO_BIT_MASK(BUZZER_PIO))
/* The index (0-3) of the PWM unit to be configured */
#define BUZZER_PWM_INDEX_0 (0)
/* PWM parameters for Buzzer */
/* Dull on. off and hold times */
#define DULL_BUZZ_ON_TIME (2) /* 60us */
#define DULL_BUZZ_OFF_TIME (15) /* 450us */
#define DULL_BUZZ_HOLD_TIME (0)
/* Bright on, off and hold times */
#define BRIGHT_BUZZ_ON_TIME (2) /* 60us */
#define BRIGHT_BUZZ_OFF_TIME (15) /* 450us */
#define BRIGHT_BUZZ_HOLD_TIME (0) /* 0us */
#define BUZZ_RAMP_RATE (0xFF)
/* TIMER values for Buzzer */
#define SHORT_BEEP_TIMER_VALUE (100* MILLISECOND)
#define LONG_BEEP_TIMER_VALUE (500* MILLISECOND)
#define BEEP_GAP_TIMER_VALUE (25* MILLISECOND)
/*============================================================================*
* Public data types
*============================================================================*/
/* Buzzer data structure */
typedef struct _BUZZER_DATA_T
{
/* Buzzer timer ID */
timer_id buzzer_tid;
/* Current beep type */
buzzer_beep_type beep_type;
/* Beep counter. This variable will be initialised to 0 on beep start and
* will increment at every beep sound.
*/
uint16 beep_count;
} BUZZER_DATA_T;
/*============================================================================*
* Private data
*============================================================================*/
/* Buzzer data instance */
static BUZZER_DATA_T g_buzz_data;
/*============================================================================*
* Private Function Prototypes
*===========================================================================*/
/* Control buzzer at timer expiry */
static void appBuzzerTimerHandler(timer_id tid);
/*============================================================================*
* Private Function Implementations
*============================================================================*/
/*----------------------------------------------------------------------------*
* NAME
* appBuzzerTimerHandler
*
* DESCRIPTION
* This function is used to stop the Buzzer at the expiry of timer.
*
* PARAMETERS
* tid [in] ID of expired timer (unused)
*
* RETURNS
* Nothing
*----------------------------------------------------------------------------*/
static void appBuzzerTimerHandler(timer_id tid)
{
/* Duration of next timer */
uint32 beep_timer = SHORT_BEEP_TIMER_VALUE;
/* The buzzer timer has just expired, so reset the timer ID */
g_buzz_data.buzzer_tid = TIMER_INVALID;
switch(g_buzz_data.beep_type)
{
case buzzer_beep_short: /* FALLTHROUGH */
case buzzer_beep_long:
{
g_buzz_data.beep_type = buzzer_beep_off;
/* Disable buzzer */
PioEnablePWM(BUZZER_PWM_INDEX_0, FALSE);
}
break;
case buzzer_beep_twice:
{
if(g_buzz_data.beep_count == 0)
{
/* First beep sounded. Increment the beep count and start the
* silent gap.
*/
g_buzz_data.beep_count = 1;
/* Disable buzzer */
PioEnablePWM(BUZZER_PWM_INDEX_0, FALSE);
/* Time gap between two beeps */
beep_timer = BEEP_GAP_TIMER_VALUE;
}
else if(g_buzz_data.beep_count == 1)
{
/* Sound the second beep and increment the beep count. */
g_buzz_data.beep_count = 2;
/* Enable buzzer */
PioEnablePWM(BUZZER_PWM_INDEX_0, TRUE);
/* Start another short beep */
beep_timer = SHORT_BEEP_TIMER_VALUE;
}
else
{
/* Two beeps have been sounded. Stop buzzer now and reset the
* beep count.
*/
g_buzz_data.beep_count = 0;
/* Disable buzzer */
PioEnablePWM(BUZZER_PWM_INDEX_0, FALSE);
g_buzz_data.beep_type = buzzer_beep_off;
}
}
break;
case buzzer_beep_thrice:
{
if(g_buzz_data.beep_count == 0 ||
g_buzz_data.beep_count == 2)
{
/* Start the silent gap*/
++g_buzz_data.beep_count;
/* Disable buzzer */
PioEnablePWM(BUZZER_PWM_INDEX_0, FALSE);
/* Time gap between two beeps */
beep_timer = BEEP_GAP_TIMER_VALUE;
}
else if(g_buzz_data.beep_count == 1 ||
g_buzz_data.beep_count == 3)
{
/* Start the beep sounding part. */
++g_buzz_data.beep_count;
/* Enable buzzer */
PioEnablePWM(BUZZER_PWM_INDEX_0, TRUE);
beep_timer = SHORT_BEEP_TIMER_VALUE;
}
else
{
/* Three beeps have been sounded. Stop the buzzer. */
g_buzz_data.beep_count = 0;
/* Disable buzzer */
PioEnablePWM(BUZZER_PWM_INDEX_0, FALSE);
g_buzz_data.beep_type = buzzer_beep_off;
}
}
break;
default:
{
/* No such beep type */
ReportPanic(app_panic_unexpected_beep_type);
}
break;
}
if(g_buzz_data.beep_type != buzzer_beep_off)
{
/* Start the timer */
g_buzz_data.buzzer_tid = TimerCreate(beep_timer, TRUE,
appBuzzerTimerHandler);
}
}
/*============================================================================*
* Public Function Implementations
*============================================================================*/
/*----------------------------------------------------------------------------*
* NAME
* BuzzerInitHardware
*
* DESCRIPTION
* This function initialises the buzzer hardware.
*
* PARAMETERS
* None
*
* RETURNS
* Nothing
*----------------------------------------------------------------------------*/
extern void BuzzerInitHardware(void)
{
/* Configure the buzzer PIO to use PWM. */
PioSetModes(BUZZER_PIO_MASK, pio_mode_pwm0);
/* Configure the PWM for buzzer ON OFF values */
PioConfigPWM(BUZZER_PWM_INDEX_0, pio_pwm_mode_push_pull, DULL_BUZZ_ON_TIME,
DULL_BUZZ_OFF_TIME, DULL_BUZZ_HOLD_TIME, BRIGHT_BUZZ_ON_TIME,
BRIGHT_BUZZ_OFF_TIME, BRIGHT_BUZZ_HOLD_TIME, BUZZ_RAMP_RATE);
/* Disable buzzer for the time being. */
PioEnablePWM(BUZZER_PWM_INDEX_0, FALSE);
}
/*----------------------------------------------------------------------------*
* NAME
* BuzzerInitData
*
* DESCRIPTION
* This function initialises the buzzer data to a known state. It is
* intended to be called once, for example after a power-on reset or HCI
* reset.
*
* PARAMETERS
* None
*
* RETURNS
* Nothing
*----------------------------------------------------------------------------*/
extern void BuzzerInitData(void)
{
/* Initialise buzzer timer */
g_buzz_data.buzzer_tid = TIMER_INVALID;
/* The remaining values in the data structure are initialised by
* SoundBuzzer.
*/
}
/*----------------------------------------------------------------------------*
* NAME
* BuzzerResetData
*
* DESCRIPTION
* This function resets the buzzer data. It is intended to be called when
* the data needs to be reset to a clean state, for example, whenever a
* device connects or disconnects.
*
* PARAMETERS
* None
*
* RETURNS
* Nothing
*----------------------------------------------------------------------------*/
extern void BuzzerResetData(void)
{
/* Delete buzzer timer if running */
if (g_buzz_data.buzzer_tid != TIMER_INVALID)
{
TimerDelete(g_buzz_data.buzzer_tid);
g_buzz_data.buzzer_tid = TIMER_INVALID;
}
/* The remaining values in the data structure are reset by SoundBuzzer */
}
/*----------------------------------------------------------------------------*
* NAME
* SoundBuzzer
*
* DESCRIPTION
* This function is called to trigger beeps of different types, enumerated
* by 'buzzer_beep_type'.
*
* PARAMETERS
* beep_type [in] Type of beep required
*
* RETURNS
* Nothing
*----------------------------------------------------------------------------*/
extern void SoundBuzzer(buzzer_beep_type beep_type)
{
/* Duration of beep */
uint32 beep_timer = SHORT_BEEP_TIMER_VALUE;
/* Disable the buzzer and stop the buzzer timer. */
PioEnablePWM(BUZZER_PWM_INDEX_0, FALSE);
if (g_buzz_data.buzzer_tid != TIMER_INVALID)
{
TimerDelete(g_buzz_data.buzzer_tid);
g_buzz_data.buzzer_tid = TIMER_INVALID;
}
/* Reset the beeper state */
g_buzz_data.beep_count = 0;
/* Store the beep type. It will be used on timer expiry to check the type of
* beep being sounded.
*/
g_buzz_data.beep_type = beep_type;
switch(g_buzz_data.beep_type)
{
case buzzer_beep_off:
{
/* Don't do anything */
}
break;
case buzzer_beep_short: /* One short beep will be sounded */
/* FALLTHROUGH */
case buzzer_beep_twice: /* Two short beeps will be sounded */
/* FALLTHROUGH */
case buzzer_beep_thrice: /* Three short beeps will be sounded */
{
beep_timer = SHORT_BEEP_TIMER_VALUE;
}
break;
case buzzer_beep_long:
{
/* One long beep will be sounded */
beep_timer = LONG_BEEP_TIMER_VALUE;
}
break;
default:
{
/* No such beep type defined */
ReportPanic(app_panic_unexpected_beep_type);
}
break;
}
if(g_buzz_data.beep_type != buzzer_beep_off)
{
/* Enable buzzer */
PioEnablePWM(BUZZER_PWM_INDEX_0, TRUE);
/* Start the buzzer timer */
g_buzz_data.buzzer_tid = TimerCreate(beep_timer, TRUE,
appBuzzerTimerHandler);
}
}
#endif /* ENABLE_BUZZER */
| 32.306604 | 118 | 0.50949 |
ec8fc7d5398ca2c9291929ea70204d362d02909e | 2,772 | h | C | test/performance-regression/full-apps/qmcpack/src/QMCHamiltonians/SkEstimator.h | FeiyangJin/hclib | d23c850dce914e2d80cae733670820812a1edeee | [
"BSD-3-Clause"
] | 55 | 2015-07-28T01:32:58.000Z | 2022-02-27T16:27:46.000Z | test/performance-regression/full-apps/qmcpack/src/QMCHamiltonians/SkEstimator.h | FeiyangJin/hclib | d23c850dce914e2d80cae733670820812a1edeee | [
"BSD-3-Clause"
] | 66 | 2015-06-15T20:38:19.000Z | 2020-08-26T00:11:43.000Z | test/performance-regression/full-apps/qmcpack/src/QMCHamiltonians/SkEstimator.h | FeiyangJin/hclib | d23c850dce914e2d80cae733670820812a1edeee | [
"BSD-3-Clause"
] | 26 | 2015-10-26T22:11:51.000Z | 2021-03-02T22:09:15.000Z | //////////////////////////////////////////////////////////////////
// (c) Copyright 2008- by Jeongnim Kim
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
// National Center for Supercomputing Applications &
// Materials Computation Center
// University of Illinois, Urbana-Champaign
// Urbana, IL 61801
// e-mail: jnkim@ncsa.uiuc.edu
//
// Supported by
// National Center for Supercomputing Applications, UIUC
// Materials Computation Center, UIUC
//////////////////////////////////////////////////////////////////
// -*- C++ -*-
/** @file SkEstimator.h
* @brief Declare SkEstimator
*/
#ifndef QMCPLUSPLUS_SK_ESTIMATOR_H
#define QMCPLUSPLUS_SK_ESTIMATOR_H
#include <QMCHamiltonians/QMCHamiltonianBase.h>
namespace qmcplusplus
{
/** SkEstimator evaluate the structure factor of the target particleset
*
* <estimator name="sk" type="sk" debug="no"/>
*/
class SkEstimator: public QMCHamiltonianBase
{
public:
SkEstimator(ParticleSet& elns);
void resetTargetParticleSet(ParticleSet& P);
Return_t evaluate(ParticleSet& P);
inline Return_t evaluate(ParticleSet& P, vector<NonLocalData>& Txy)
{
return evaluate(P);
}
void addObservables(PropertySetType& plist);
void addObservables(PropertySetType& plist, BufferType& collectables);
void registerCollectables(vector<observable_helper*>& h5desc, hid_t gid) const ;
void setObservables(PropertySetType& plist);
void setParticlePropertyList(PropertySetType& plist, int offset);
bool put(xmlNodePtr cur);
bool get(std::ostream& os) const;
QMCHamiltonianBase* makeClone(ParticleSet& qp, TrialWaveFunction& psi);
protected:
ParticleSet *sourcePtcl;
/** number of species */
int NumSpecies;
/** number of kpoints */
int NumK;
/** number of kshells */
int MaxKshell;
/** normalization factor */
RealType OneOverN;
/** kshell counters */
vector<int> Kshell;
/** instantaneous structure factor */
vector<RealType> Kmag;
/** 1.0/degenracy for a ksell */
vector<RealType> OneOverDnk;
/** \f$rho_k = \sum_{\alpha} \rho_k^{\alpha} \f$ for species index \f$\alpha\f$ */
#if defined(USE_REAL_STRUCT_FACTOR)
Vector<RealType> RhokTot_r,RhokTot_i;
#else
Vector<ComplexType> RhokTot;
#endif
Vector<RealType> values;
/** resize the internal data
*
* The argument list is not completed
*/
void resize();
bool hdf5_out;
};
}
#endif
/***************************************************************************
* $RCSfile$ $Author: jnkim $
* $Revision: 2945 $ $Date: 2008-08-05 10:21:33 -0500 (Tue, 05 Aug 2008) $
* $Id: ForceBase.h 2945 2008-08-05 15:21:33Z jnkim $
***************************************************************************/
| 29.806452 | 84 | 0.604978 |
ec8fdb6eb90ea58193fb18dda355f3d6ad6e36de | 2,257 | h | C | sengi-project/lib/unicycle/unicycle.h | gbr1/sengi-firmware | 194d91ec780a5fc4c7f52a5174afdf00452d500b | [
"MIT"
] | 1 | 2019-11-26T16:38:53.000Z | 2019-11-26T16:38:53.000Z | sengi-project/lib/unicycle/unicycle.h | gbr1/sengi-firmware | 194d91ec780a5fc4c7f52a5174afdf00452d500b | [
"MIT"
] | 1 | 2019-11-10T06:56:39.000Z | 2019-11-10T09:36:14.000Z | sengi-project/lib/unicycle/unicycle.h | gbr1/sengi-firmware | 194d91ec780a5fc4c7f52a5174afdf00452d500b | [
"MIT"
] | null | null | null | /*
* The MIT License
*
* Copyright (c) 2019 Giovanni di Dio Bruno https://gbr1.github.io
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef __UNICYCLE_H__
#define __UNICYCLE_H__
#include "Arduino.h"
#include "definitions.h"
#include "motorcontroller.h"
#include "robot_definitions.h"
#include "math.h"
class Unicycle{
private:
float x;
float y;
float theta;
float d_linear;
float d_theta;
float prev_x;
float prev_y;
float prev_theta;
float dldt;
float phiR;
float phiL;
float wheelradius2;
float wheelbaseratio;
public:
Unicycle();
void update();
void inverseKinematic(float , float);
void forwardKinematic();
float getX(){return x;}
float getY(){return y;}
float getTheta(){return theta;}
float getLinear(){return d_linear;}
float getAngular(){return d_theta;}
MotorController motor_A{MOTOR_A_CH1, MOTOR_A_CH2, MOTOR_A_EN1, MOTOR_A_EN2,
MOTOR_A_TIM, COUNT_BOTH_CHANNELS,
MOTOR_A_CPR, MOTOR_A_GRR};
MotorController motor_B{MOTOR_B_CH1, MOTOR_B_CH2, MOTOR_B_EN1, MOTOR_B_EN2,
MOTOR_B_TIM, COUNT_BOTH_CHANNELS,
MOTOR_B_CPR, MOTOR_B_GRR};
};
#endif
| 27.192771 | 80 | 0.715995 |
ec920989474b585750816abed4da6dc92f99d26b | 375 | h | C | Include/DataEngine/DEDef.h | 7thTool/XIndicatorSdk | c1f3b8670b0edb08ccef3080107879a818e0796a | [
"MIT"
] | null | null | null | Include/DataEngine/DEDef.h | 7thTool/XIndicatorSdk | c1f3b8670b0edb08ccef3080107879a818e0796a | [
"MIT"
] | null | null | null | Include/DataEngine/DEDef.h | 7thTool/XIndicatorSdk | c1f3b8670b0edb08ccef3080107879a818e0796a | [
"MIT"
] | null | null | null | #ifndef _H_DATAENGINEDEF_H_
#define _H_DATAENGINEDEF_H_
#ifndef DE_DLL
#define DE_DLL
#endif//
#ifdef DE_DLL
#ifdef DE_EXPORTS
#define DE_API __declspec(dllexport)
#else
#define DE_API __declspec(dllimport)
#endif
#else
#ifdef DE_API
#undef DE_API
#endif//
#endif//
#ifndef DE_EXPORTS
#pragma comment(lib, "DataEngine.lib")
#endif//DE_EXPORTS
#endif//_H_DATAENGINEDEF_H_ | 15 | 38 | 0.789333 |
ec929c5da2c67951c931f54a0b46ea341d8f0d72 | 3,039 | h | C | code/engine.vc2008/xrGame/ui/UITalkDialogWnd.h | Pavel3333/xray-oxygen | 42331cd5f30511214c704d6ca9d919c209363eea | [
"Apache-2.0"
] | null | null | null | code/engine.vc2008/xrGame/ui/UITalkDialogWnd.h | Pavel3333/xray-oxygen | 42331cd5f30511214c704d6ca9d919c209363eea | [
"Apache-2.0"
] | null | null | null | code/engine.vc2008/xrGame/ui/UITalkDialogWnd.h | Pavel3333/xray-oxygen | 42331cd5f30511214c704d6ca9d919c209363eea | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "UIStatic.h"
#include "UI3tButton.h"
#include "UIFrameLineWnd.h"
#include "../InfoPortion.h"
#include "UICharacterInfo.h"
#include "UIItemInfo.h"
#include "UIWndCallback.h"
class CUIScrollView;
class CUIXml;
class CUITalkWnd;
class CUITalkDialogWnd: public CUIWindow, public CUIWndCallback
{
private:
typedef CUIWindow inherited;
CUIXml* m_uiXml;
public:
CUITalkDialogWnd ();
virtual ~CUITalkDialogWnd ();
void InitTalkDialogWnd ();
virtual void SendMessage (CUIWindow* pWnd, s16 msg, void* pData = NULL);
virtual void Show();
virtual void Hide();
CUITalkWnd* m_pParent;
u32 GetHeaderColor() { return m_iNameTextColor; }
CGameFont * GetHeaderFont() { return m_pNameTextFont; }
u32 GetOurReplicsColor() { return m_uOurReplicsColor; }
bool mechanic_mode; // for inventory upgrades
//номер выбранного вопроса
shared_str m_ClickedQuestionID;
//список вопросов, которые мы можем задавать персонажу
CUI3tButton UIToTradeButton;
//информация о персонажах
CUIStatic UIOurIcon;
CUIStatic UIOthersIcon;
CUICharacterInfo UICharacterInfoLeft;
CUICharacterInfo UICharacterInfoRight;
void AddQuestion (LPCSTR str, LPCSTR value, int number, bool b_finalizer);
void AddAnswer (LPCSTR SpeakerName, const char* str, bool bActor);
void AddIconedAnswer (LPCSTR caption, LPCSTR text, LPCSTR texture_name, LPCSTR templ_name);
void ClearAll ();
void ClearQuestions ();
void SetOsoznanieMode (bool b);
void SetTradeMode ();
void UpdateButtonsLayout (bool b_disable_break, bool trade_enabled);
private:
CUIScrollView* UIQuestionsList;
CUIScrollView* UIAnswersList;
// шрифт и цвет текста с именем персонажа
CGameFont *m_pNameTextFont;
u32 m_iNameTextColor;
// цвет тeкста и шрифт наших реплик
u32 m_uOurReplicsColor;
void __stdcall OnTradeClicked (CUIWindow* w, void*);
void __stdcall OnUpgradeClicked (CUIWindow* w, void*);
void __stdcall OnQuestionClicked (CUIWindow* w, void*);
void __stdcall OnExitClicked (CUIWindow* w, void*);
};
class CUIQuestionItem :public CUIWindow, public CUIWndCallback
{
typedef CUIWindow inherited;
float m_min_height;
public:
CUITextWnd* m_num_text;
CUI3tButton* m_text;
shared_str m_s_value;
CUIQuestionItem (CUIXml* xml_doc, LPCSTR path);
void Init (LPCSTR val, LPCSTR text);
virtual void SendMessage (CUIWindow* pWnd, s16 msg, void* pData = NULL);
void __stdcall OnTextClicked (CUIWindow* w, void*);
};
class CUIAnswerItem :public CUIWindow
{
typedef CUIWindow inherited;
float m_min_height;
float m_bottom_footer;
CUITextWnd* m_text;
CUITextWnd* m_name;
public:
CUIAnswerItem (CUIXml* xml_doc, LPCSTR path);
void Init (LPCSTR text, LPCSTR name);
};
class CUIAnswerItemIconed :public CUIAnswerItem
{
typedef CUIAnswerItem inherited;
CUIStatic* m_icon;
public:
CUIAnswerItemIconed (CUIXml* xml_doc, LPCSTR path);
void Init (LPCSTR text, LPCSTR name, LPCSTR texture_name);
};
| 25.325 | 96 | 0.738072 |
ec97920457fe9816d0367e484c95272de543626c | 38,158 | c | C | c_src/appsignal_extension.c | MeterSoft/appsignal-elixir | 52e3505b9dc90bce0795c4753a758d40bdf41463 | [
"MIT"
] | 234 | 2016-08-18T20:43:15.000Z | 2022-02-27T11:31:48.000Z | c_src/appsignal_extension.c | MeterSoft/appsignal-elixir | 52e3505b9dc90bce0795c4753a758d40bdf41463 | [
"MIT"
] | 563 | 2016-07-25T17:45:14.000Z | 2022-03-21T11:39:29.000Z | c_src/appsignal_extension.c | MeterSoft/appsignal-elixir | 52e3505b9dc90bce0795c4753a758d40bdf41463 | [
"MIT"
] | 86 | 2016-09-13T22:53:46.000Z | 2022-02-16T11:03:51.000Z | #ifdef __GNUC__
#define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
#else
#define UNUSED(x) UNUSED_ ## x
#endif
#include "erl_nif.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <appsignal.h>
static ErlNifResourceType *appsignal_transaction_type = NULL;
static ErlNifResourceType *appsignal_data_type = NULL;
static ErlNifResourceType *appsignal_span_type = NULL;
typedef struct {
appsignal_transaction_t *transaction;
} transaction_ptr;
typedef struct {
appsignal_data_t *data;
} data_ptr;
typedef struct {
appsignal_span_t *span;
} span_ptr;
static ERL_NIF_TERM
make_ok_tuple(ErlNifEnv *env, ERL_NIF_TERM value)
{
return enif_make_tuple2(env, enif_make_atom(env, "ok"), value);
}
static ERL_NIF_TERM
make_error_tuple(ErlNifEnv *env, const char *reason)
{
return enif_make_tuple2(env, enif_make_atom(env, "error"), enif_make_atom(env, reason));
}
static appsignal_string_t make_appsignal_string(ErlNifBinary binary)
{
appsignal_string_t retval;
retval.len = binary.size;
retval.buf = (char *)binary.data;
return retval;
}
static ERL_NIF_TERM make_elixir_string(ErlNifEnv* env, appsignal_string_t binary) {
return enif_make_string_len(env, binary.buf, binary.len, ERL_NIF_LATIN1);
}
static ERL_NIF_TERM _env_put(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
ErlNifBinary key, value;
if (argc != 2) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[0], &key)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &value)) {
return enif_make_badarg(env);
}
appsignal_env_put(
make_appsignal_string(key),
make_appsignal_string(value)
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _env_get(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
ErlNifBinary key;
appsignal_string_t value;
if (argc != 1) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[0], &key)) {
return enif_make_badarg(env);
}
value = appsignal_env_get(
make_appsignal_string(key)
);
return enif_make_string(env, value.buf, ERL_NIF_LATIN1);
}
static ERL_NIF_TERM _env_delete(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
ErlNifBinary key;
if (argc != 1) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[0], &key)) {
return enif_make_badarg(env);
}
appsignal_env_delete(
make_appsignal_string(key)
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _env_clear(ErlNifEnv* env, int UNUSED(argc), const ERL_NIF_TERM UNUSED(argv[]))
{
appsignal_env_clear();
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _start(ErlNifEnv* env, int UNUSED(arc), const ERL_NIF_TERM UNUSED(argv[]))
{
appsignal_start();
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _stop(ErlNifEnv* env, int UNUSED(arc), const ERL_NIF_TERM UNUSED(argv[]))
{
appsignal_stop();
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _diagnose(ErlNifEnv* env, int UNUSED(arc), const ERL_NIF_TERM UNUSED(argv[])) {
return make_elixir_string(env, appsignal_diagnose());
}
static ERL_NIF_TERM _start_transaction(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
ErlNifBinary transaction_id, namespace;
transaction_ptr *ptr;
ERL_NIF_TERM transaction_ref;
if (argc != 2) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[0], &transaction_id)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &namespace)) {
return enif_make_badarg(env);
}
ptr = enif_alloc_resource(appsignal_transaction_type, sizeof(transaction_ptr));
if(!ptr)
return make_error_tuple(env, "no_memory");
ptr->transaction = appsignal_start_transaction(
make_appsignal_string(transaction_id),
make_appsignal_string(namespace),
0
);
transaction_ref = enif_make_resource(env, ptr);
enif_release_resource(ptr);
return make_ok_tuple(env, transaction_ref);
}
static ERL_NIF_TERM _start_event(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
transaction_ptr *ptr;
if (argc != 1) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
appsignal_start_event(ptr->transaction, 0);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _finish_event(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
transaction_ptr *ptr;
ErlNifBinary name, title, body;
int bodyFormat;
if (argc != 5) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &name)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[2], &title)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[3], &body)) {
return enif_make_badarg(env);
}
if(!enif_get_int(env, argv[4], &bodyFormat)) {
return enif_make_badarg(env);
}
appsignal_finish_event(
ptr->transaction,
make_appsignal_string(name),
make_appsignal_string(title),
make_appsignal_string(body),
bodyFormat,
0
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _finish_event_data(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
transaction_ptr *ptr;
ErlNifBinary name, title;
int bodyFormat;
data_ptr *body;
if (argc != 5) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &name)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[2], &title)) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[3], appsignal_data_type, (void**) &body)) {
return enif_make_badarg(env);
}
if(!enif_get_int(env, argv[4], &bodyFormat)) {
return enif_make_badarg(env);
}
appsignal_finish_event_data(
ptr->transaction,
make_appsignal_string(name),
make_appsignal_string(title),
body->data,
bodyFormat,
0
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _record_event(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
transaction_ptr *ptr;
ErlNifBinary name, title, body;
long duration;
int bodyFormat;
if (argc != 6) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &name)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[2], &title)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[3], &body)) {
return enif_make_badarg(env);
}
if(!enif_get_int(env, argv[4], &bodyFormat)) {
return enif_make_badarg(env);
}
if(!enif_get_long(env, argv[5], &duration)) {
return enif_make_badarg(env);
}
appsignal_record_event(
ptr->transaction,
make_appsignal_string(name),
make_appsignal_string(title),
make_appsignal_string(body),
bodyFormat,
duration,
0
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_error(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
transaction_ptr *ptr;
ErlNifBinary error, message;
data_ptr *data_ptr;
if (argc != 4) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &error)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[2], &message)) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[3], appsignal_data_type, (void**) &data_ptr)) {
return enif_make_badarg(env);
}
appsignal_set_transaction_error(
ptr->transaction,
make_appsignal_string(error),
make_appsignal_string(message),
data_ptr->data
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_sample_data(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
transaction_ptr *ptr;
ErlNifBinary key;
data_ptr *data_ptr;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[2], appsignal_data_type, (void**) &data_ptr)) {
return enif_make_badarg(env);
}
appsignal_set_transaction_sample_data(
ptr->transaction,
make_appsignal_string(key),
data_ptr->data
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_action(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
transaction_ptr *ptr;
ErlNifBinary action;
if (argc != 2) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &action)) {
return enif_make_badarg(env);
}
appsignal_set_transaction_action(
ptr->transaction,
make_appsignal_string(action)
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_namespace(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
transaction_ptr *ptr;
ErlNifBinary namespace;
if (argc != 2) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &namespace)) {
return enif_make_badarg(env);
}
appsignal_set_transaction_namespace(
ptr->transaction,
make_appsignal_string(namespace)
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_queue_start(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
transaction_ptr *ptr;
long start;
if (argc != 2) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_get_long(env, argv[1], &start)) {
return enif_make_badarg(env);
}
appsignal_set_transaction_queue_start(
ptr->transaction,
start
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_meta_data(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
transaction_ptr *ptr;
ErlNifBinary key, value;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[2], &value)) {
return enif_make_badarg(env);
}
appsignal_set_transaction_metadata(
ptr->transaction,
make_appsignal_string(key),
make_appsignal_string(value)
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _finish(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
transaction_ptr *ptr;
int sample;
if (argc != 1) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
sample = appsignal_finish_transaction(ptr->transaction, 0);
if (sample == 1) {
return enif_make_atom(env, "sample");
} else {
return enif_make_atom(env, "no_sample");
}
}
static ERL_NIF_TERM _complete(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
transaction_ptr *ptr;
if (argc != 1) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
appsignal_complete_transaction(ptr->transaction);
return enif_make_atom(env, "ok");
}
static void destruct_appsignal_transaction(ErlNifEnv *UNUSED(env), void *arg) {
transaction_ptr *ptr = (transaction_ptr *)arg;
appsignal_free_transaction(ptr->transaction);
}
static void destruct_appsignal_data(ErlNifEnv *UNUSED(env), void *arg) {
data_ptr *ptr = (data_ptr *)arg;
appsignal_free_data(ptr->data);
}
static void destruct_appsignal_span(ErlNifEnv *UNUSED(env), void *arg) {
span_ptr *ptr = (span_ptr *)arg;
appsignal_free_span(ptr->span);
}
static ERL_NIF_TERM _set_gauge(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
ErlNifBinary key;
double value;
data_ptr *data_ptr;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[0], &key)) {
return enif_make_badarg(env);
}
if(!enif_get_double(env, argv[1], &value)) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[2], appsignal_data_type, (void**) &data_ptr)) {
return enif_make_badarg(env);
}
appsignal_set_gauge(make_appsignal_string(key), value, data_ptr->data);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _increment_counter(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
ErlNifBinary key;
double count;
data_ptr *data_ptr;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[0], &key)) {
return enif_make_badarg(env);
}
if(!enif_get_double(env, argv[1], &count)) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[2], appsignal_data_type, (void**) &data_ptr)) {
return enif_make_badarg(env);
}
appsignal_increment_counter(make_appsignal_string(key), count, data_ptr->data);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _add_distribution_value(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
ErlNifBinary key;
double value;
data_ptr *data_ptr;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[0], &key)) {
return enif_make_badarg(env);
}
if(!enif_get_double(env, argv[1], &value)) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[2], appsignal_data_type, (void**) &data_ptr)) {
return enif_make_badarg(env);
}
appsignal_add_distribution_value(make_appsignal_string(key), value, data_ptr->data);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _data_map_new(ErlNifEnv* env, int UNUSED(argc), const ERL_NIF_TERM UNUSED(argv[])) {
data_ptr *ptr;
ERL_NIF_TERM data_ref;
ptr = enif_alloc_resource(appsignal_data_type, sizeof(data_ptr));
if(!ptr)
return make_error_tuple(env, "no_memory");
ptr->data = appsignal_data_map_new();
data_ref = enif_make_resource(env, ptr);
enif_release_resource(ptr);
return make_ok_tuple(env, data_ref);
}
static ERL_NIF_TERM _data_filtered_map_new(ErlNifEnv* env, int UNUSED(argc), const ERL_NIF_TERM UNUSED(argv[])) {
data_ptr *ptr;
ERL_NIF_TERM data_ref;
ptr = enif_alloc_resource(appsignal_data_type, sizeof(data_ptr));
if(!ptr)
return make_error_tuple(env, "no_memory");
ptr->data = appsignal_data_filtered_map_new();
data_ref = enif_make_resource(env, ptr);
enif_release_resource(ptr);
return make_ok_tuple(env, data_ref);
}
static ERL_NIF_TERM _data_set_string(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
data_ptr *ptr;
ErlNifBinary key, value;
if(!enif_get_resource(env, argv[0], appsignal_data_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
switch(argc) {
case 3:
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[2], &value)) {
return enif_make_badarg(env);
}
appsignal_data_map_set_string(ptr->data, make_appsignal_string(key), make_appsignal_string(value));
break;
case 2:
if(!enif_inspect_iolist_as_binary(env, argv[1], &value)) {
return enif_make_badarg(env);
}
appsignal_data_array_append_string(ptr->data, make_appsignal_string(value));
break;
default:
return enif_make_badarg(env);
}
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _data_set_integer(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
data_ptr *ptr;
ErlNifBinary key;
long value;
if(!enif_get_resource(env, argv[0], appsignal_data_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
switch(argc) {
case 3:
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if(!enif_get_int64(env, argv[2], &value)) {
return enif_make_badarg(env);
}
appsignal_data_map_set_integer(ptr->data, make_appsignal_string(key), value);
break;
case 2:
if(!enif_get_int64(env, argv[1], &value)) {
return enif_make_badarg(env);
}
appsignal_data_array_append_integer(ptr->data, value);
break;
default:
return enif_make_badarg(env);
}
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _data_set_float(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
data_ptr *ptr;
ErlNifBinary key;
double value;
if(!enif_get_resource(env, argv[0], appsignal_data_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
switch(argc) {
case 3:
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if(!enif_get_double(env, argv[2], &value)) {
return enif_make_badarg(env);
}
appsignal_data_map_set_float(ptr->data, make_appsignal_string(key), value);
break;
case 2:
if(!enif_get_double(env, argv[1], &value)) {
return enif_make_badarg(env);
}
appsignal_data_array_append_float(ptr->data, value);
break;
default:
return enif_make_badarg(env);
}
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _data_set_boolean(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
data_ptr *ptr;
ErlNifBinary key;
int value;
if(!enif_get_resource(env, argv[0], appsignal_data_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
switch(argc) {
case 3:
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if (!enif_get_int(env, argv[2], &value)) {
return enif_make_badarg(env);
}
appsignal_data_map_set_boolean(ptr->data, make_appsignal_string(key), value);
break;
case 2:
if (!enif_get_int(env, argv[1], &value)) {
return enif_make_badarg(env);
}
appsignal_data_array_append_boolean(ptr->data, value);
break;
default:
return enif_make_badarg(env);
}
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _data_set_nil(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
data_ptr *ptr;
ErlNifBinary key;
if(!enif_get_resource(env, argv[0], appsignal_data_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
switch(argc) {
case 2:
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
appsignal_data_map_set_null(ptr->data, make_appsignal_string(key));
break;
case 1:
appsignal_data_array_append_null(ptr->data);
break;
default:
return enif_make_badarg(env);
}
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _data_set_data(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
data_ptr *ptr, *value;
ErlNifBinary key;
if(!enif_get_resource(env, argv[0], appsignal_data_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
switch(argc) {
case 3:
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[2], appsignal_data_type, (void**) &value)) {
return enif_make_badarg(env);
}
appsignal_data_map_set_data(ptr->data, make_appsignal_string(key), value->data);
break;
case 2:
if(!enif_get_resource(env, argv[1], appsignal_data_type, (void**) &value)) {
return enif_make_badarg(env);
}
appsignal_data_array_append_data(ptr->data, value->data);
break;
default:
return enif_make_badarg(env);
}
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _data_list_new(ErlNifEnv* env, int UNUSED(argc), const ERL_NIF_TERM UNUSED(argv[])) {
data_ptr *ptr;
ERL_NIF_TERM data_ref;
ptr = enif_alloc_resource(appsignal_data_type, sizeof(data_ptr));
if(!ptr)
return make_error_tuple(env, "no_memory");
ptr->data = appsignal_data_array_new();
data_ref = enif_make_resource(env, ptr);
enif_release_resource(ptr);
return make_ok_tuple(env, data_ref);
}
static ERL_NIF_TERM _running_in_container(ErlNifEnv* env, int UNUSED(argc), const ERL_NIF_TERM UNUSED(argv[])) {
if(appsignal_running_in_container() == 1) {
return enif_make_atom(env, "true");
} else {
return enif_make_atom(env, "false");
}
}
#ifdef TEST
static ERL_NIF_TERM _data_to_json(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
data_ptr *ptr;
appsignal_string_t json;
if (argc != 1) {
return enif_make_badarg(env);
}
if (!enif_get_resource(env, argv[0], appsignal_data_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
json = appsignal_data_to_json(ptr->data);
return make_ok_tuple(env, enif_make_string(env, json.buf, ERL_NIF_LATIN1));
}
static ERL_NIF_TERM _transaction_to_json(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
transaction_ptr *ptr;
appsignal_string_t json;
if (argc != 1) {
return enif_make_badarg(env);
}
if (!enif_get_resource(env, argv[0], appsignal_transaction_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
json = appsignal_transaction_to_json(ptr->transaction);
return make_ok_tuple(env, make_elixir_string(env, json));
}
#endif
static ERL_NIF_TERM _loaded(ErlNifEnv *env, int UNUSED(argc), const ERL_NIF_TERM UNUSED(argv[])) {
return enif_make_atom(env, "true");
}
static ERL_NIF_TERM _create_root_span(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
span_ptr *ptr;
ErlNifBinary namespace;
ERL_NIF_TERM span_ref;
if (argc != 1) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[0], &namespace)) {
return enif_make_badarg(env);
}
ptr = enif_alloc_resource(appsignal_span_type, sizeof(span_ptr));
if(!ptr)
return make_error_tuple(env, "no_memory");
ptr->span = appsignal_create_root_span(make_appsignal_string(namespace));
span_ref = enif_make_resource(env, ptr);
enif_release_resource(ptr);
return make_ok_tuple(env, span_ref);
}
static ERL_NIF_TERM _create_root_span_with_timestamp(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
span_ptr *ptr;
ErlNifBinary namespace;
long sec;
long nsec;
ERL_NIF_TERM span_ref;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[0], &namespace)) {
return enif_make_badarg(env);
}
if(!enif_get_long(env, argv[1], &sec)) {
return enif_make_badarg(env);
}
if(!enif_get_long(env, argv[2], &nsec)) {
return enif_make_badarg(env);
}
ptr = enif_alloc_resource(appsignal_span_type, sizeof(span_ptr));
if(!ptr)
return make_error_tuple(env, "no_memory");
ptr->span = appsignal_create_root_span_with_timestamp(make_appsignal_string(namespace), sec, nsec);
span_ref = enif_make_resource(env, ptr);
enif_release_resource(ptr);
return make_ok_tuple(env, span_ref);
}
static ERL_NIF_TERM _create_child_span(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
span_ptr *parent;
span_ptr *ptr;
ERL_NIF_TERM span_ref;
if (argc != 1) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &parent)) {
return enif_make_badarg(env);
}
ptr = enif_alloc_resource(appsignal_span_type, sizeof(span_ptr));
if(!ptr)
return make_error_tuple(env, "no_memory");
ptr->span = appsignal_create_child_span(parent->span);
span_ref = enif_make_resource(env, ptr);
enif_release_resource(ptr);
return make_ok_tuple(env, span_ref);
}
static ERL_NIF_TERM _create_child_span_with_timestamp(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
span_ptr *parent;
span_ptr *ptr;
long sec;
long nsec;
ERL_NIF_TERM span_ref;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &parent)) {
return enif_make_badarg(env);
}
if(!enif_get_long(env, argv[1], &sec)) {
return enif_make_badarg(env);
}
if(!enif_get_long(env, argv[2], &nsec)) {
return enif_make_badarg(env);
}
ptr = enif_alloc_resource(appsignal_span_type, sizeof(span_ptr));
if(!ptr)
return make_error_tuple(env, "no_memory");
ptr->span = appsignal_create_child_span_with_timestamp(parent->span, sec, nsec);
span_ref = enif_make_resource(env, ptr);
enif_release_resource(ptr);
return make_ok_tuple(env, span_ref);
}
static ERL_NIF_TERM _set_span_name(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
span_ptr *ptr;
ErlNifBinary name;
if (argc != 2) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &name)) {
return enif_make_badarg(env);
}
appsignal_set_span_name(ptr->span, make_appsignal_string(name));
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_span_namespace(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
span_ptr *ptr;
ErlNifBinary namespace;
if (argc != 2) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &namespace)) {
return enif_make_badarg(env);
}
appsignal_set_span_namespace(ptr->span, make_appsignal_string(namespace));
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_span_attribute_string(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
span_ptr *ptr;
ErlNifBinary key;
ErlNifBinary value;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[2], &value)) {
return enif_make_badarg(env);
}
appsignal_set_span_attribute_string(
ptr->span,
make_appsignal_string(key),
make_appsignal_string(value)
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_span_attribute_int(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
span_ptr *ptr;
ErlNifBinary key;
long value;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if(!enif_get_long(env, argv[2], &value)) {
return enif_make_badarg(env);
}
appsignal_set_span_attribute_int(
ptr->span,
make_appsignal_string(key),
value
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_span_attribute_bool(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
span_ptr *ptr;
ErlNifBinary key;
int value;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if(!enif_get_int(env, argv[2], &value)) {
return enif_make_badarg(env);
}
appsignal_set_span_attribute_bool(
ptr->span,
make_appsignal_string(key),
value
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_span_attribute_double(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
span_ptr *ptr;
ErlNifBinary key;
double value;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if(!enif_get_double(env, argv[2], &value)) {
return enif_make_badarg(env);
}
appsignal_set_span_attribute_double(
ptr->span,
make_appsignal_string(key),
value
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_span_attribute_sql_string(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
span_ptr *ptr;
ErlNifBinary key;
ErlNifBinary value;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[2], &value)) {
return enif_make_badarg(env);
}
appsignal_set_span_attribute_sql_string(
ptr->span,
make_appsignal_string(key),
make_appsignal_string(value)
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _set_span_sample_data(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
span_ptr *ptr;
ErlNifBinary key;
data_ptr *data_ptr;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &key)) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[2], appsignal_data_type, (void**) &data_ptr)) {
return enif_make_badarg(env);
}
appsignal_set_span_sample_data(
ptr->span,
make_appsignal_string(key),
data_ptr->data
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _add_span_error(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
span_ptr *ptr;
ErlNifBinary error, message;
data_ptr *data_ptr;
if (argc != 4) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[1], &error)) {
return enif_make_badarg(env);
}
if(!enif_inspect_iolist_as_binary(env, argv[2], &message)) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[3], appsignal_data_type, (void**) &data_ptr)) {
return enif_make_badarg(env);
}
appsignal_add_span_error(
ptr->span,
make_appsignal_string(error),
make_appsignal_string(message),
data_ptr->data
);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _close_span(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
span_ptr *ptr;
if (argc != 1) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
appsignal_close_span(ptr->span);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _close_span_with_timestamp(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
span_ptr *ptr;
long sec;
long nsec;
if (argc != 3) {
return enif_make_badarg(env);
}
if(!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
if(!enif_get_long(env, argv[1], &sec)) {
return enif_make_badarg(env);
}
if(!enif_get_long(env, argv[2], &nsec)) {
return enif_make_badarg(env);
}
appsignal_close_span_with_timestamp(ptr->span, sec, nsec);
return enif_make_atom(env, "ok");
}
static ERL_NIF_TERM _span_to_json(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {
span_ptr *ptr;
appsignal_string_t json;
if (argc != 1) {
return enif_make_badarg(env);
}
if (!enif_get_resource(env, argv[0], appsignal_span_type, (void**) &ptr)) {
return enif_make_badarg(env);
}
json = appsignal_span_to_json(ptr->span);
return make_ok_tuple(env, make_elixir_string(env, json));
}
static int on_load(ErlNifEnv* env, void** UNUSED(priv), ERL_NIF_TERM UNUSED(info))
{
ErlNifResourceType *transaction_resource_type;
ErlNifResourceType *data_resource_type;
ErlNifResourceType *span_resource_type;
transaction_resource_type = enif_open_resource_type(
env,
"appsignal_nif",
"appsignal_transaction_type",
destruct_appsignal_transaction,
ERL_NIF_RT_CREATE,
NULL
);
data_resource_type = enif_open_resource_type(
env,
"appsignal_nif",
"appsignal_data_type",
destruct_appsignal_data,
ERL_NIF_RT_CREATE,
NULL
);
span_resource_type = enif_open_resource_type(
env,
"appsignal_nif",
"appsignal_span_type",
destruct_appsignal_span,
ERL_NIF_RT_CREATE,
NULL
);
if (!transaction_resource_type || !data_resource_type) {
return -1;
}
appsignal_transaction_type = transaction_resource_type;
appsignal_data_type = data_resource_type;
appsignal_span_type = span_resource_type;
return 0;
}
static int on_reload(ErlNifEnv* UNUSED(env), void** UNUSED(priv_data), ERL_NIF_TERM UNUSED(load_info))
{
return 0;
}
static int on_upgrade(ErlNifEnv* UNUSED(env), void** UNUSED(priv), void** UNUSED(old_priv_data), ERL_NIF_TERM UNUSED(load_info))
{
return 0;
}
static ErlNifFunc nif_funcs[] =
{
{"_env_put", 2, _env_put, 0},
{"_env_get", 1, _env_get, 0},
{"_env_delete", 1, _env_delete, 0},
{"_env_clear", 0, _env_clear, 0},
{"_start", 0, _start, 0},
{"_stop", 0, _stop, 0},
{"_diagnose", 0, _diagnose, 0},
{"_start_transaction", 2, _start_transaction, 0},
{"_start_event", 1, _start_event, 0},
{"_finish_event", 5, _finish_event, 0},
{"_finish_event_data", 5, _finish_event_data, 0},
{"_record_event", 6, _record_event, 0},
{"_set_error", 4, _set_error, 0},
{"_set_sample_data", 3, _set_sample_data, 0},
{"_set_action", 2, _set_action, 0},
{"_set_namespace", 2, _set_namespace, 0},
{"_set_queue_start", 2, _set_queue_start, 0},
{"_set_meta_data", 3, _set_meta_data, 0},
{"_finish", 1, _finish, 0},
{"_complete", 1, _complete, 0},
{"_set_gauge", 3, _set_gauge, 0},
{"_increment_counter", 3, _increment_counter, 0},
{"_add_distribution_value", 3, _add_distribution_value, 0},
{"_data_map_new", 0, _data_map_new, 0},
{"_data_filtered_map_new", 0, _data_filtered_map_new, 0},
{"_data_set_string", 3, _data_set_string, 0},
{"_data_set_string", 2, _data_set_string, 0},
{"_data_set_integer", 3, _data_set_integer, 0},
{"_data_set_integer", 2, _data_set_integer, 0},
{"_data_set_float", 3, _data_set_float, 0},
{"_data_set_float", 2, _data_set_float, 0},
{"_data_set_boolean", 3, _data_set_boolean, 0},
{"_data_set_boolean", 2, _data_set_boolean, 0},
{"_data_set_nil", 2, _data_set_nil, 0},
{"_data_set_nil", 1, _data_set_nil, 0},
{"_data_set_data", 3, _data_set_data, 0},
{"_data_set_data", 2, _data_set_data, 0},
{"_data_list_new", 0, _data_list_new, 0},
{"_running_in_container", 0, _running_in_container, 0},
#ifdef TEST
{"_transaction_to_json", 1, _transaction_to_json, 0},
{"_data_to_json", 1, _data_to_json, 0},
#endif
{"_loaded", 0, _loaded, 0},
{"_create_root_span", 1, _create_root_span, 0},
{"_create_root_span_with_timestamp", 3, _create_root_span_with_timestamp, 0},
{"_create_child_span", 1, _create_child_span, 0},
{"_create_child_span_with_timestamp", 3, _create_child_span_with_timestamp, 0},
{"_set_span_name", 2, _set_span_name, 0},
{"_set_span_namespace", 2, _set_span_namespace, 0},
{"_set_span_attribute_string", 3, _set_span_attribute_string, 0},
{"_set_span_attribute_int", 3, _set_span_attribute_int, 0},
{"_set_span_attribute_bool", 3, _set_span_attribute_bool, 0},
{"_set_span_attribute_double", 3, _set_span_attribute_double, 0},
{"_set_span_attribute_sql_string", 3, _set_span_attribute_string, 0},
{"_set_span_sample_data", 3, _set_span_sample_data, 0},
{"_add_span_error", 4, _add_span_error, 0},
{"_close_span", 1, _close_span, 0},
{"_close_span_with_timestamp", 3, _close_span_with_timestamp, 0},
{"_span_to_json", 1, _span_to_json, 0}
};
ERL_NIF_INIT(Elixir.Appsignal.Nif, nif_funcs, on_load, on_reload, on_upgrade, NULL)
| 27.216833 | 128 | 0.677053 |
ec98208aa15baab86fe5ae0c0bcf3ccd28914345 | 4,448 | h | C | catboost/libs/text_features/embedding_online_features.h | ibr11/catboost | 842a25b4fb856a61564b163b16a3f49ba35fdc14 | [
"Apache-2.0"
] | null | null | null | catboost/libs/text_features/embedding_online_features.h | ibr11/catboost | 842a25b4fb856a61564b163b16a3f49ba35fdc14 | [
"Apache-2.0"
] | null | null | null | catboost/libs/text_features/embedding_online_features.h | ibr11/catboost | 842a25b4fb856a61564b163b16a3f49ba35fdc14 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "feature_calcer.h"
#include <catboost/libs/text_processing/embedding.h>
#include <util/system/types.h>
#include <util/generic/vector.h>
#include <util/generic/array_ref.h>
namespace NCB {
class TEmbeddingOnlineFeatures final : public TTextFeatureCalcer {
public:
explicit TEmbeddingOnlineFeatures(ui32 numClasses = 2,
TEmbeddingPtr embedding = TEmbeddingPtr(),
bool useCos = true,
bool computeHomoscedasticModel = true,
bool computeHeteroscedasticModel = true,
double prior = 1
)
: NumClasses(numClasses)
, Embedding(std::move(embedding))
, ComputeCosDistance(useCos)
, ComputeHomoscedasticModel(computeHomoscedasticModel)
, ComputeHeteroscedasticModel(computeHeteroscedasticModel)
, Prior(prior)
, TotalWeight(prior)
, Means(numClasses)
, PerClassSigma(numClasses)
, ClassSizes(numClasses) {
const auto embeddingsDim = Embedding->Dim();
TotalSigma = TVector<double>(embeddingsDim * embeddingsDim);
for (auto& vec : Means) {
vec.resize(embeddingsDim);
}
for (auto& vec : PerClassSigma) {
vec.resize(embeddingsDim * embeddingsDim);
}
}
static ui32 FeatureCount(
ui32 numClasses,
bool computeCosDistance,
bool computeHomoscedasticModel,
bool computeHeteroscedasticModel) {
return numClasses * (
(ui32)(computeCosDistance) +
(ui32)(computeHomoscedasticModel) +
(ui32)(computeHeteroscedasticModel)
);
}
ui32 FeatureCount() const override {
return FeatureCount(NumClasses, ComputeCosDistance, ComputeHomoscedasticModel, ComputeHeteroscedasticModel);
}
void Compute(TConstArrayRef<float> embedding, TOutputFloatIterator outputFeaturesIterator) const;
EFeatureCalcerType Type() const override {
return EFeatureCalcerType::EmbeddingDistanceToClass;
}
void Compute(const TText& text, TOutputFloatIterator iterator) const override {
TVector<float> embedding;
Embedding->Apply(text, &embedding);
return Compute(embedding, iterator);
}
void SetEmbedding(TEmbeddingPtr embedding) {
Embedding = std::move(embedding);
}
bool IsSerializable() const override {
return true;
}
private:
ui32 NumClasses;
TEmbeddingPtr Embedding;
bool ComputeCosDistance;
bool ComputeHomoscedasticModel;
bool ComputeHeteroscedasticModel;
double Prior;
double TotalWeight;
TVector<double> TotalSigma;
TVector<TVector<double>> Means;
TVector<TVector<double>> PerClassSigma;
TVector<ui64> ClassSizes;
friend class TEmbeddingFeaturesVisitor;
};
class TEmbeddingFeaturesVisitor final : public ITextCalcerVisitor {
public:
TEmbeddingFeaturesVisitor(ui32 numClasses, ui32 embeddingsDim)
: NumClasses(numClasses)
, Dim(embeddingsDim)
, Sums(numClasses)
, Sums2(numClasses) {
for (auto& vec : Sums) {
vec.resize(Dim);
}
for (auto& vec : Sums2) {
vec.resize(Dim * (Dim + 1) / 2);
}
}
void Update(ui32 classIdx, const TText& text, TTextFeatureCalcer* calcer) override {
auto embeddingCalcer = dynamic_cast<TEmbeddingOnlineFeatures*>(calcer);
Y_ASSERT(embeddingCalcer);
TVector<float> embedding;
embeddingCalcer->Embedding->Apply(text, &embedding);
UpdateEmbedding(classIdx, embedding, embeddingCalcer);
}
void UpdateEmbedding(
ui32 classId,
TConstArrayRef<float> embedding,
TEmbeddingOnlineFeatures* embeddingCalcer
);
private:
const ui32 NumClasses;
const ui32 Dim;
TVector<TVector<double>> Sums;
TVector<TVector<double>> Sums2;
};
}
| 32.948148 | 120 | 0.580036 |
ec98ecf95fc8ff9ce71f31d23d84a5a5149e843e | 1,020 | h | C | release/src-rt-6.x/linux/linux-2.6/include/net/netfilter/nf_nat_helper.h | ghsecuritylab/tomato-sabai | 9027a38297d32e97dd386499cca4a583e25d1f9d | [
"Apache-2.0"
] | 278 | 2015-11-03T03:01:20.000Z | 2022-01-20T18:21:05.000Z | release/src-rt-6.x/linux/linux-2.6/include/net/netfilter/nf_nat_helper.h | kerpz/tomato | 60d3c74ab93d43d0e6a22f56f0876c0180c5c7d3 | [
"FSFAP"
] | 374 | 2015-11-03T12:37:22.000Z | 2021-12-17T14:18:08.000Z | release/src-rt-6.x/linux/linux-2.6/include/net/netfilter/nf_nat_helper.h | kerpz/tomato | 60d3c74ab93d43d0e6a22f56f0876c0180c5c7d3 | [
"FSFAP"
] | 96 | 2015-11-22T07:47:26.000Z | 2022-01-20T19:52:19.000Z | #ifndef _NF_NAT_HELPER_H
#define _NF_NAT_HELPER_H
/* NAT protocol helper routines. */
#include <net/netfilter/nf_conntrack.h>
struct sk_buff;
/* These return true or false. */
extern int nf_nat_mangle_tcp_packet(struct sk_buff **skb,
struct nf_conn *ct,
enum ip_conntrack_info ctinfo,
unsigned int match_offset,
unsigned int match_len,
const char *rep_buffer,
unsigned int rep_len);
extern int nf_nat_mangle_udp_packet(struct sk_buff **skb,
struct nf_conn *ct,
enum ip_conntrack_info ctinfo,
unsigned int match_offset,
unsigned int match_len,
const char *rep_buffer,
unsigned int rep_len);
extern int nf_nat_seq_adjust(struct sk_buff **pskb,
struct nf_conn *ct,
enum ip_conntrack_info ctinfo);
/* Setup NAT on this expected conntrack so it follows master, but goes
* to port ct->master->saved_proto. */
extern void nf_nat_follow_master(struct nf_conn *ct,
struct nf_conntrack_expect *this);
#endif
| 30.909091 | 70 | 0.707843 |
ec9941fedb2927fc3aff62967335742cd6412471 | 3,980 | h | C | cachelib/navy/testing/MockJobScheduler.h | GerHobbelt/CacheLib | 580bf6950aad89cf86dbc153f12dada79b71eaf7 | [
"Apache-2.0"
] | 578 | 2021-09-01T14:19:55.000Z | 2022-03-29T12:22:46.000Z | cachelib/navy/testing/MockJobScheduler.h | igchor/Cachelib | 7db2c643d49fd0a4ec6c492d94a400cbe0515a70 | [
"Apache-2.0"
] | 61 | 2021-09-02T18:48:06.000Z | 2022-03-31T01:56:00.000Z | cachelib/navy/testing/MockJobScheduler.h | igchor/Cachelib | 7db2c643d49fd0a4ec6c492d94a400cbe0515a70 | [
"Apache-2.0"
] | 88 | 2021-09-02T21:22:19.000Z | 2022-03-27T07:40:27.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 <atomic>
#include <cstring>
#include <deque>
#include <mutex>
#include <stdexcept>
#include <string>
#include <thread>
#include <utility>
#include "cachelib/navy/scheduler/JobScheduler.h"
namespace facebook {
namespace cachelib {
namespace navy {
// This job scheduler doesn't have any associated thread. User manually runs
// queued jobs. Used in tests.
class MockJobScheduler : public JobScheduler {
public:
MockJobScheduler() = default;
~MockJobScheduler() override;
// @param job The job enqueued on the scheduler
// @param name Name associated with the job
// @param type Job type. This indicates if this is a read, write, or
// Navy internal jobs such as reclaim or flush.
void enqueue(Job job, folly::StringPiece name, JobType type) override;
// @param job The job enqueued on the scheduler
// @param name Name associated with the job
// @param type Job type. This indicates if this is a read, write, or
// Navy internal jobs such as reclaim or flush.
// @param key Key is ignored in the mock scheduler since we do NOT
// shard the jobs internally.
void enqueueWithKey(Job job,
folly::StringPiece name,
JobType type,
uint64_t /* key */) override {
// Ignore @key because mock scheduler models one thread job scheduler
enqueue(std::move(job), name, type);
}
// This will block until the scheduler has finished all its jobs
void finish() override;
// Mock scheduler exports no stats
void getCounters(const CounterVisitor&) const override {}
// Runs the first job
bool runFirst() { return runFirstIf(""); }
// Runs first job if its name matches @expected, throws std::logic_error
// otherwise. Returns true if job is done, false if rescheduled.
// @param expected Job name. "" means match any job.
bool runFirstIf(folly::StringPiece expected);
// Returns how many jobs are currently enqueued in the scheduler
size_t getQueueSize() const {
std::lock_guard<std::mutex> lock{m_};
return q_.size();
}
// Returns how many jobs have completed so far
size_t getDoneCount() const {
std::lock_guard<std::mutex> lock{m_};
return doneCount_;
}
protected:
struct JobName {
Job job;
folly::StringPiece name{};
JobName(Job j, folly::StringPiece n) : job{std::move(j)}, name{n} {}
bool nameIs(folly::StringPiece expected) const {
return expected.size() == 0 || expected == name;
}
};
[[noreturn]] static void throwLogicError(const std::string& what);
bool runFirstIfLocked(folly::StringPiece expected,
std::unique_lock<std::mutex>& lock);
std::deque<JobName> q_;
size_t doneCount_{};
std::atomic<bool> processing_{false};
mutable std::mutex m_;
};
// This job scheduler runs everything on one thread. Used in tests.
class MockSingleThreadJobScheduler : public MockJobScheduler {
public:
MockSingleThreadJobScheduler()
: t_{[this] {
while (!stopped_) {
process();
}
}} {}
~MockSingleThreadJobScheduler() override {
stopped_ = true;
t_.join();
}
private:
void process();
std::atomic<bool> stopped_{false};
std::thread t_;
};
} // namespace navy
} // namespace cachelib
} // namespace facebook
| 30.151515 | 76 | 0.675628 |
ec99648f724197d376b447f93210fd4cba8e07e3 | 2,162 | h | C | src/main/include/RobotContainer.h | Robro1878/Robot2022 | 76a7d159455c115475c921205fdc0efe91664e35 | [
"BSD-3-Clause"
] | null | null | null | src/main/include/RobotContainer.h | Robro1878/Robot2022 | 76a7d159455c115475c921205fdc0efe91664e35 | [
"BSD-3-Clause"
] | 1 | 2022-03-21T13:23:00.000Z | 2022-03-21T13:23:00.000Z | src/main/include/RobotContainer.h | Robro1878/Robot2022 | 76a7d159455c115475c921205fdc0efe91664e35 | [
"BSD-3-Clause"
] | 4 | 2022-01-20T01:41:35.000Z | 2022-02-05T16:28:53.000Z | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#pragma once
#include <frc2/command/Command.h>
#include <frc/XboxController.h>
#include "OI.h"
#include "Constants.h"
#include "commands/TeleOpDrive.h"
#include "commands/AutoDrive.h"
#include "commands/AutoDriveDistance.h"
#include "commands/AutoDelay.h"
#include "commands/Deploy.h"
#include "commands/Stow.h"
#include "commands/Reject.h"
#include "commands/Launch.h"
#include "commands/Climb.h"
#include "commands/ExtendClimber.h"
#include "commands/Test.h"
#include "commands/ExampleCommand.h"
#include "subsystems/DriveTrain.h"
#include "subsystems/Launcher.h"
#include "subsystems/Intake.h"
#include "subsystems/Climber.h"
#include "subsystems/Vision.h"
#include "subsystems/LEDs.h"
/**
* This class is where the bulk of the robot should be declared. Since
* Command-based is a "declarative" paradigm, very little robot logic should
* actually be handled in the {@link Robot} periodic methods (other than the
* scheduler calls). Instead, the structure of the robot (including subsystems,
* commands, and button mappings) should be declared here.
*/
class RobotContainer {
public:
RobotContainer();
void ConfigureButtonBindings();
void RobotInit();
void DisabledInit();
void DisabledPeriodic();
void TeleopInit();
void AutonomousInit();
frc::ShuffleboardTab* m_sbt_Robot;
nt::NetworkTableEntry m_nte_CodeVersion;
frc2::Command* GetAutonomousCommand();
frc2::Command* GetDisabledCommand();
// The driver's game controller
frc::XboxController driver_control{ConXBOXControl::DRIVER_CONTROLLER_PORT};
// The codriver's game controller
frc::XboxController codriver_control{ConXBOXControl::CODRIVER_CONTROLLER_PORT};
private:
// The robot's subsystems and commands are defined here...
// Subsystems
DriveTrain m_driveTrain;
Launcher m_launcher;
Intake m_intake;
Climber m_climber;
Vision m_vision;
LEDs m_leds;
ExampleSubsystem m_testing;
// Commands...
AutoDrive *m_autoDrive = nullptr;
};
| 28.826667 | 81 | 0.758094 |
ec9ac4329c56a8d843230b2a0d4950b9566777aa | 2,204 | c | C | main.c | kaveenhyacinth/circumference-and-area-finder | 2888d3e020eb51c625db1e172a26e492658b94b4 | [
"MIT"
] | 1 | 2018-11-25T10:48:58.000Z | 2018-11-25T10:48:58.000Z | main.c | kaveenhyacinth/circumference-and-area-finder | 2888d3e020eb51c625db1e172a26e492658b94b4 | [
"MIT"
] | 1 | 2018-11-25T08:07:23.000Z | 2018-11-25T10:48:19.000Z | main.c | kaveenhyacinth/circumference-and-area-finder | 2888d3e020eb51c625db1e172a26e492658b94b4 | [
"MIT"
] | 2 | 2019-10-06T15:23:22.000Z | 2019-10-11T00:09:30.000Z | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
double circumference(double rad);
double area(double rad);
//global var to use with other functions as well.
const double pi=3.14159;
//main function
int main()
{
//program to calculate circumference and area
int i, k = 1;
double radius;
char choice;
//for continueous dialouge
while (k > 0)
{
//offer a selection to continue or exit (boolean)
printf("\nPress [1] to continue or press [0] to exit\n");
scanf("%d", &i);
//if i is 1 then continue
if (i == 1)
{
// read the radius
printf("\nEnter the radius of the circle: ");
scanf("%lf",&radius);
//offer a selection to find circumference,area or both
printf("\n\nDo you want to find the Circumference or Area of the circle?\n");
printf("\nCircumference press [C] \nArea press [A] \nBoth [B]\n\n");
scanf("%s", &choice);
if (choice == 'C' || choice == 'c')
{
printf("\nThe circumference : %.2f\n", circumference(radius));
}
else if(choice == 'A' || choice == 'a')
{
printf("\nThe area : %.2f\n", area(radius));
}
else if(choice == 'B' || choice == 'b')
{
printf("\nThe circumference : %.2f\nThe area : %.2f\n", circumference(radius), area(radius));
}
else
{
printf("\nOOPS! Re-check your selection\n");
continue; //back to the top
}
}
//if i is 0 then exit
else if (i == 0)
{
exit(0);
break;
}
//if i is else then back to the top
else
{
printf("\nOOPS! Re-check your selection\n");
continue; //back to the top
}
k++;
}
return 0;
}
//function to calculate the circumstance
double circumference(double rad)
{
double circ;
circ = 2*pi*rad;
return circ;
}
//function to calculate the are
double area(double rad)
{
double area;
area = pi * pow(rad, 2);
return area;
}
| 21.192308 | 109 | 0.506806 |
ec9b74dbd2a7b2868fdecb674513e971488316a9 | 2,794 | h | C | src/ios/SDVersion/SDiOSVersion/SDiOSVersion.h | DrMoriarty/cordova-plugin-aviasales | bca770548dc384259c9cfdc0254da52b388fdb83 | [
"MIT"
] | 1 | 2015-08-26T19:03:20.000Z | 2015-08-26T19:03:20.000Z | Demo/Pods/SDVersion/SDVersion/SDiOSVersion/SDiOSVersion.h | nicoyuste/BlurView | 4394cc48dcd008c34902e840e1ef08009ed3cf86 | [
"MIT"
] | null | null | null | Demo/Pods/SDVersion/SDVersion/SDiOSVersion/SDiOSVersion.h | nicoyuste/BlurView | 4394cc48dcd008c34902e840e1ef08009ed3cf86 | [
"MIT"
] | null | null | null | //
// SDiOSVersion.h
// SDVersion
//
// Copyright (c) 2015 Sebastian Dobrincu. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <UIKit/UIKit.h>
#import <sys/utsname.h>
#define stringFromDeviceVersion(v) [@{@(3):@"iPhone 4", @(4):@"iPhone 4S", @(5):@"iPhone 5", @(6):@"iPhone 5C", @(7):@"iPhone 5S", @(8):@"iPhone 6", @(9): @"iPhone 6 Plus", @(10):@"iPhone 6S", @(11): @"iPhone 6S Plus", @(12):@"iPad 1", @(13):@"iPad 2", @(14):@"iPad Mini", @(15):@"iPad 3", @(16):@"iPad 4", @(17):@"iPad Air", @(18):@"iPad Mini 2", @(19):@"iPad Air 2", @(20):@"iPad Mini 3", @(21):@"iPad Mini 4", @(22):@"iPad Pro", @(23):@"iPod Touch 1st Gen", @(24):@"iPod Touch 2nd Gen", @(25):@"iPod Touch 3rd Gen", @(26):@"iPod Touch 4th Gen", @(27):@"iPod Touch 5th Gen", @(28):@"iPod Touch 6th Gen", @(0):@"Simulator"} objectForKey:[NSNumber numberWithInteger:v]]
#define stringFromDeviceSize(v) [@{@(0):@"Unknown Size", @(1):@"3.5 inch", @(2):@"4 inch", @(3):@"4.7 inch", @(4):@"5.5 inch"} objectForKey:[NSNumber numberWithInteger:v]]
@interface SDiOSVersion : NSObject
#define iOSVersionEqualTo(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
#define iOSVersionGreaterThan(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
#define iOSVersionGreaterThanOrEqualTo(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define iOSVersionLessThan(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
#define iOSVersionLessThanOrEqualTo(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)
typedef NS_ENUM(NSInteger, DeviceVersion){
iPhone4 = 3,
iPhone4S = 4,
iPhone5 = 5,
iPhone5C = 6,
iPhone5S = 7,
iPhone6 = 8,
iPhone6Plus = 9,
iPhone6S = 10,
iPhone6SPlus = 11,
iPad1 = 12,
iPad2 = 13,
iPadMini = 14,
iPad3 = 15,
iPad4 = 16,
iPadAir = 17,
iPadMini2 = 18,
iPadAir2 = 19,
iPadMini3 = 20,
iPadMini4 = 21,
iPadPro = 22,
iPodTouch1Gen = 23,
iPodTouch2Gen = 24,
iPodTouch3Gen = 25,
iPodTouch4Gen = 26,
iPodTouch5Gen = 27,
iPodTouch6Gen = 28,
Simulator = 0
};
typedef NS_ENUM(NSInteger, DeviceSize){
UnknownSize = 0,
Screen3Dot5inch = 1,
Screen4inch = 2,
Screen4Dot7inch = 3,
Screen5Dot5inch = 4
};
+(DeviceVersion)deviceVersion;
+(DeviceSize)deviceSize;
+(NSString*)deviceName;
@end | 40.492754 | 669 | 0.612026 |
ec9b99c320b2be5911062eae93f651c59efbe078 | 1,017 | h | C | Core/Code/DataManagement/mitkNumericTypes.h | danielknorr/MITK | b1b9780b2a6671d8118313c5ef71e9aa128362be | [
"BSD-3-Clause"
] | 5 | 2015-05-27T06:57:53.000Z | 2020-03-12T21:08:23.000Z | Core/Code/DataManagement/mitkNumericTypes.h | danielknorr/MITK | b1b9780b2a6671d8118313c5ef71e9aa128362be | [
"BSD-3-Clause"
] | 141 | 2015-03-03T06:52:01.000Z | 2020-12-10T07:28:14.000Z | Core/Code/DataManagement/mitkNumericTypes.h | danielknorr/MITK | b1b9780b2a6671d8118313c5ef71e9aa128362be | [
"BSD-3-Clause"
] | 4 | 2015-02-19T06:48:13.000Z | 2020-06-19T16:20:25.000Z | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.
See LICENSE.txt or http://www.mitk.org for details.
===================================================================*/
#ifndef MITKNUMERICTYPES_H_
#define MITKNUMERICTYPES_H_
#include "mitkNumericConstants.h"
#include "mitkQuaternion.h"
#include "mitkAffineTransform3D.h"
#include "mitkPoint.h"
#include "mitkVector.h"
#include "mitkMatrix.h"
#include "mitkEqual.h"
// this include hold the old deprecated ways to convert from itk 2 vtk and the likes.
// calls to these functions shall be removed in future bugsquashings so that this include can be removed.
#include "mitkVectorDeprecated.h"
#endif /* MITKNUMERICTYPES_H_ */
| 24.804878 | 105 | 0.681416 |
ec9c24bc6a1718d511e73ad91b4f68bc10586998 | 544 | h | C | RecComp/Lab2/Zynq_Book/hls/tut3C/matrix_mult.h | MarkBlanco/FPGA_Sandbox | 4a9502ac1f84018d1bebb8b8dc4f272fd9da0d3b | [
"MIT"
] | 3 | 2021-01-25T08:01:19.000Z | 2021-02-12T19:49:30.000Z | RecComp/Lab2/Zynq_Book/hls/tut3C/matrix_mult.h | MarkBlanco/FPGA_Sandbox | 4a9502ac1f84018d1bebb8b8dc4f272fd9da0d3b | [
"MIT"
] | null | null | null | RecComp/Lab2/Zynq_Book/hls/tut3C/matrix_mult.h | MarkBlanco/FPGA_Sandbox | 4a9502ac1f84018d1bebb8b8dc4f272fd9da0d3b | [
"MIT"
] | null | null | null | #ifndef __MATRIXMUL_H__
#define __MATRIXMUL_H__
#include <cmath>
using namespace std;
// Compare TB vs HW C-model and/or RTL
#define HW_COSIM
#define IN_A_ROWS 5
#define IN_A_COLS 5
#define IN_B_ROWS 5
#define IN_B_COLS 5
typedef char mat_a;
typedef char mat_b;
typedef short mat_prod;
// Prototype of top level function for C-synthesis
void matrix_mult(
mat_a a[IN_A_ROWS][IN_A_COLS],
mat_b b[IN_B_ROWS][IN_B_COLS],
mat_prod prod[IN_A_ROWS][IN_B_COLS]);
#endif // __MATRIXMUL_H__ not defined
| 20.148148 | 51 | 0.71875 |
ec9d2bf073e1f0c1717fa560f48383d03899fadf | 7,709 | h | C | cpp/common/maps/Ruler2DFast.h | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 26 | 2016-12-04T04:45:12.000Z | 2022-03-24T09:39:28.000Z | cpp/common/maps/Ruler2DFast.h | Aki78/FlightAI | 9c5480f2392c9c89b9fee4902db0c4cde5323a6c | [
"MIT"
] | null | null | null | cpp/common/maps/Ruler2DFast.h | Aki78/FlightAI | 9c5480f2392c9c89b9fee4902db0c4cde5323a6c | [
"MIT"
] | 2 | 2019-02-09T12:31:06.000Z | 2019-04-28T02:24:50.000Z |
#ifndef Ruler2DFast_h
#define Ruler2DFast_h
#include "Vec2.h"
const static int Ruler2D_nEdges = 4;
const static int Ruler2D_nVerts = 4;
// ===== class CubicRuler
// TODO:
// * insertion of LineSegment from GridMap2D
// * rayMarching from CubicRuler and/or SimplexRuler
//
class Ruler2DFast { public:
// --- variables
Vec2d pos0 = (Vec2d){0.0,0.0};
Vec2d step = (Vec2d){1.0,1.0};
Vec2d invStep = (Vec2d){1.0,1.0};
Vec2i n = (Vec2i){0,0};
int ntot = 0;
// --- inline functions
inline void setN(Vec2i n_) { n=n_; ntot=n.x*n.y; }
inline Vec2i i2ip(int i ) const { return {i%n.x,i/n.x}; } // https://stackoverflow.com/questions/7070346/c-best-way-to-get-integer-division-and-remainder
inline int ip2i(Vec2i ip) const { return (n.x*ip.y+ip.x); }
inline int x2i( double x ) const { return (int)( invStep.x*(x - pos0.x ) ); }
inline int y2i( double y ) const { return (int)( invStep.y*(y - pos0.y ) ); }
inline double i2x( double ix ) const { return (step.x*ix) + pos0.x; }
inline double i2y( double iy ) const { return (step.y*iy) + pos0.y; }
//inline int dx ( double ix, double x ) const { return (x-pos0.x) - (ix*step.x); }
//inline int dxi( double ix, double x ) const { return invStep.x*(x-pos0.x) - ix; }
inline int x2id( double x, double& dix ) const { double x_ = invStep.x*(x-pos0.x); int ix = (int)x_; dix = x_ - ix; return ix; }
inline int y2id( double y, double& diy ) const { double y_ = invStep.y*(y-pos0.y); int iy = (int)y_; diy = y_ - iy; return iy; }
inline int x2idx( double x, double& dx ) const { double x_ = invStep.x*(x-pos0.x); int ix = (int)x_; dx = step.x*(x - ix); return ix; }
inline int y2idy( double y, double& dy ) const { double y_ = invStep.y*(y-pos0.y); int iy = (int)y_; dy = step.y*(y - iy); return iy; }
inline void pos2index( const Vec2d& pos, Vec2d& dipos, Vec2i& ipos ) const {
ipos.x = x2id( pos.x, dipos.x );
ipos.y = y2id( pos.y, dipos.y );
}
inline void index2pos( const Vec2i& ipos, const Vec2d& dipos, Vec2d& pos ) const {
pos.x = i2x( ipos.x + dipos.x );
pos.y = i2y( ipos.y + dipos.y );
}
inline void setup( const Vec2d& pos0_, const Vec2d& step_ ){
pos0 .set( pos0_ );
step .set( step_ );
invStep.set_inv( step );
}
int getOverlapingTiles( Vec2d pos, double r, int * results ){
Vec2d dpos;
Vec2i ipos;
pos2index( pos, dpos, ipos );
dpos.mul( step );
results[0] = ip2i(ipos); int nret=1;
int dix=0,diy=0;
double dr2 = 0;
double mr = 1-r;
if ( dpos.x < r ){ results[nret]=ip2i( {ipos.x-1 , ipos.y }); nret++; dix=-1; dr2 += sq( dpos.x); }
else if( dpos.x > mr ){ results[nret]=ip2i( {ipos.x+1 , ipos.y }); nret++; dix=+1; dr2 += sq(1-dpos.x); }
if ( dpos.y < r ){ results[nret]=ip2i( {ipos.x , ipos.y-1 }); nret++; diy=-1; dr2 += sq( dpos.y); }
else if( dpos.y > mr ){ results[nret]=ip2i( {ipos.x , ipos.y+1 }); nret++; diy=+1; dr2 += sq(1-dpos.y); }
if ( dr2 < (r*r) ){ results[nret]=ip2i( {ipos.x+dix, ipos.y+diy}); }
//if( (dix!=0)&&(diy!=0) ){ insert( o, ipos.x+dix, ipos.y+diy ); }
//printf( " %1.3f %1.3f (%1.3f,%1.3f) (%i,%i) %1.3f \n", r, mr, dpos.x,dpos.y, dix, diy, dr2 );
return nret;
}
inline int insertSegment( int * results, Vec2d* a, Vec2d* b ){
int n_inserts = 0;
//Vec2d* a = l->a;
//Vec2d* b = l->b;
//if( b->x < a->x ) { Point2D* tmp = a; a = b; b = tmp; }
double ax = a->x;
double ay = a->y;
double bx = b->x;
double by = b->y;
double dx = fabs( bx - ax );
double dy = fabs( by - ay );
int dix = ( ax < bx ) ? 1 : -1;
int diy = ( ay < by ) ? 1 : -1;
int ix = x2i( ax );
int iy = y2i( ay );
int ixb = x2i( bx );
int iyb = y2i( by );
double x=0, y=0;
int i=0;
//printf( " === dx dy %f %f \n", dx, dy );
//glColor3f( 0.2f*randFuncf( l->id ), 0.2f*randFuncf( l->id+ 16874 ), 0.2f*randFuncf( l->id+ 98774 ) );
//glRect2D( ix*step, iy*step, (ix+1)*step, (iy+1)*step );
//glRect2D( ixb*step, iyb*step, (ixb+1)*step, (iyb+1)*step );
//insert( l, ix, iy );
//insert( l, ixb, iyb );
results[n_inserts]=ip2i({ix, iy }); n_inserts++;
results[n_inserts]=ip2i({ixb,iyb}); n_inserts++;
while ( ( ix != ixb ) && ( iy != iyb ) ) {
if ( x < y ) {
x += dy;
ix += dix;
} else {
y += dx;
iy += diy;
}
//insert( l, ix, iy );
results[n_inserts]=ip2i({ix, iy }); n_inserts++;
//int index = getIndex( ix, iy );
//tiles[ index ].push_back( p );
//glRect2D( ix*step, iy*step, (ix+1)*step, (iy+1)*step );
//i++;
//if(i>30) break;
}
return n_inserts;
}
int insertTriangle( int * results, Vec2d* a, Vec2d* b, Vec2d* c ){
int n_inserts = 0;
//Vec2d* a = t->a;
//Vec2d* b = t->b;
//Vec2d* c = t->c;
if( b->y < a->y ) { Vec2d* tmp = a; a = b; b = tmp; }
if( c->y < a->y ) { Vec2d* tmp = a; a = c; c = tmp; }
if( c->y < b->y ) { Vec2d* tmp = b; b = c; c = tmp; }
double xa = a->x;
double ya = a->y;
double xb = b->x;
double yb = b->y;
double xc = c->x;
double yc = c->y;
//glColor3f( 0.2f*randFuncf( t->id ), 0.2f*randFuncf( t->id+ 16874 ), 0.2f*randFuncf( t->id+ 98774 ) );
int ixa = x2i( xa );
int iya = y2i( ya );
int ixb = x2i( xb );
int iyb = y2i( yb );
int ixc = x2i( xc );
int iyc = y2i( yc );
// up pass
double dab = ( xb - xa )/( yb - ya ); double cab = xa - dab * ya;
double dac = ( xc - xa )/( yc - ya ); double cac = xa - dac * ya;
double y = iya * step.y;
int oixab = ixa, oixac = ixa, iy = iya;
while ( iy <= iyb ) {
//while ( true ) {
y += step.y;
double xab = dab * y + cab; int ixab = x2i( xab ); if( iy == iyb ) ixab = ixb;
double xac = dac * y + cac; int ixac = x2i( xac );
int ix1,ix2;
if( dab < dac ){
ix1 = ( ixab < oixab ) ? ixab : oixab;
ix2 = ( ixac > oixac ) ? ixac : oixac;
}else{
ix1 = ( ixac < oixac ) ? ixac : oixac;
ix2 = ( ixab > oixab ) ? ixab : oixab;
}
for ( int ix = ix1; ix <= ix2; ix++ ){
//insert( t, ix, iy );
//results[(n_inserts<<1) ];
//results[(n_inserts<<1)+1];
results[n_inserts]=ip2i({ix,iy});
n_inserts++;
//plot( ix, iy );
}
oixab = ixab; oixac = ixac;
iy++;
}
// down pass
double dca = ( xa - xc )/( ya - yc ); double cca = xa - dca * ya;
double dcb = ( xb - xc )/( yb - yc ); double ccb = xb - dcb * yb;
y = iyc * step.y;
int oixca = ixc, oixcb = ixc; iy = iyc;
while ( iy > iyb ) {
//while ( true ) {
double xca = dca * y + cca; int ixca = x2i( xca );
double xcb = dcb * y + ccb; int ixcb = x2i( xcb );
int ix1,ix2;
if( dca > dcb ){
ix1 = ( ixca < oixca ) ? ixca : oixca;
ix2 = ( ixcb > oixcb ) ? ixcb : oixcb;
}else{
ix1 = ( ixcb < oixcb ) ? ixcb : oixcb;
ix2 = ( ixca > oixca ) ? ixca : oixca;
}
//printf( " ix1 ix2 %i %i \n ", ix1, ix2 );
for ( int ix = ix1; ix <= ix2; ix++ ){
//insert( t, ix, iy );
results[n_inserts]=ip2i({ix,iy});
n_inserts++;
//plot( ix, iy );
}
oixca = ixca; oixcb = ixcb;
y -= step.y;
iy--;
}
return n_inserts;
}
};
#endif
| 35.362385 | 161 | 0.490725 |
ec9db2c11c37c996621c058777707a21628a96ae | 910 | h | C | FlameCrowdfunding/FlameCrowdfunding/Classes/UI/Public/CellLayout/FCDetailCommentsLayout.h | JimmyOu/CrowFunding | eab7c7dfe02e93c709258d943b1a2bb53f6e23cf | [
"Apache-2.0"
] | null | null | null | FlameCrowdfunding/FlameCrowdfunding/Classes/UI/Public/CellLayout/FCDetailCommentsLayout.h | JimmyOu/CrowFunding | eab7c7dfe02e93c709258d943b1a2bb53f6e23cf | [
"Apache-2.0"
] | null | null | null | FlameCrowdfunding/FlameCrowdfunding/Classes/UI/Public/CellLayout/FCDetailCommentsLayout.h | JimmyOu/CrowFunding | eab7c7dfe02e93c709258d943b1a2bb53f6e23cf | [
"Apache-2.0"
] | null | null | null | //
// FCDetailCommentsLayout.h
// FlameCrowdfunding
//
// Created by JimmyOu on 16/6/7.
// Copyright © 2016年 JimmyOu. All rights reserved.
//
#import <Foundation/Foundation.h>
#define kOutSideMagin 15
#define kInsdeSideMagin 10
#define kIconW 20
@class FCChildCommentLayout;
@class FCDetailComment;
@interface FCDetailCommentsLayout : NSObject
@property (nonatomic, assign) CGFloat cellHeight;
@property (nonatomic, strong) FCDetailComment *detailComment;
// detail
@property (nonatomic, assign) CGRect iconframe;
@property (nonatomic, assign) CGRect nameFrame;
@property (nonatomic, assign) CGRect responseFrame;
@property (nonatomic, assign) CGRect reportFrame;
@property (nonatomic, assign) CGRect timeFrame;
@property (nonatomic, assign) CGRect contentFrame;
@property (nonatomic, assign) CGRect lineFrame;
//child
@property (nonatomic, strong) NSArray <FCChildCommentLayout *>*childs;
@end
| 23.333333 | 70 | 0.774725 |
ec9ebb6aee4563eb4b2eeca1a9123e85e57d770a | 106 | c | C | C/Function/Array.c | piovezan/SOpt | a5ec90796b7bdf98f0675457fc4bb99c8695bc40 | [
"MIT"
] | 148 | 2017-08-03T01:49:27.000Z | 2022-03-26T10:39:30.000Z | C/Function/Array.c | piovezan/SOpt | a5ec90796b7bdf98f0675457fc4bb99c8695bc40 | [
"MIT"
] | 3 | 2017-11-23T19:52:05.000Z | 2020-04-01T00:44:40.000Z | C/Function/Array.c | piovezan/SOpt | a5ec90796b7bdf98f0675457fc4bb99c8695bc40 | [
"MIT"
] | 59 | 2017-08-03T01:49:19.000Z | 2022-03-31T23:24:38.000Z | void (*f[ 3 ])( int ) = { function1, function2, function3 };
//https://pt.stackoverflow.com/q/438508/101
| 26.5 | 60 | 0.650943 |
ec9f0fc5c12e2ed701b119c7395303da6f74d103 | 5,268 | h | C | src/glibc-2.23/sysdeps/powerpc/novmxsetjmp.h | wwkenwong/piecewise | 2cecb3f67fd2e1cd5b67102d49f9e16cf9a2e52f | [
"BSD-3-Clause-Clear"
] | 12 | 2018-09-18T19:51:27.000Z | 2022-01-18T15:31:41.000Z | src/glibc-2.23/sysdeps/powerpc/novmxsetjmp.h | wwkenwong/piecewise | 2cecb3f67fd2e1cd5b67102d49f9e16cf9a2e52f | [
"BSD-3-Clause-Clear"
] | null | null | null | src/glibc-2.23/sysdeps/powerpc/novmxsetjmp.h | wwkenwong/piecewise | 2cecb3f67fd2e1cd5b67102d49f9e16cf9a2e52f | [
"BSD-3-Clause-Clear"
] | 3 | 2019-06-12T19:38:54.000Z | 2020-03-05T19:17:23.000Z | /* Copyright (C) 1991-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C 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.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
/* Copied from setjmp/setjmp.h, powerpc/bits/setjmp.h and modified
appropriately to keep backward compatible with setjmp without
AltiVec/VMX support.
This file is not exported and the interfaces are private to libc. */
#ifndef __NOVMX_SETJMP_H
#define __NOVMX_SETJMP_H 1
#include <bits/wordsize.h>
/* The following definitions are needed by ASM implementations of the old
(novmx) __longjmp/__setjmp functions. */
# define JB_GPR1 0 /* Also known as the stack pointer */
# define JB_GPR2 1
# define JB_LR 2 /* The address we will return to */
# if __WORDSIZE == 64
# define JB_GPRS 3 /* GPRs 14 through 31 are saved, 18*2 words total. */
# define JB_CR 21 /* Condition code registers. */
# define JB_FPRS 22 /* FPRs 14 through 31 are saved, 18*2 words total. */
# define JB_SIZE (40 * 8)
# else
# define JB_GPRS 3 /* GPRs 14 through 31 are saved, 18 in total. */
# define JB_CR 21 /* Condition code registers. */
# define JB_FPRS 22 /* FPRs 14 through 31 are saved, 18*2 words total. */
# define JB_SIZE (58 * 4)
# endif
#ifndef _ASM
/* The following definitions are needed by the novmx* implementations of
setjmp/longjmp/sigsetjmp/etc that wrapper __setjmp/__longjmp. */
# if __WORDSIZE == 64
typedef long int __jmp_buf[40];
# else
typedef long int __jmp_buf[58];
# endif
# include <bits/sigset.h> /* Get `__sigset_t'. */
/* Calling environment, plus possibly a saved signal mask. */
typedef struct __novmx__jmp_buf_tag
{
/* NOTE: The machine-dependent definitions of `__sigsetjmp'
assume that a `jmp_buf' begins with a `__jmp_buf' and that
`__mask_was_saved' follows it. Do not move these members
or add others before it. */
__jmp_buf __jmpbuf; /* Calling environment. */
int __mask_was_saved; /* Saved the signal mask? */
__sigset_t __saved_mask; /* Saved signal mask. */
} __novmx__jmp_buf[1];
/* Store the calling environment in ENV, also saving the signal mask.
Return 0. */
extern int __novmxsetjmp (__novmx__jmp_buf __env);
/* Store the calling environment in ENV, also saving the
signal mask if SAVEMASK is nonzero. Return 0.
This is the internal name for `sigsetjmp'. */
extern int __novmx__sigsetjmp (struct __novmx__jmp_buf_tag __env[1],
int __savemask);
/* Store the calling environment in ENV, not saving the signal mask.
Return 0. */
extern int __novmx_setjmp (struct __novmx__jmp_buf_tag __env[1]);
/* Jump to the environment saved in ENV, making the
`setjmp' call there return VAL, or 1 if VAL is 0. */
extern void __novmxlongjmp (struct __novmx__jmp_buf_tag __env[1], int __val)
__attribute__ ((__noreturn__));
/* Same. Usually `_longjmp' is used with `_setjmp', which does not save
the signal mask. But it is how ENV was saved that determines whether
`longjmp' restores the mask; `_longjmp' is just an alias. */
extern void __novmx_longjmp (struct __novmx__jmp_buf_tag __env[1], int __val)
__attribute__ ((__noreturn__));
/* Use the same type for `jmp_buf' and `sigjmp_buf'.
The `__mask_was_saved' flag determines whether
or not `longjmp' will restore the signal mask. */
typedef struct __novmx__jmp_buf_tag __novmx__sigjmp_buf[1];
/* Jump to the environment saved in ENV, making the
sigsetjmp call there return VAL, or 1 if VAL is 0.
Restore the signal mask if that sigsetjmp call saved it.
This is just an alias `longjmp'. */
extern void __novmxsiglongjmp (__novmx__sigjmp_buf __env, int __val)
__attribute__ ((__noreturn__));
/* Internal machine-dependent function to restore context sans signal mask. */
extern void __novmx__longjmp (__jmp_buf __env, int __val)
__attribute__ ((__noreturn__));
/* Internal function to possibly save the current mask of blocked signals
in ENV, and always set the flag saying whether or not it was saved.
This is used by the machine-dependent definition of `__sigsetjmp'.
Always returns zero, for convenience. */
extern int __novmx__sigjmp_save (__novmx__jmp_buf __env, int __savemask);
extern void _longjmp_unwind (__novmx__jmp_buf env, int val);
extern void __novmx__libc_siglongjmp (__novmx__sigjmp_buf env, int val)
__attribute__ ((noreturn));
extern void __novmx__libc_longjmp (__novmx__sigjmp_buf env, int val)
__attribute__ ((noreturn));
libc_hidden_proto (__novmx__libc_longjmp)
libc_hidden_proto (__novmx_setjmp)
libc_hidden_proto (__novmx__sigsetjmp)
#endif /* !_ASM */
#endif
| 39.609023 | 79 | 0.730828 |
ec9f50049b8e70323941a588859c83d77c728180 | 16,283 | c | C | src/light_pcapng.c | hyh19962008/LightPcapNg | 0bdc769d5933bba88f45462c0921c78b82e2dc9f | [
"MIT"
] | 19 | 2016-10-01T15:59:50.000Z | 2022-03-18T05:33:46.000Z | src/light_pcapng.c | hyh19962008/LightPcapNg | 0bdc769d5933bba88f45462c0921c78b82e2dc9f | [
"MIT"
] | 4 | 2016-11-06T10:21:50.000Z | 2018-11-03T23:12:22.000Z | src/light_pcapng.c | hyh19962008/LightPcapNg | 0bdc769d5933bba88f45462c0921c78b82e2dc9f | [
"MIT"
] | 15 | 2016-10-01T15:59:56.000Z | 2022-03-17T07:37:45.000Z | // light_pcapng.c
// Created on: Jul 23, 2016
// Copyright (c) 2016 Radu Velea
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include "light_pcapng.h"
#include "light_debug.h"
#include "light_internal.h"
#include "light_util.h"
#include <stdlib.h>
#include <string.h>
// Documentation from: https://github.com/pcapng/pcapng
static struct _light_option *__parse_options(uint32_t **memory, const int32_t max_len)
{
if (max_len <= 0) {
return NULL;
}
else {
struct _light_option *opt = calloc(1, sizeof(struct _light_option));
uint16_t actual_length;
uint16_t allignment = sizeof(uint32_t);
uint16_t *local_memory = (uint16_t*)*memory;
uint16_t remaining_size;
opt->custom_option_code = *local_memory++;
opt->option_length = *local_memory++;
actual_length = (opt->option_length % allignment) == 0 ?
opt->option_length :
(opt->option_length / allignment + 1) * allignment;
if (actual_length > 0) {
opt->data = calloc(1, actual_length);
memcpy(opt->data, local_memory, actual_length);
local_memory += (sizeof(**memory) / sizeof(*local_memory)) * (actual_length / allignment);
}
*memory = (uint32_t*)local_memory;
remaining_size = max_len - actual_length - 2 * sizeof(*local_memory);
if (opt->custom_option_code == 0) {
DCHECK_ASSERT(opt->option_length, 0, light_stop);
DCHECK_ASSERT(remaining_size, 0, light_stop);
if (remaining_size) {
// XXX: Treat the remaining data as garbage and discard it form the trace.
*memory += remaining_size / sizeof(uint32_t);
}
}
else {
opt->next_option = __parse_options(memory, remaining_size);
}
return opt;
}
}
// Parse memory and allocate _light_pcapng array.
static size_t __parse_mem_copy(struct _light_pcapng **iter, const uint32_t *memory, const size_t size)
{
struct _light_pcapng *current = NULL;
size_t bytes_read = 0;
size_t remaining = size;
size_t block_count = 0;
*iter = NULL;
while (remaining > 12) {
const uint32_t *local_data = (const uint32_t *)(memory);
if (current == NULL) {
current = calloc(1, sizeof(struct _light_pcapng));
DCHECK_NULLP(current, return block_count);
if (*iter == NULL) {
*iter = current;
}
}
else {
current->next_block = calloc(1, sizeof(struct _light_pcapng));
DCHECK_NULLP(current->next_block, return block_count);
current = current->next_block;
}
current->block_type = *local_data++;
current->block_total_lenght = *local_data++;
DCHECK_INT(((current->block_total_lenght % 4) == 0), 0, light_stop);
switch (current->block_type)
{
case LIGHT_SECTION_HEADER_BLOCK:
{
DPRINT_HERE(LIGHT_SECTION_HEADER_BLOCK);
struct _light_section_header *shb = calloc(1, sizeof(struct _light_section_header));
struct _light_option *opt = NULL;
uint32_t version;
int32_t local_offset;
shb->byteorder_magic = *local_data++;
// TODO check byte order.
version = *local_data++;
shb->major_version = version & 0xFFFF;
shb->minor_version = (version >> 16) & 0xFFFF;
shb->section_length = *((uint64_t*)local_data);
local_data += 2;
current->block_body = (uint32_t*)shb;
local_offset = (size_t)local_data - (size_t)memory;
opt = __parse_options((uint32_t **)&local_data, current->block_total_lenght - local_offset - sizeof(current->block_total_lenght));
current->options = opt;
}
break;
case LIGHT_INTERFACE_BLOCK:
{
DPRINT_HERE(LIGHT_INTERFACE_BLOCK);
struct _light_interface_description_block *idb = calloc(1, sizeof(struct _light_interface_description_block));
struct _light_option *opt = NULL;
uint32_t link_reserved = *local_data++;
int32_t local_offset;
idb->link_type = link_reserved & 0xFFFF;
idb->reserved = (link_reserved >> 16) & 0xFFFF;
idb->snapshot_length = *local_data++;
current->block_body = (uint32_t*)idb;
local_offset = (size_t)local_data - (size_t)memory;
opt = __parse_options((uint32_t **)&local_data, current->block_total_lenght - local_offset - sizeof(current->block_total_lenght));
current->options = opt;
}
break;
case LIGHT_ENHANCED_PACKET_BLOCK:
{
DPRINT_HERE(LIGHT_ENHANCED_PACKET_BLOCK);
struct _light_enhanced_packet_block *epb = NULL;
struct _light_option *opt = NULL;
uint32_t interface_id = *local_data++;
uint32_t timestamp_high = *local_data++;
uint32_t timestamp_low = *local_data++;
uint32_t captured_packet_length = *local_data++;
uint32_t original_packet_length = *local_data++;
int32_t local_offset;
uint32_t actual_len = 0;
PADD32(captured_packet_length, &actual_len);
epb = calloc(1, sizeof(struct _light_enhanced_packet_block) + actual_len);
epb->interface_id = interface_id;
epb->timestamp_high = timestamp_high;
epb->timestamp_low = timestamp_low;
epb->capture_packet_length = captured_packet_length;
epb->original_capture_length = original_packet_length;
memcpy(epb->packet_data, local_data, captured_packet_length); // Maybe actual_len?
local_data += actual_len / sizeof(uint32_t);
current->block_body = (uint32_t*)epb;
local_offset = (size_t)local_data - (size_t)memory;
opt = __parse_options((uint32_t **)&local_data, current->block_total_lenght - local_offset - sizeof(current->block_total_lenght));
current->options = opt;
}
break;
case LIGHT_SIMPLE_PACKET_BLOCK:
{
DPRINT_HERE(LIGHT_SIMPLE_PACKET_BLOCK);
struct _light_simple_packet_block *spb = NULL;
uint32_t original_packet_length = *local_data++;
uint32_t actual_len = current->block_total_lenght - 2 * sizeof(current->block_total_lenght) - sizeof(current->block_type) - sizeof(original_packet_length);
spb = calloc(1, sizeof(struct _light_enhanced_packet_block) + actual_len);
spb->original_packet_length = original_packet_length;
memcpy(spb->packet_data, local_data, actual_len);
local_data += actual_len / sizeof(uint32_t);
current->block_body = (uint32_t*)spb;
current->options = NULL; // No options defined by the standard for this block type.
}
break;
case LIGHT_CUSTOM_DATA_BLOCK:
{
DPRINT_HERE(LIGHT_CUSTOM_DATA_BLOCK);
struct _light_custom_nonstandard_block *cnb = NULL;
struct _light_option *opt = NULL;
uint32_t len = *local_data++;
uint32_t reserved0 = *local_data++;
uint32_t reserved1 = *local_data++;
int32_t local_offset;
uint32_t actual_len = 0;
PADD32(len, &actual_len);
cnb = calloc(1, sizeof(struct _light_custom_nonstandard_block) + actual_len);
cnb->data_length = len;
cnb->reserved0 = reserved0;
cnb->reserved1 = reserved1;
memcpy(cnb->packet_data, local_data, len); // Maybe actual_len?
local_data += actual_len / sizeof(uint32_t);
current->block_body = (uint32_t*)cnb;
local_offset = (size_t)local_data - (size_t)memory;
opt = __parse_options((uint32_t **)&local_data, current->block_total_lenght - local_offset - sizeof(current->block_total_lenght));
current->options = opt;
}
break;
default: // Could not find registered block type. Copying data as RAW.
{
DPRINT_HERE(default);
uint32_t raw_size = current->block_total_lenght - 2 * sizeof(current->block_total_lenght) - sizeof(current->block_type);
if (raw_size > 0) {
current->block_body = calloc(raw_size, 1);
memcpy(current->block_body, local_data, raw_size);
local_data += raw_size / (sizeof(*local_data));
}
else {
current->block_body = NULL;
}
}
break;
}
// Compute offset and return new link.
// Block total length.
DCHECK_ASSERT((bytes_read = *local_data++), current->block_total_lenght, light_stop);
bytes_read = current->block_total_lenght;
remaining -= bytes_read;
memory += bytes_read / sizeof(*memory);
block_count++;
}
return block_count;
}
light_pcapng light_read_from_memory(const uint32_t *memory, size_t size)
{
struct _light_pcapng *head = NULL;
__parse_mem_copy(&head, memory, size);
return head;
}
static void __free_option(struct _light_option *option)
{
if (option == NULL)
return;
__free_option(option->next_option);
option->next_option = NULL;
free(option->data);
free(option);
}
void light_pcapng_release(light_pcapng pcapng)
{
light_pcapng iter = pcapng;
uint32_t block_count = light_get_block_count(pcapng);
light_pcapng *block_pointers = calloc(block_count, sizeof(light_pcapng));
uint32_t i = 0;
while (iter != NULL) {
block_pointers[i] = iter;
i++;
iter = iter->next_block;
}
for (i = 0; i < block_count; ++i) {
__free_option(block_pointers[i]->options);
free(block_pointers[i]->block_body);
free(block_pointers[i]);
}
free(block_pointers);
}
static int __option_count(struct _light_option *option)
{
if (option == NULL)
return 0;
return 1 + __option_count(option->next_option);
}
char *light_pcapng_to_string(light_pcapng pcapng)
{
if (pcapng == NULL)
return NULL;
light_pcapng iter = pcapng;
uint32_t block_count = light_get_block_count(pcapng);
size_t buffer_size = 128 * block_count;
char *string = calloc(buffer_size, sizeof(char));
char *offset = string;
DCHECK_NULLP(offset, return NULL);
while (iter != NULL) {
char *next = calloc(128, 1);
sprintf(next, "---\nType = 0x%X\nLength = %u\nData Pointer = %p\nOption count = %d\n---\n",
iter->block_type, iter->block_total_lenght, (void*)iter->block_body, __option_count(iter->options));
memcpy(offset, next, strlen(next));
offset += strlen(next);
free(next);
iter = iter->next_block;
}
return string;
}
uint32_t *light_pcapng_to_memory(const light_pcapng pcapng, size_t *size)
{
if (pcapng == NULL) {
*size = 0;
return NULL;
}
light_pcapng iterator = pcapng;
size_t bytes = light_get_size(pcapng);
uint32_t *block_mem = calloc(bytes, 1);
uint32_t *block_offset = block_mem;
DCHECK_NULLP(block_offset, return NULL);
*size = 0;
while (iterator != NULL && bytes > 0) {
size_t body_length = iterator->block_total_lenght - 2 * sizeof(iterator->block_total_lenght) - sizeof(iterator->block_type);
size_t option_length;
uint32_t *option_mem = __get_option_size(iterator->options, &option_length);
body_length -= option_length;
block_offset[0] = iterator->block_type;
block_offset[1] = iterator->block_total_lenght;
memcpy(&block_offset[2], iterator->block_body, body_length);
memcpy(&block_offset[2 + body_length / 4], option_mem, option_length);
block_offset[iterator->block_total_lenght / 4 - 1] = iterator->block_total_lenght;
DCHECK_ASSERT(iterator->block_total_lenght, body_length + option_length + 3 * sizeof(uint32_t), light_stop);
block_offset += iterator->block_total_lenght / 4;
bytes -= iterator->block_total_lenght;
*size += iterator->block_total_lenght;
free(option_mem);
iterator = iterator->next_block;
}
return block_mem;
}
int light_pcapng_validate(light_pcapng p0, uint32_t *p1)
{
light_pcapng iterator0 = p0;
uint32_t *iterator1 = p1;
int block_count = 0;
while (iterator0 != NULL && iterator1 != NULL) { // XXX find a better stop condition.
if (iterator0->block_type != iterator1[0] ||
iterator0->block_total_lenght != iterator1[1]) {
fprintf(stderr, "Block type or length mismatch at block %d!\n", block_count);
fprintf(stderr, "Expected type: 0x%X == 0x%X and expected length: %u == %u\n",
iterator0->block_type, iterator1[0], iterator0->block_total_lenght, iterator1[1]);
return 0;
}
size_t size = 0;
light_pcapng next_block = iterator0->next_block;
iterator0->next_block = NULL; // This might be quite intrusive.
uint32_t *mem = light_pcapng_to_memory(iterator0, &size);
if (memcmp(mem, iterator1, size) != 0) {
iterator0->next_block = next_block;
free(mem);
fprintf(stderr, "Block contents mismatch!\n");
return 0;
}
free(mem);
iterator0->next_block = next_block;
iterator0 = iterator0->next_block;
iterator1 += iterator1[1] / sizeof(uint32_t);
block_count++;
}
return 1;
}
uint32_t light_get_block_count(const light_pcapng pcapng)
{
uint32_t count = 0;
light_pcapng iterator = pcapng;
while (iterator != NULL) {
count++;
iterator = iterator->next_block;
}
return count;
}
light_pcapng light_get_block(const light_pcapng pcapng, uint32_t index)
{
light_pcapng iterator = pcapng;
while (iterator != NULL && index != 0) {
index--;
iterator = iterator->next_block;
}
return iterator;
}
light_pcapng light_next_block(const light_pcapng pcapng)
{
return pcapng == NULL ? NULL : pcapng->next_block;
}
void light_pcapng_historgram(const light_pcapng pcapng, uint32_t (*key_master)(const light_pcapng),
light_pair **hist, size_t *size, size_t *rejected)
{
light_pcapng iterator = pcapng;
size_t dropped = 0;
size_t sz = 0;
size_t i;
*hist = NULL;
while (iterator != NULL) {
uint32_t key = key_master(iterator);
if (key != LIGHT_KEY_REJECTED) {
int found = 0;
for (i = 0; i < sz; ++i) {
if ((*hist)[i].key == key) {
found = 1;
(*hist)[i].val++;
break;
}
}
if (found == 0) {
*hist = realloc(*hist, (sz + 1) * sizeof(light_pair));
(*hist)[sz].key = key;
(*hist)[sz].val = 1;
sz++;
}
}
else {
dropped++;
}
iterator = iterator->next_block;
}
*size = sz;
if (rejected != NULL)
*rejected = dropped;
}
size_t light_get_size(const light_pcapng pcapng)
{
light_pcapng iterator = pcapng;
size_t size = 0;
while (iterator != NULL) {
size += iterator->block_total_lenght;
iterator = iterator->next_block;
}
return size;
}
int light_iterate(const light_pcapng pcapng, light_boolean (*stop_fn)(const light_pcapng, void *), void *args)
{
int iterations = 0;
light_pcapng iterator = pcapng;
while (iterator != NULL) {
if (stop_fn(iterator, args) == LIGHT_FALSE) {
break;
}
iterations++;
iterator = iterator->next_block;
}
return iterations;
}
int light_get_block_info(const light_pcapng pcapng, light_info info_flag, void *info_data, size_t *data_size)
{
if (pcapng == NULL || info_flag < 0 || info_flag > LIGHT_INFO_MAX) {
return LIGHT_INVALID_ARGUMENT;
}
switch (info_flag) {
case LIGHT_INFO_TYPE:
{
uint32_t *type = (uint32_t *)info_data;
if (type)
*type = pcapng->block_type;
if (data_size)
*data_size = sizeof(*type);
break;
}
case LIGHT_INFO_LENGTH:
{
uint32_t *length = (uint32_t *)info_data;
if (length)
*length = pcapng->block_total_lenght;
if (data_size)
*data_size = sizeof(*length);
break;
}
case LIGHT_INFO_BODY:
{
uint32_t **body = (uint32_t **)info_data;
if (body)
*body = pcapng->block_body;
if (data_size)
*data_size = sizeof(*body);
break;
}
case LIGHT_INFO_OPTIONS:
{
light_option *body = (light_option *)info_data;
if (body)
*body = pcapng->options;
if (data_size)
*data_size = sizeof(*body);
break;
}
default:
break;
}
return LIGHT_SUCCESS;
}
| 29.233393 | 159 | 0.686667 |
ec9f5ff2009626ba82ff0fe9162a7f0d5c91a8fa | 1,819 | h | C | apps/WriterServer/writerServer.h | assignonward/aosuite | 243771d237970fe1175aaabc7d8d22f691076b6b | [
"MIT"
] | null | null | null | apps/WriterServer/writerServer.h | assignonward/aosuite | 243771d237970fe1175aaabc7d8d22f691076b6b | [
"MIT"
] | null | null | null | apps/WriterServer/writerServer.h | assignonward/aosuite | 243771d237970fe1175aaabc7d8d22f691076b6b | [
"MIT"
] | 1 | 2018-08-11T20:39:07.000Z | 2018-08-11T20:39:07.000Z | /* MIT License
*
* Copyright (c) 2021 Assign Onward
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef WRITERSERVER_H
#define WRITERSERVER_H
#include <QGroupBox>
#include "ui_writerServer.h"
#include "protocolParser.h"
namespace Ui {
class WriterServer;
}
class WriterServer : public QGroupBox
{ Q_OBJECT
public:
explicit WriterServer(QWidget *parent = nullptr);
~WriterServer();
qint64 writeRecord( const QByteArray &, const QByteArray & );
BaoSerial buildResponse( qint64 );
signals:
void sendResponse( BaoSerial );
public slots:
void receiveRequest( BaoSerial );
void newProtocolSet();
public:
qint64 index;
QPointer<ProtocolActor> pa;
Ui::WriterServer *ui;
};
#endif // WRITERSERVER_H
| 32.482143 | 81 | 0.729522 |
ec9f8db8a09fd8efc124493e0de78bdbc9d5a605 | 510 | h | C | src/xrCore/resource.h | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 58 | 2016-11-20T19:14:35.000Z | 2021-12-27T21:03:35.000Z | src/xrCore/resource.h | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 59 | 2016-09-10T10:44:20.000Z | 2018-09-03T19:07:30.000Z | src/xrCore/resource.h | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 39 | 2017-02-05T13:35:37.000Z | 2022-03-14T11:00:12.000Z | //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by xrCore.rc
//
#define IDD_STOP 101
#define IDC_DESC 1001
#define IDC_FILE 1002
#define IDC_LINE 1003
#define IDC_ABORT 1004
#define IDC_STOP 1004
#define IDC_DEBUG 1005
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1005
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
| 22.173913 | 47 | 0.811765 |
eca02da0898ae0087103f6b5f0d5a9c71a189bd1 | 7,781 | h | C | WtApi/resource.h | iclosure/arinc429 | 55031fa877418113c97fa1b2e12bcd16c8a323f7 | [
"MIT"
] | 1 | 2019-03-19T00:23:33.000Z | 2019-03-19T00:23:33.000Z | WtApi/resource.h | iclosure/arinc429 | 55031fa877418113c97fa1b2e12bcd16c8a323f7 | [
"MIT"
] | null | null | null | WtApi/resource.h | iclosure/arinc429 | 55031fa877418113c97fa1b2e12bcd16c8a323f7 | [
"MIT"
] | null | null | null | //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by ArincApi.rc
//
#define ARAPI_PATCH_VER 0
#define ARAPI_BUILD_VER 0
#define ARINC_BOARD_TYPE_PCI 0
#define AR_WRAP_OFF 0
#define AR_NONE 0
#define AR_100K 0
#define AR_HIGH 0
#define ARS_SDI_00 0
#define ARU_FILTER_OFF 0
#define ARS_NODATA 0
#define AR_WORD_LABEL_OFFSET 0
#define ARAPI_MINOR_VER 1
#define ARINC_BOARD_TYPE_USB 1
#define ARU_XMIT_RATE 1
#define AR_WRAP_ON 1
#define AR_ODD 1
#define AR_50K 1
#define ARS_SDI_01 1
#define ARU_FILTER_ON 1
#define ARS_NORMAL 1
#define AR_WORD_SDI_0 0x01
#define ARAPI_MAJOR_VER 2
#define ARINC_BOARD_TYPE_UNKNOWN 2
#define ARU_RECV_RATE 2
#define AR_EVEN 2
#define ARS_SDI_10 2
#define AR_WORD_SDI_1 0x02
#define ARU_PARITY 3
#define AR_12_5K 3
#define AR_12K5 3
#define AR_LOW 3
#define ARS_SDI_11 3
#define ARU_INTERNAL_WRAP 4
#define ARS_GOTDATA 4
#define AR_ON 7
#define AR_OFF 8
#define AR_WORD_SDI_OFFSET 8
#define AR_WORD_DATA_OFFSET 10
#define ARINC_MAX_CH_NUM 16
#define AR_WORD_SSM_OFFSET 29
#define AR_WORD_PARITY_OFFSET 31
#define AR_WORD_WIDTH 32
#define AR_WORD_LABEL_MASK 0x000000FF
#define ARINC_LABEL_NUM 256
#define AR_LABEL_NUM 256
#define ARU_CH01_LOOPBACK 300
#define ARU_CH02_LOOPBACK 301
#define ARU_CH03_LOOPBACK 302
#define ARU_CH04_LOOPBACK 303
#define ARU_CH05_LOOPBACK 304
#define ARU_CH06_LOOPBACK 305
#define ARU_CH07_LOOPBACK 306
#define ARU_CH08_LOOPBACK 307
#define ARU_CH09_LOOPBACK 308
#define ARU_CH10_LOOPBACK 309
#define ARU_CH11_LOOPBACK 310
#define ARU_CH12_LOOPBACK 311
#define ARU_CH13_LOOPBACK 312
#define ARU_CH14_LOOPBACK 313
#define ARU_CH15_LOOPBACK 314
#define ARU_CH16_LOOPBACK 315
#define ARU_RX_CH01_BIT_RATE 500
#define ARU_RX_CH02_BIT_RATE 501
#define ARU_RX_CH03_BIT_RATE 502
#define ARU_RX_CH04_BIT_RATE 503
#define ARU_RX_CH05_BIT_RATE 504
#define ARU_RX_CH06_BIT_RATE 505
#define ARU_RX_CH07_BIT_RATE 506
#define ARU_RX_CH08_BIT_RATE 507
#define ARU_RX_CH09_BIT_RATE 508
#define ARU_RX_CH10_BIT_RATE 509
#define ARU_RX_CH11_BIT_RATE 510
#define ARU_RX_CH12_BIT_RATE 511
#define ARU_ALL_LABELS 0x1FF
#define ARU_RX_CH13_BIT_RATE 512
#define ARU_RX_CH14_BIT_RATE 513
#define ARU_RX_CH15_BIT_RATE 514
#define ARU_RX_CH16_BIT_RATE 515
#define ARU_TX_CH01_BIT_RATE 700
#define ARU_TX_CH02_BIT_RATE 701
#define ARU_TX_CH03_BIT_RATE 702
#define ARU_TX_CH04_BIT_RATE 703
#define ARU_TX_CH05_BIT_RATE 704
#define ARU_TX_CH06_BIT_RATE 705
#define ARU_TX_CH07_BIT_RATE 706
#define ARU_TX_CH08_BIT_RATE 707
#define ARU_TX_CH09_BIT_RATE 708
#define ARU_TX_CH10_BIT_RATE 709
#define ARU_TX_CH11_BIT_RATE 710
#define ARU_TX_CH12_BIT_RATE 711
#define ARU_TX_CH13_BIT_RATE 712
#define ARU_TX_CH14_BIT_RATE 713
#define ARU_TX_CH15_BIT_RATE 714
#define ARU_TX_CH16_BIT_RATE 715
#define AR_WORD_SDI_MASK 0x00000300
#define ARU_RX_CH01_PARITY 900
#define ARU_RX_CH02_PARITY 901
#define ARU_RX_CH03_PARITY 902
#define ARU_RX_CH04_PARITY 903
#define ARU_RX_CH05_PARITY 904
#define ARU_RX_CH06_PARITY 905
#define ARU_RX_CH07_PARITY 906
#define ARU_RX_CH08_PARITY 907
#define ARU_RX_CH09_PARITY 908
#define ARU_RX_CH10_PARITY 909
#define ARU_RX_CH11_PARITY 910
#define ARU_RX_CH12_PARITY 911
#define ARU_RX_CH13_PARITY 912
#define ARU_RX_CH14_PARITY 913
#define ARU_RX_CH15_PARITY 914
#define ARU_RX_CH16_PARITY 915
#define ARS_TIMEOUT 1003
#define ARS_INVHARCMD 1004
#define ARS_INVHARVAL 1005
#define ARS_XMITOVRFLO 1006
#define ARS_INVBOARD 1007
#define ARS_BRDNOTLOAD 1008
#define ARS_INVARG 1009
#define ARS_WINRTFAIL 1010
#define ARU_TX_CH01_PARITY 1100
#define ARU_TX_CH02_PARITY 1101
#define ARU_TX_CH03_PARITY 1102
#define ARU_TX_CH04_PARITY 1103
#define ARU_TX_CH05_PARITY 1104
#define ARU_TX_CH06_PARITY 1105
#define ARU_TX_CH07_PARITY 1106
#define ARU_TX_CH08_PARITY 1107
#define ARU_TX_CH09_PARITY 1108
#define ARU_TX_CH10_PARITY 1109
#define ARU_TX_CH11_PARITY 1110
#define ARU_TX_CH12_PARITY 1111
#define ARU_TX_CH13_PARITY 1112
#define ARU_TX_CH14_PARITY 1113
#define ARU_TX_CH15_PARITY 1114
#define ARU_TX_CH16_PARITY 1115
#define ARU_CH01_DECODER 1300
#define ARU_CH02_DECODER 1301
#define ARU_CH03_DECODER 1302
#define ARU_CH04_DECODER 1303
#define ARU_CH05_DECODER 1304
#define ARU_CH06_DECODER 1305
#define ARU_CH07_DECODER 1306
#define ARU_CH08_DECODER 1307
#define ARU_CH09_DECODER 1308
#define ARU_CH10_DECODER 1309
#define ARU_CH11_DECODER 1310
#define ARU_CH12_DECODER 1311
#define ARU_CH13_DECODER 1312
#define ARU_CH14_DECODER 1313
#define ARU_CH15_DECODER 1314
#define ARU_CH16_DECODER 1315
#define ARU_CH01_SDI 1400
#define ARU_CH02_SDI 1401
#define ARU_CH03_SDI 1402
#define ARU_CH04_SDI 1403
#define ARU_CH05_SDI 1404
#define ARU_CH06_SDI 1405
#define ARU_CH07_SDI 1406
#define ARU_CH08_SDI 1407
#define ARU_CH09_SDI 1408
#define ARU_CH10_SDI 1409
#define ARU_CH11_SDI 1410
#define ARU_CH12_SDI 1411
#define ARU_CH13_SDI 1412
#define ARU_CH14_SDI 1413
#define ARU_CH15_SDI 1414
#define ARU_CH16_SDI 1415
#define ARS_FAILURE -1
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
| 42.288043 | 50 | 0.570492 |
eca19b9c9d884f3fa3eba922c81486c5609531d6 | 3,939 | h | C | thrift/lib/cpp2/transport/core/ClientConnectionIf.h | laohubuzaijia/fbthrift | ab263311864ec93b8e52665dad954264f094137f | [
"Apache-2.0"
] | 2,112 | 2015-01-02T11:34:27.000Z | 2022-03-31T16:30:42.000Z | thrift/lib/cpp2/transport/core/ClientConnectionIf.h | laohubuzaijia/fbthrift | ab263311864ec93b8e52665dad954264f094137f | [
"Apache-2.0"
] | 372 | 2015-01-05T10:40:09.000Z | 2022-03-31T20:45:11.000Z | thrift/lib/cpp2/transport/core/ClientConnectionIf.h | laohubuzaijia/fbthrift | ab263311864ec93b8e52665dad954264f094137f | [
"Apache-2.0"
] | 582 | 2015-01-03T01:51:56.000Z | 2022-03-31T02:01:09.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 <stdint.h>
#include <memory>
#include <folly/io/async/AsyncTransport.h>
#include <folly/io/async/EventBase.h>
#include <thrift/lib/cpp/transport/THeader.h>
#include <thrift/lib/cpp2/async/ClientChannel.h>
#include <thrift/lib/cpp2/transport/core/ThriftChannelIf.h>
#include <thrift/lib/thrift/gen-cpp2/RpcMetadata_types.h>
namespace apache {
namespace thrift {
class ThriftClient;
/**
* The API to the transport layer.
*
* Concrete implementations support specific transports such as Proxygen
* and RSocket.
*
* The primary method in this API is "getChannel()" which returns a
* "ThriftChannelIf" object which is used to interface between the
* Thrift layer and this layer. A separate call to "getChannel()"
* must be made for each RPC.
*
* "ClientConnectionIf" objects operate on an event base that must be
* supplied when an object is constructed - see comments on each
* subclass for more details. The event base loop must be running.
* This is the event base on which callbacks from the networking layer
* take place. This is also the event base on which calls to
* "ThriftChannelIf" objects must be made from ThriftClient objects.
*
* Multiple "ClientConnectionIf" objects may be present at the same
* time, each will manage a separate network connection and are
* generally on different event bases (threads).
*
* All methods must be called on the same event base that manages the
* connection.
*/
class ClientConnectionIf {
protected:
ClientConnectionIf() = default;
public:
virtual ~ClientConnectionIf() = default;
ClientConnectionIf(const ClientConnectionIf&) = delete;
ClientConnectionIf& operator=(const ClientConnectionIf&) = delete;
// Returns a channel object for use on a single RPC. Throws
// TTransportException if a channel object cannot be returned.
virtual std::shared_ptr<ThriftChannelIf> getChannel() = 0;
// Sets the maximum pending outgoing requests allowed on this
// connection. Subject to negotiation with the server, which may
// dictate a smaller maximum.
virtual void setMaxPendingRequests(uint32_t num) = 0;
// Sets/updates the close callback on behalf of the client. Can be
// called with "cb" set to nullptr to remove the close callback.
virtual void setCloseCallback(ThriftClient* client, CloseCallback* cb) = 0;
// Returns the event base of the underlying transport. This is also
// the event base on which all calls to channel object (obtained via
// "getChannel()") must be scheduled.
virtual folly::EventBase* getEventBase() const = 0;
// The following methods are proxies for ClientChannel methods.
// They are called from corresponding "ThriftClient" methods, which
// in turn can be used from any client side connection management
// framework.
virtual folly::AsyncTransport* getTransport() = 0;
virtual bool good() = 0;
virtual ClientChannel::SaturationStatus getSaturationStatus() = 0;
virtual void attachEventBase(folly::EventBase* evb) = 0;
virtual void detachEventBase() = 0;
virtual bool isDetachable() = 0;
virtual void closeNow() = 0;
virtual CLIENT_TYPE getClientType() = 0;
// Client timeouts for read, write.
virtual uint32_t getTimeout() = 0;
virtual void setTimeout(uint32_t ms) = 0;
};
} // namespace thrift
} // namespace apache
| 36.472222 | 77 | 0.744097 |
eca1aafedb1077802279458e737683244aab3c1c | 5,384 | c | C | trick_source/trick_utils/comm/src/tc_write.c | dexueyang/trick-dup0 | 2d5d5502fa896d3c42eda40ce0ee45e98ec35463 | [
"NASA-1.3"
] | null | null | null | trick_source/trick_utils/comm/src/tc_write.c | dexueyang/trick-dup0 | 2d5d5502fa896d3c42eda40ce0ee45e98ec35463 | [
"NASA-1.3"
] | null | null | null | trick_source/trick_utils/comm/src/tc_write.c | dexueyang/trick-dup0 | 2d5d5502fa896d3c42eda40ce0ee45e98ec35463 | [
"NASA-1.3"
] | 3 | 2021-06-22T11:02:39.000Z | 2021-10-21T00:58:00.000Z |
/*
* Write data to a device
*/
#ifndef __WIN32__
#include <errno.h>
#include <unistd.h>
#endif
#include "trick/tc.h"
#include "trick/tc_proto.h"
int tc_write_(TCDevice * device, char *buffer, int size, const char *file, int line)
{
char client_str[TC_TAG_LENGTH + 256];
int nbytes = 0;
int tmp_nbytes = 0;
void *tmp_data = (void *) buffer;
int tmp_size = size;
double ref_time = 0;
double delta = 0;
int error = TC_SUCCESS;
char error_str[512];
if (!device) {
TrickErrorHndlr *temp_error_hndlr = NULL;
trick_error_report(temp_error_hndlr, TRICK_ERROR_ALERT, file, line, "Trying to write to a NULL device");
return (-1);
}
if (device->disabled) {
trick_error_report(device->error_handler,
TRICK_ERROR_ALERT, file, line, "Trying to write to a disabled device");
return (-1);
}
if (device->socket == TRICKCOMM_INVALID_SOCKET) {
trick_error_report(device->error_handler,
TRICK_ERROR_ALERT, file, line, "Trying to write to an invalid socket");
return (-1);
}
sprintf(client_str, "(ID = %d tag = %s)", device->client_id, device->client_tag);
trick_error_report(device->error_handler, TRICK_ERROR_ALL, file, line, "%s writing %d bytes\n", client_str, size);
/* If this is a software blocking write get the current time from the system */
if (device->blockio_type == TC_COMM_TIMED_BLOCKIO) {
ref_time = tc_clock_init();
}
while (nbytes != size) {
/* Send will return -1 with tc_errno set to EINTR if it was interrupted by the delivery of a signal. Re-send
data if this occurs. */
while ((tmp_nbytes = sendto(device->socket, tmp_data,
(size_t) tmp_size, TC_NOSIGNAL,
(struct sockaddr *) &device->remoteServAddr,
(socklen_t) sizeof(struct sockaddr_in))) < 0 && tc_errno == TRICKCOMM_EINTR);
/* If send had an error return nbytes to indicate broken connection */
if (tmp_nbytes < 0) {
error = tc_errno;
if (error != TRICKCOMM_EAGAIN && error != TRICKCOMM_EWOULDBLOCK) {
sprintf(error_str, "tc_write: %s %s (tc_errno = %d)", client_str, strerror(error), error);
trick_error_report(device->error_handler, TRICK_ERROR_ALERT, file, line, error_str);
tc_disconnect(device);
return (nbytes);
}
}
/* Keep track of total number of bytes writes */
else if (tmp_nbytes > 0) {
nbytes += tmp_nbytes;
}
/* Adjust data pointers for partial writes */
if (tmp_nbytes > 0 && tmp_nbytes != tmp_size) {
tmp_data = (void *) ((char *) tmp_data + tmp_nbytes);
tmp_size -= tmp_nbytes;
}
if (device->blockio_type == TC_COMM_TIMED_BLOCKIO) {
delta = tc_clock_time(ref_time);
/* Check for timeouts; this prevents hanging here if the reader dies */
if (device->blockio_limit < delta) {
error = TC_READWRITE_TIMEOUT;
break;
}
if (tmp_nbytes == -1 && tc_errno == TRICKCOMM_EWOULDBLOCK) {
/* Yield the processor so queued proceses may run */
TC_RELEASE();
}
} else if (device->blockio_type == TC_COMM_ALL_OR_NOTHING) {
/* If nothing read and nothing pending break out */
if (nbytes == 0 && tmp_nbytes == -1 && (tc_errno == TRICKCOMM_EWOULDBLOCK || tc_errno == TRICKCOMM_EAGAIN)) {
error = TC_EWOULDBLOCK;
nbytes = -1;
break;
}
/* If something read release processor and loop back for more */
else if (tmp_nbytes == -1 && tc_errno == TRICKCOMM_EWOULDBLOCK) {
/* Yield the processor so queued proceses may run */
TC_RELEASE();
}
} else if (device->blockio_type == TC_COMM_NOBLOCKIO) {
if (tmp_nbytes == -1 && (tc_errno == TRICKCOMM_EWOULDBLOCK || tc_errno == TRICKCOMM_EAGAIN)) {
if (nbytes == 0) {
nbytes = -1;
}
error = TC_EWOULDBLOCK;
break;
}
}
}
/*
* If write didn't write all bytes, handle it
*/
switch (error) {
case TC_READWRITE_TIMEOUT:
trick_error_report(device->error_handler,
TRICK_ERROR_ADVISORY, file, line,
"%s Failed to write within the specified "
"time limit of %f seconds. delta = %f ref_time = %f", client_str, device->blockio_limit, delta, ref_time);
break;
case TC_EWOULDBLOCK:
trick_error_report(device->error_handler,
TRICK_ERROR_ALL, file, line,
"%s No data written during non-blocking write.", client_str);
break;
case TC_SUCCESS:
trick_error_report(device->error_handler, TRICK_ERROR_ALL,
file, line, "%s: %d bytes successfully written\n", client_str, nbytes);
break;
}
return (nbytes);
}
| 37.65035 | 137 | 0.552377 |
eca30873a0f7fd1e488763242f54f2c889ba1b95 | 3,236 | c | C | Tool/windows/libusbK-3.0.7.0/examples/load-driver-api/load-driver-api.c | HEYAHONG/STM32_VirtualKeyBoradMouse | b6f6cfd73766db0e98b28c9d98b98de007ae0487 | [
"MIT"
] | null | null | null | Tool/windows/libusbK-3.0.7.0/examples/load-driver-api/load-driver-api.c | HEYAHONG/STM32_VirtualKeyBoradMouse | b6f6cfd73766db0e98b28c9d98b98de007ae0487 | [
"MIT"
] | null | null | null | Tool/windows/libusbK-3.0.7.0/examples/load-driver-api/load-driver-api.c | HEYAHONG/STM32_VirtualKeyBoradMouse | b6f6cfd73766db0e98b28c9d98b98de007ae0487 | [
"MIT"
] | 1 | 2020-07-18T01:35:37.000Z | 2020-07-18T01:35:37.000Z | /*!
#
# Copyright (c) 2012 Travis Robinson <libusbdotnet@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 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 TRAVIS LEE ROBINSON
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
# THE POSSIBILITY OF SUCH DAMAGE.
#
*/
#include "examples.h"
// Globals
KUSB_DRIVER_API Usb;
DWORD __cdecl main(int argc, char* argv[])
{
KLST_HANDLE deviceList = NULL;
KLST_DEVINFO_HANDLE deviceInfo = NULL;
KUSB_HANDLE handle = NULL;
DWORD errorCode = ERROR_SUCCESS;
// Find the test device. Uses "vid/pid=hhhh" arguments supplied
// on the command line. (default is: vid=04D8 pid=FA2E)
if (!Examples_GetTestDevice(&deviceList, &deviceInfo, argc, argv))
return GetLastError();
// load a dynamic driver api for this device. The dynamic driver api
// is more versatile because it adds support for winusb.sys devices.
if (!LibK_LoadDriverAPI(&Usb, deviceInfo->DriverID))
{
errorCode = GetLastError();
printf("LibK_LoadDriverAPI failed. ErrorCode: %08Xh\n", errorCode);
goto Done;
}
// Display some information on the driver api type.
switch(deviceInfo->DriverID)
{
case KUSB_DRVID_LIBUSBK:
printf("libusbK driver api loaded!\n");
break;
case KUSB_DRVID_LIBUSB0:
printf("libusb0 driver api loaded!\n");
break;
case KUSB_DRVID_WINUSB:
printf("WinUSB driver api loaded!\n");
break;
case KUSB_DRVID_LIBUSB0_FILTER:
printf("libusb0/filter driver api loaded!\n");
break;
}
/*
From this point forth, do not use the exported "UsbK_" functions. Instead,
use the functions in the driver api initialized above.
*/
// Initialize the device with the "dynamic" Open function
if (!Usb.Init(&handle, deviceInfo))
{
errorCode = GetLastError();
printf("Usb.Init failed. ErrorCode: %08Xh\n", errorCode);
goto Done;
}
printf("Device opened successfully!\n");
Done:
// Close the device handle
// if handle is invalid (NULL), has no effect
UsbK_Free(handle);
// Free the device list
// if deviceList is invalid (NULL), has no effect
LstK_Free(deviceList);
return errorCode;
}
/*!
Console Output:
Looking for device vid/pid 04D8/FA2E..
Using 04D8:FA2E (LUSBW1): Benchmark Device - Microchip Technology, Inc.
libusbK driver api loaded!
Device opened successfully!
*/
| 31.72549 | 78 | 0.720025 |
eca3efbe9af6a4a751f7ba927823fb776ef97809 | 413 | h | C | kern/include/stdarg.h | goovdl/akaros | 26fafec0d2e65d16839316b1517de9cf86c53059 | [
"LPL-1.02"
] | 1 | 2022-01-10T23:42:13.000Z | 2022-01-10T23:42:13.000Z | kern/include/stdarg.h | 7perl/akaros | 19eb5f42223afd2be2968fef4dd50b940045ac90 | [
"LPL-1.02"
] | null | null | null | kern/include/stdarg.h | 7perl/akaros | 19eb5f42223afd2be2968fef4dd50b940045ac90 | [
"LPL-1.02"
] | null | null | null | #ifndef ROS_INC_STDARG_H
#define ROS_INC_STDARG_H
// We now leverage GCC's built-in varargs support.
// The old code was correct for i386's calling convention
// but breaks when args are passed in registers.
// --asw
typedef __builtin_va_list va_list;
#define va_start(v,l) __builtin_va_start(v,l)
#define va_end(v) __builtin_va_end(v)
#define va_arg(v,l) __builtin_va_arg(v,l)
#endif /* !ROS_INC_STDARG_H */
| 25.8125 | 57 | 0.767554 |
eca589dc24d39c3e0a7f47e28d78d6762e1f2d59 | 552 | c | C | Cosc350/Lab-09/buildsm.c | ckmurrer/University | 1696bbec0a2b0dfc06a6c5f632671f80767c3bf3 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | Cosc350/Lab-09/buildsm.c | ckmurrer/University | 1696bbec0a2b0dfc06a6c5f632671f80767c3bf3 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | Cosc350/Lab-09/buildsm.c | ckmurrer/University | 1696bbec0a2b0dfc06a6c5f632671f80767c3bf3 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <sys/shm.h>
#include <errno.h>
#include "header.h"
int main(int argc, char *argv[]){
int shmid;
key_t key;
struct Memory *shm;
key = ftok(".", 'x');
if ((shmid = shmget(key, sizeof(struct Memory), IPC_CREAT | 0666)) <0){
perror("shmget error \n");
exit (1);
}
shm = (struct Memory *) shmat(shmid, NULL, 0);
if ((long)shm == -1){
perror("shmat error \n");
exit (1);
}
shm->status = NOT_READY;
shm->gostop = GO;
return 0;
}
| 21.230769 | 75 | 0.539855 |
eca5cf0d22008c662547429ab7ecca0a64b0fe88 | 493 | h | C | src/renderer/Camera.h | artfulbytes/sumobot_simulator | f2784d2ff506759019d7d5e840bd7aed591a0add | [
"MIT"
] | null | null | null | src/renderer/Camera.h | artfulbytes/sumobot_simulator | f2784d2ff506759019d7d5e840bd7aed591a0add | [
"MIT"
] | null | null | null | src/renderer/Camera.h | artfulbytes/sumobot_simulator | f2784d2ff506759019d7d5e840bd7aed591a0add | [
"MIT"
] | null | null | null | #ifndef CAMERA_H_
#define CAMERA_H_
#include "Event.h"
#include <glm/glm.hpp>
/**
* Camera position and zoom factor.
*/
class Camera
{
public:
static bool onKeyEvent(const Event::Key &keyEvent);
static void onScrollEvent(const Event::Scroll &scrollEvent);
static void onWindowEvent(const Event::Window &windowEvent);
static float getZoomFactor();
static glm::vec2 getPosition();
static glm::vec2 getWindowSize();
static void reset();
};
#endif /* CAMERA_H_ */
| 21.434783 | 64 | 0.703854 |
eca60677496250019458477ea96ee0d2b782ac20 | 12,032 | h | C | System/Library/Frameworks/CoreServices.framework/LSApplicationProxy.h | zhangkn/iOS14Header | 4323e9459ed6f6f5504ecbea2710bfd6c3d7c946 | [
"MIT"
] | 1 | 2020-11-04T15:43:01.000Z | 2020-11-04T15:43:01.000Z | System/Library/Frameworks/CoreServices.framework/LSApplicationProxy.h | zhangkn/iOS14Header | 4323e9459ed6f6f5504ecbea2710bfd6c3d7c946 | [
"MIT"
] | null | null | null | System/Library/Frameworks/CoreServices.framework/LSApplicationProxy.h | zhangkn/iOS14Header | 4323e9459ed6f6f5504ecbea2710bfd6c3d7c946 | [
"MIT"
] | null | null | null | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:27:16 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/Frameworks/CoreServices.framework/CoreServices
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/
#import <CoreServices/CoreServices-Structs.h>
#import <CoreServices/LSBundleProxy.h>
#import <libobjc.A.dylib/LSDetachable.h>
#import <libobjc.A.dylib/NSSecureCoding.h>
@class NSString, LSApplicationRecord, NSArray, NSDate, NSNumber, NSUUID, NSProgress, _LSDiskUsage, _LSApplicationState, NSDictionary, NSSet;
@interface LSApplicationProxy : LSBundleProxy <LSDetachable, NSSecureCoding> {
NSString* _deviceIdentifierVendorName;
LSApplicationRecord* _record;
NSArray* _plugInKitPlugins;
BOOL _userInitiatedUninstall;
}
@property (assign,nonatomic) BOOL userInitiatedUninstall; //@synthesize userInitiatedUninstall=_userInitiatedUninstall - In the implementation block
@property (nonatomic,readonly) BOOL supportsAlternateIconNames;
@property (nonatomic,readonly) int bundleModTime;
@property (nonatomic,readonly) LSApplicationRecord * correspondingApplicationRecord;
@property (nonatomic,readonly) NSString * applicationIdentifier;
@property (nonatomic,readonly) NSString * companionApplicationIdentifier;
@property (nonatomic,readonly) NSArray * counterpartIdentifiers;
@property (nonatomic,readonly) NSDate * registeredDate;
@property (nonatomic,readonly) NSNumber * itemID;
@property (nonatomic,readonly) NSString * vendorName;
@property (nonatomic,readonly) NSString * itemName;
@property (nonatomic,readonly) NSString * storeCohortMetadata;
@property (nonatomic,readonly) NSString * genre;
@property (nonatomic,readonly) NSNumber * genreID;
@property (nonatomic,readonly) NSArray * subgenres;
@property (nonatomic,readonly) NSArray * staticShortcutItems;
@property (nonatomic,readonly) NSString * minimumSystemVersion;
@property (nonatomic,readonly) NSString * maximumSystemVersion;
@property (nonatomic,readonly) NSString * shortVersionString;
@property (nonatomic,readonly) NSString * preferredArchitecture;
@property (nonatomic,readonly) NSString * applicationType;
@property (nonatomic,readonly) NSArray * directionsModes;
@property (nonatomic,readonly) NSArray * UIBackgroundModes;
@property (nonatomic,readonly) NSArray * audioComponents;
@property (nonatomic,readonly) NSUUID * deviceIdentifierForVendor;
@property (nonatomic,readonly) NSUUID * deviceIdentifierForAdvertising;
@property (nonatomic,readonly) NSProgress * installProgress;
@property (nonatomic,readonly) NSNumber * staticDiskUsage;
@property (nonatomic,readonly) NSNumber * dynamicDiskUsage;
@property (nonatomic,readonly) NSNumber * ODRDiskUsage;
@property (nonatomic,readonly) _LSDiskUsage * diskUsage;
@property (nonatomic,readonly) _LSApplicationState * appState;
@property (getter=isInstalled,nonatomic,readonly) BOOL installed;
@property (getter=isPlaceholder,nonatomic,readonly) BOOL placeholder;
@property (getter=isRestricted,nonatomic,readonly) BOOL restricted;
@property (getter=isRemovedSystemApp,nonatomic,readonly) BOOL removedSystemApp;
@property (nonatomic,readonly) NSArray * VPNPlugins;
@property (nonatomic,readonly) NSArray * plugInKitPlugins;
@property (nonatomic,readonly) NSArray * appTags;
@property (nonatomic,readonly) NSString * applicationDSID;
@property (nonatomic,readonly) NSNumber * purchaserDSID;
@property (nonatomic,readonly) NSNumber * downloaderDSID;
@property (nonatomic,readonly) NSNumber * familyID;
@property (nonatomic,readonly) unsigned long long installType;
@property (nonatomic,readonly) unsigned long long originalInstallType;
@property (nonatomic,readonly) NSArray * requiredDeviceCapabilities;
@property (nonatomic,readonly) NSArray * deviceFamily;
@property (nonatomic,readonly) NSArray * activityTypes;
@property (nonatomic,readonly) NSArray * externalAccessoryProtocols;
@property (nonatomic,readonly) NSString * teamID;
@property (nonatomic,readonly) NSString * appIDPrefix;
@property (nonatomic,readonly) NSNumber * storeFront;
@property (nonatomic,readonly) NSNumber * externalVersionIdentifier;
@property (nonatomic,readonly) NSNumber * betaExternalVersionIdentifier;
@property (nonatomic,readonly) NSNumber * ratingRank;
@property (nonatomic,readonly) NSString * ratingLabel;
@property (nonatomic,readonly) NSString * sourceAppIdentifier;
@property (nonatomic,readonly) NSString * applicationVariant;
@property (getter=isAppUpdate,nonatomic,readonly) BOOL appUpdate;
@property (nonatomic,readonly) BOOL hasParallelPlaceholder;
@property (getter=isNewsstandApp,nonatomic,readonly) BOOL newsstandApp;
@property (getter=isWhitelisted,nonatomic,readonly) BOOL whitelisted;
@property (getter=isAppStoreVendable,nonatomic,readonly) BOOL appStoreVendable;
@property (getter=isDeviceBasedVPP,nonatomic,readonly) BOOL deviceBasedVPP;
@property (getter=isBetaApp,nonatomic,readonly) BOOL betaApp;
@property (getter=isAdHocCodeSigned,nonatomic,readonly) BOOL adHocCodeSigned;
@property (nonatomic,readonly) BOOL supportsAudiobooks;
@property (getter=isLaunchProhibited,nonatomic,readonly) BOOL launchProhibited;
@property (nonatomic,readonly) BOOL supportsODR;
@property (nonatomic,readonly) BOOL hasSettingsBundle;
@property (nonatomic,readonly) BOOL supportsExternallyPlayableContent;
@property (nonatomic,readonly) BOOL supportsOpenInPlace;
@property (nonatomic,readonly) BOOL fileSharingEnabled;
@property (nonatomic,readonly) BOOL iconIsPrerendered;
@property (nonatomic,readonly) BOOL iconUsesAssetCatalog;
@property (getter=isPurchasedReDownload,nonatomic,readonly) BOOL purchasedReDownload;
@property (nonatomic,readonly) BOOL hasMIDBasedSINF;
@property (nonatomic,readonly) BOOL missingRequiredSINF;
@property (nonatomic,readonly) BOOL supportsPurgeableLocalStorage;
@property (getter=isDeletable,nonatomic,readonly) BOOL deletable;
@property (nonatomic,readonly) NSArray * managedPersonas;
@property (getter=isRemoveableSystemApp,nonatomic,readonly) BOOL removeableSystemApp;
@property (getter=isWatchKitApp,nonatomic,readonly) BOOL watchKitApp;
@property (nonatomic,readonly) NSString * watchKitVersion;
@property (nonatomic,readonly) NSString * complicationPrincipalClass;
@property (nonatomic,readonly) NSArray * supportedComplicationFamilies;
@property (nonatomic,readonly) BOOL hasCustomNotification;
@property (nonatomic,readonly) BOOL hasComplication;
@property (nonatomic,readonly) BOOL hasGlance;
@property (nonatomic,readonly) BOOL shouldSkipWatchAppInstall;
@property (getter=isGameCenterEnabled,nonatomic,readonly) BOOL gameCenterEnabled;
@property (nonatomic,readonly) BOOL gameCenterEverEnabled;
@property (nonatomic,readonly) NSNumber * installFailureReason;
@property (nonatomic,readonly) long long deviceManagementPolicy;
@property (nonatomic,readonly) NSDictionary * siriActionDefinitionURLs;
@property (nonatomic,readonly) NSString * appStoreToolsBuildVersion;
@property (nonatomic,readonly) NSSet * claimedDocumentContentTypes;
@property (nonatomic,readonly) NSSet * claimedURLSchemes;
@property (nonatomic,readonly) BOOL canHandleWebAuthentication;
@property (nonatomic,readonly) BOOL supportsMultiwindow;
@property (nonatomic,readonly) NSNumber * platform;
@property (nonatomic,readonly) NSArray * backgroundTaskSchedulerPermittedIdentifiers;
@property (getter=isStandaloneWatchApp,nonatomic,readonly) BOOL standaloneWatchApp;
@property (nonatomic,readonly) BOOL runsIndependentlyOfCompanionApp;
@property (getter=isArcadeApp,nonatomic,readonly) BOOL arcadeApp;
@property (nonatomic,readonly) NSArray * carPlayInstrumentClusterURLSchemes;
+(id)applicationProxyForIdentifier:(id)arg1 placeholder:(BOOL)arg2 ;
+(id)applicationProxyWithBundleUnitID:(unsigned)arg1 withContext:(LSContext*)arg2 ;
+(id)applicationProxyForIdentifier:(id)arg1 withContext:(LSContext*)arg2 ;
+(id)applicationProxyForBundleType:(unsigned long long)arg1 identifier:(id)arg2 isCompanion:(BOOL)arg3 URL:(id)arg4 itemID:(id)arg5 bundleUnit:(unsigned*)arg6 ;
+(id)applicationProxyForSystemPlaceholder:(id)arg1 ;
+(id)applicationProxyForItemID:(id)arg1 ;
+(id)applicationProxyForCompanionIdentifier:(id)arg1 ;
+(id)applicationProxyForBundleURL:(id)arg1 ;
+(id)applicationProxyForIdentifier:(id)arg1 ;
+(BOOL)supportsSecureCoding;
-(void)detach;
-(NSNumber *)genreID;
-(id)bundleType;
-(NSString *)teamID;
-(NSNumber *)ODRDiskUsage;
-(NSArray *)deviceFamily;
-(BOOL)UPPValidated;
-(unsigned long long)installType;
-(NSString *)appIDPrefix;
-(BOOL)isAppUpdate;
-(BOOL)supportsODR;
-(NSProgress *)installProgress;
-(int)bundleModTime;
-(NSArray *)activityTypes;
-(NSString *)applicationDSID;
-(NSArray *)managedPersonas;
-(NSString *)applicationType;
-(NSNumber *)staticDiskUsage;
-(BOOL)hasMIDBasedSINF;
-(BOOL)isWatchKitApp;
-(id)localizedNameForContext:(id)arg1 preferredLocalizations:(id)arg2 useShortNameOnly:(BOOL)arg3 ;
-(id)alternateIconName;
-(BOOL)iconIsPrerendered;
-(id)_initWithContext:(LSContext*)arg1 bundleUnit:(unsigned)arg2 applicationRecord:(id)arg3 bundleID:(id)arg4 resolveAndDetach:(BOOL)arg5 ;
-(NSSet *)claimedURLSchemes;
-(id)getBundleMetadata;
-(NSDate *)registeredDate;
-(NSArray *)plugInKitPlugins;
-(BOOL)isNewsstandApp;
-(void)getDeviceManagementPolicyWithCompletionHandler:(/*^block*/id)arg1 ;
-(void)setAlternateIconName:(id)arg1 withResult:(/*^block*/id)arg2 ;
-(id)_managedPersonas;
-(NSNumber *)dynamicDiskUsage;
-(BOOL)profileValidated;
-(id)localizedNameForContext:(id)arg1 preferredLocalizations:(id)arg2 ;
-(void)clearAdvertisingIdentifier;
-(unsigned long long)originalInstallType;
-(id)_initWithBundleUnit:(unsigned)arg1 context:(LSContext*)arg2 bundleIdentifier:(id)arg3 ;
-(NSDictionary *)siriActionDefinitionURLs;
-(id)localizedNameForContext:(id)arg1 ;
-(NSSet *)claimedDocumentContentTypes;
-(NSString *)storeCohortMetadata;
-(BOOL)missingRequiredSINF;
-(NSString *)complicationPrincipalClass;
-(id)iconDataForVariant:(int)arg1 ;
-(id)installProgressSync;
-(id)primaryIconDataForVariant:(int)arg1 ;
-(BOOL)iconUsesAssetCatalog;
-(NSNumber *)installFailureReason;
-(BOOL)isStandaloneWatchApp;
-(NSString *)preferredArchitecture;
-(BOOL)isPurchasedReDownload;
-(void)setUserInitiatedUninstall:(BOOL)arg1 ;
-(BOOL)freeProfileValidated;
-(BOOL)getGenericTranslocationTargetURL:(id*)arg1 error:(id*)arg2 ;
-(BOOL)isRemoveableSystemApp;
-(BOOL)isDeletableIgnoringRestrictions;
-(id)groupContainerURLs;
-(id)_localizedNameWithPreferredLocalizations:(id)arg1 useShortNameOnly:(BOOL)arg2 ;
-(id)handlerRankOfClaimForContentType:(id)arg1 ;
-(id)iconDataForVariant:(int)arg1 withOptions:(int)arg2 ;
-(BOOL)gameCenterEverEnabled;
-(NSString *)applicationVariant;
-(long long)deviceManagementPolicy;
-(BOOL)userInitiatedUninstall;
-(BOOL)fileSharingEnabled;
-(BOOL)_usesSystemPersona;
-(NSNumber *)betaExternalVersionIdentifier;
-(BOOL)isBetaApp;
-(LSApplicationRecord *)correspondingApplicationRecord;
-(NSNumber *)externalVersionIdentifier;
-(NSNumber *)familyID;
-(id)dataContainerURL;
-(NSNumber *)itemID;
-(BOOL)isRemovedSystemApp;
-(BOOL)isWhitelisted;
-(BOOL)respondsToSelector:(SEL)arg1 ;
-(NSString *)applicationIdentifier;
-(NSNumber *)storeFront;
-(NSNumber *)ratingRank;
-(id)forwardingTargetForSelector:(SEL)arg1 ;
-(NSString *)itemName;
-(id)valueForUndefinedKey:(id)arg1 ;
-(NSString *)ratingLabel;
-(_LSApplicationState *)appState;
-(BOOL)isPlaceholder;
-(id)environmentVariables;
-(NSNumber *)purchaserDSID;
-(NSString *)genre;
-(id)methodSignatureForSelector:(SEL)arg1 ;
-(NSNumber *)downloaderDSID;
-(BOOL)isDeviceBasedVPP;
-(NSArray *)subgenres;
-(id)initWithCoder:(id)arg1 ;
-(NSString *)sourceAppIdentifier;
-(NSArray *)requiredDeviceCapabilities;
-(void)encodeWithCoder:(id)arg1 ;
-(BOOL)isRestricted;
-(BOOL)isInstalled;
-(BOOL)isGameCenterEnabled;
-(NSString *)vendorName;
-(NSNumber *)platform;
-(NSString *)companionApplicationIdentifier;
-(id)description;
@end
| 48.712551 | 189 | 0.806267 |
eca76e6d5b1d6ccabda763026b9b7f29f7793a49 | 505,659 | h | C | third_party/substrait/substrait/relations.pb.h | aryann/duckdb | d3c942d19ae041f5e9872083fbcc7307d73d048c | [
"MIT"
] | null | null | null | third_party/substrait/substrait/relations.pb.h | aryann/duckdb | d3c942d19ae041f5e9872083fbcc7307d73d048c | [
"MIT"
] | null | null | null | third_party/substrait/substrait/relations.pb.h | aryann/duckdb | d3c942d19ae041f5e9872083fbcc7307d73d048c | [
"MIT"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: substrait/relations.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_substrait_2frelations_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_substrait_2frelations_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3019000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3019003 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_bases.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include "substrait/type.pb.h"
#include "substrait/expression.pb.h"
#include "substrait/extensions/extensions.pb.h"
#include <google/protobuf/any.pb.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_substrait_2frelations_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_substrait_2frelations_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[27]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_substrait_2frelations_2eproto;
namespace substrait {
class AggregateRel;
struct AggregateRelDefaultTypeInternal;
extern AggregateRelDefaultTypeInternal _AggregateRel_default_instance_;
class AggregateRel_Grouping;
struct AggregateRel_GroupingDefaultTypeInternal;
extern AggregateRel_GroupingDefaultTypeInternal _AggregateRel_Grouping_default_instance_;
class AggregateRel_Measure;
struct AggregateRel_MeasureDefaultTypeInternal;
extern AggregateRel_MeasureDefaultTypeInternal _AggregateRel_Measure_default_instance_;
class CrossRel;
struct CrossRelDefaultTypeInternal;
extern CrossRelDefaultTypeInternal _CrossRel_default_instance_;
class ExtensionLeafRel;
struct ExtensionLeafRelDefaultTypeInternal;
extern ExtensionLeafRelDefaultTypeInternal _ExtensionLeafRel_default_instance_;
class ExtensionMultiRel;
struct ExtensionMultiRelDefaultTypeInternal;
extern ExtensionMultiRelDefaultTypeInternal _ExtensionMultiRel_default_instance_;
class ExtensionSingleRel;
struct ExtensionSingleRelDefaultTypeInternal;
extern ExtensionSingleRelDefaultTypeInternal _ExtensionSingleRel_default_instance_;
class FetchRel;
struct FetchRelDefaultTypeInternal;
extern FetchRelDefaultTypeInternal _FetchRel_default_instance_;
class FilterRel;
struct FilterRelDefaultTypeInternal;
extern FilterRelDefaultTypeInternal _FilterRel_default_instance_;
class JoinRel;
struct JoinRelDefaultTypeInternal;
extern JoinRelDefaultTypeInternal _JoinRel_default_instance_;
class ProjectRel;
struct ProjectRelDefaultTypeInternal;
extern ProjectRelDefaultTypeInternal _ProjectRel_default_instance_;
class ReadRel;
struct ReadRelDefaultTypeInternal;
extern ReadRelDefaultTypeInternal _ReadRel_default_instance_;
class ReadRel_ExtensionTable;
struct ReadRel_ExtensionTableDefaultTypeInternal;
extern ReadRel_ExtensionTableDefaultTypeInternal _ReadRel_ExtensionTable_default_instance_;
class ReadRel_LocalFiles;
struct ReadRel_LocalFilesDefaultTypeInternal;
extern ReadRel_LocalFilesDefaultTypeInternal _ReadRel_LocalFiles_default_instance_;
class ReadRel_LocalFiles_FileOrFiles;
struct ReadRel_LocalFiles_FileOrFilesDefaultTypeInternal;
extern ReadRel_LocalFiles_FileOrFilesDefaultTypeInternal _ReadRel_LocalFiles_FileOrFiles_default_instance_;
class ReadRel_NamedTable;
struct ReadRel_NamedTableDefaultTypeInternal;
extern ReadRel_NamedTableDefaultTypeInternal _ReadRel_NamedTable_default_instance_;
class ReadRel_VirtualTable;
struct ReadRel_VirtualTableDefaultTypeInternal;
extern ReadRel_VirtualTableDefaultTypeInternal _ReadRel_VirtualTable_default_instance_;
class Rel;
struct RelDefaultTypeInternal;
extern RelDefaultTypeInternal _Rel_default_instance_;
class RelCommon;
struct RelCommonDefaultTypeInternal;
extern RelCommonDefaultTypeInternal _RelCommon_default_instance_;
class RelCommon_Direct;
struct RelCommon_DirectDefaultTypeInternal;
extern RelCommon_DirectDefaultTypeInternal _RelCommon_Direct_default_instance_;
class RelCommon_Emit;
struct RelCommon_EmitDefaultTypeInternal;
extern RelCommon_EmitDefaultTypeInternal _RelCommon_Emit_default_instance_;
class RelCommon_Hint;
struct RelCommon_HintDefaultTypeInternal;
extern RelCommon_HintDefaultTypeInternal _RelCommon_Hint_default_instance_;
class RelCommon_Hint_RuntimeConstraint;
struct RelCommon_Hint_RuntimeConstraintDefaultTypeInternal;
extern RelCommon_Hint_RuntimeConstraintDefaultTypeInternal _RelCommon_Hint_RuntimeConstraint_default_instance_;
class RelCommon_Hint_Stats;
struct RelCommon_Hint_StatsDefaultTypeInternal;
extern RelCommon_Hint_StatsDefaultTypeInternal _RelCommon_Hint_Stats_default_instance_;
class RelRoot;
struct RelRootDefaultTypeInternal;
extern RelRootDefaultTypeInternal _RelRoot_default_instance_;
class SetRel;
struct SetRelDefaultTypeInternal;
extern SetRelDefaultTypeInternal _SetRel_default_instance_;
class SortRel;
struct SortRelDefaultTypeInternal;
extern SortRelDefaultTypeInternal _SortRel_default_instance_;
} // namespace substrait
PROTOBUF_NAMESPACE_OPEN
template<> ::substrait::AggregateRel* Arena::CreateMaybeMessage<::substrait::AggregateRel>(Arena*);
template<> ::substrait::AggregateRel_Grouping* Arena::CreateMaybeMessage<::substrait::AggregateRel_Grouping>(Arena*);
template<> ::substrait::AggregateRel_Measure* Arena::CreateMaybeMessage<::substrait::AggregateRel_Measure>(Arena*);
template<> ::substrait::CrossRel* Arena::CreateMaybeMessage<::substrait::CrossRel>(Arena*);
template<> ::substrait::ExtensionLeafRel* Arena::CreateMaybeMessage<::substrait::ExtensionLeafRel>(Arena*);
template<> ::substrait::ExtensionMultiRel* Arena::CreateMaybeMessage<::substrait::ExtensionMultiRel>(Arena*);
template<> ::substrait::ExtensionSingleRel* Arena::CreateMaybeMessage<::substrait::ExtensionSingleRel>(Arena*);
template<> ::substrait::FetchRel* Arena::CreateMaybeMessage<::substrait::FetchRel>(Arena*);
template<> ::substrait::FilterRel* Arena::CreateMaybeMessage<::substrait::FilterRel>(Arena*);
template<> ::substrait::JoinRel* Arena::CreateMaybeMessage<::substrait::JoinRel>(Arena*);
template<> ::substrait::ProjectRel* Arena::CreateMaybeMessage<::substrait::ProjectRel>(Arena*);
template<> ::substrait::ReadRel* Arena::CreateMaybeMessage<::substrait::ReadRel>(Arena*);
template<> ::substrait::ReadRel_ExtensionTable* Arena::CreateMaybeMessage<::substrait::ReadRel_ExtensionTable>(Arena*);
template<> ::substrait::ReadRel_LocalFiles* Arena::CreateMaybeMessage<::substrait::ReadRel_LocalFiles>(Arena*);
template<> ::substrait::ReadRel_LocalFiles_FileOrFiles* Arena::CreateMaybeMessage<::substrait::ReadRel_LocalFiles_FileOrFiles>(Arena*);
template<> ::substrait::ReadRel_NamedTable* Arena::CreateMaybeMessage<::substrait::ReadRel_NamedTable>(Arena*);
template<> ::substrait::ReadRel_VirtualTable* Arena::CreateMaybeMessage<::substrait::ReadRel_VirtualTable>(Arena*);
template<> ::substrait::Rel* Arena::CreateMaybeMessage<::substrait::Rel>(Arena*);
template<> ::substrait::RelCommon* Arena::CreateMaybeMessage<::substrait::RelCommon>(Arena*);
template<> ::substrait::RelCommon_Direct* Arena::CreateMaybeMessage<::substrait::RelCommon_Direct>(Arena*);
template<> ::substrait::RelCommon_Emit* Arena::CreateMaybeMessage<::substrait::RelCommon_Emit>(Arena*);
template<> ::substrait::RelCommon_Hint* Arena::CreateMaybeMessage<::substrait::RelCommon_Hint>(Arena*);
template<> ::substrait::RelCommon_Hint_RuntimeConstraint* Arena::CreateMaybeMessage<::substrait::RelCommon_Hint_RuntimeConstraint>(Arena*);
template<> ::substrait::RelCommon_Hint_Stats* Arena::CreateMaybeMessage<::substrait::RelCommon_Hint_Stats>(Arena*);
template<> ::substrait::RelRoot* Arena::CreateMaybeMessage<::substrait::RelRoot>(Arena*);
template<> ::substrait::SetRel* Arena::CreateMaybeMessage<::substrait::SetRel>(Arena*);
template<> ::substrait::SortRel* Arena::CreateMaybeMessage<::substrait::SortRel>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace substrait {
enum ReadRel_LocalFiles_FileOrFiles_FileFormat : int {
ReadRel_LocalFiles_FileOrFiles_FileFormat_FILE_FORMAT_UNSPECIFIED = 0,
ReadRel_LocalFiles_FileOrFiles_FileFormat_FILE_FORMAT_PARQUET = 1,
ReadRel_LocalFiles_FileOrFiles_FileFormat_ReadRel_LocalFiles_FileOrFiles_FileFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
ReadRel_LocalFiles_FileOrFiles_FileFormat_ReadRel_LocalFiles_FileOrFiles_FileFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
};
bool ReadRel_LocalFiles_FileOrFiles_FileFormat_IsValid(int value);
constexpr ReadRel_LocalFiles_FileOrFiles_FileFormat ReadRel_LocalFiles_FileOrFiles_FileFormat_FileFormat_MIN = ReadRel_LocalFiles_FileOrFiles_FileFormat_FILE_FORMAT_UNSPECIFIED;
constexpr ReadRel_LocalFiles_FileOrFiles_FileFormat ReadRel_LocalFiles_FileOrFiles_FileFormat_FileFormat_MAX = ReadRel_LocalFiles_FileOrFiles_FileFormat_FILE_FORMAT_PARQUET;
constexpr int ReadRel_LocalFiles_FileOrFiles_FileFormat_FileFormat_ARRAYSIZE = ReadRel_LocalFiles_FileOrFiles_FileFormat_FileFormat_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ReadRel_LocalFiles_FileOrFiles_FileFormat_descriptor();
template<typename T>
inline const std::string& ReadRel_LocalFiles_FileOrFiles_FileFormat_Name(T enum_t_value) {
static_assert(::std::is_same<T, ReadRel_LocalFiles_FileOrFiles_FileFormat>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ReadRel_LocalFiles_FileOrFiles_FileFormat_Name.");
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
ReadRel_LocalFiles_FileOrFiles_FileFormat_descriptor(), enum_t_value);
}
inline bool ReadRel_LocalFiles_FileOrFiles_FileFormat_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ReadRel_LocalFiles_FileOrFiles_FileFormat* value) {
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ReadRel_LocalFiles_FileOrFiles_FileFormat>(
ReadRel_LocalFiles_FileOrFiles_FileFormat_descriptor(), name, value);
}
enum JoinRel_JoinType : int {
JoinRel_JoinType_JOIN_TYPE_UNSPECIFIED = 0,
JoinRel_JoinType_JOIN_TYPE_INNER = 1,
JoinRel_JoinType_JOIN_TYPE_OUTER = 2,
JoinRel_JoinType_JOIN_TYPE_LEFT = 3,
JoinRel_JoinType_JOIN_TYPE_RIGHT = 4,
JoinRel_JoinType_JOIN_TYPE_SEMI = 5,
JoinRel_JoinType_JOIN_TYPE_ANTI = 6,
JoinRel_JoinType_JOIN_TYPE_SINGLE = 7,
JoinRel_JoinType_JoinRel_JoinType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
JoinRel_JoinType_JoinRel_JoinType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
};
bool JoinRel_JoinType_IsValid(int value);
constexpr JoinRel_JoinType JoinRel_JoinType_JoinType_MIN = JoinRel_JoinType_JOIN_TYPE_UNSPECIFIED;
constexpr JoinRel_JoinType JoinRel_JoinType_JoinType_MAX = JoinRel_JoinType_JOIN_TYPE_SINGLE;
constexpr int JoinRel_JoinType_JoinType_ARRAYSIZE = JoinRel_JoinType_JoinType_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* JoinRel_JoinType_descriptor();
template<typename T>
inline const std::string& JoinRel_JoinType_Name(T enum_t_value) {
static_assert(::std::is_same<T, JoinRel_JoinType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function JoinRel_JoinType_Name.");
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
JoinRel_JoinType_descriptor(), enum_t_value);
}
inline bool JoinRel_JoinType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, JoinRel_JoinType* value) {
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<JoinRel_JoinType>(
JoinRel_JoinType_descriptor(), name, value);
}
enum SetRel_SetOp : int {
SetRel_SetOp_SET_OP_UNSPECIFIED = 0,
SetRel_SetOp_SET_OP_MINUS_PRIMARY = 1,
SetRel_SetOp_SET_OP_MINUS_MULTISET = 2,
SetRel_SetOp_SET_OP_INTERSECTION_PRIMARY = 3,
SetRel_SetOp_SET_OP_INTERSECTION_MULTISET = 4,
SetRel_SetOp_SET_OP_UNION_DISTINCT = 5,
SetRel_SetOp_SET_OP_UNION_ALL = 6,
SetRel_SetOp_SetRel_SetOp_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
SetRel_SetOp_SetRel_SetOp_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
};
bool SetRel_SetOp_IsValid(int value);
constexpr SetRel_SetOp SetRel_SetOp_SetOp_MIN = SetRel_SetOp_SET_OP_UNSPECIFIED;
constexpr SetRel_SetOp SetRel_SetOp_SetOp_MAX = SetRel_SetOp_SET_OP_UNION_ALL;
constexpr int SetRel_SetOp_SetOp_ARRAYSIZE = SetRel_SetOp_SetOp_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SetRel_SetOp_descriptor();
template<typename T>
inline const std::string& SetRel_SetOp_Name(T enum_t_value) {
static_assert(::std::is_same<T, SetRel_SetOp>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function SetRel_SetOp_Name.");
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
SetRel_SetOp_descriptor(), enum_t_value);
}
inline bool SetRel_SetOp_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SetRel_SetOp* value) {
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SetRel_SetOp>(
SetRel_SetOp_descriptor(), name, value);
}
// ===================================================================
class RelCommon_Direct final :
public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:substrait.RelCommon.Direct) */ {
public:
inline RelCommon_Direct() : RelCommon_Direct(nullptr) {}
explicit constexpr RelCommon_Direct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
RelCommon_Direct(const RelCommon_Direct& from);
RelCommon_Direct(RelCommon_Direct&& from) noexcept
: RelCommon_Direct() {
*this = ::std::move(from);
}
inline RelCommon_Direct& operator=(const RelCommon_Direct& from) {
CopyFrom(from);
return *this;
}
inline RelCommon_Direct& operator=(RelCommon_Direct&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const RelCommon_Direct& default_instance() {
return *internal_default_instance();
}
static inline const RelCommon_Direct* internal_default_instance() {
return reinterpret_cast<const RelCommon_Direct*>(
&_RelCommon_Direct_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(RelCommon_Direct& a, RelCommon_Direct& b) {
a.Swap(&b);
}
inline void Swap(RelCommon_Direct* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(RelCommon_Direct* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
RelCommon_Direct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<RelCommon_Direct>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom;
inline void CopyFrom(const RelCommon_Direct& from) {
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from);
}
using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom;
void MergeFrom(const RelCommon_Direct& from) {
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from);
}
public:
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.RelCommon.Direct";
}
protected:
explicit RelCommon_Direct(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// @@protoc_insertion_point(class_scope:substrait.RelCommon.Direct)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class RelCommon_Emit final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.RelCommon.Emit) */ {
public:
inline RelCommon_Emit() : RelCommon_Emit(nullptr) {}
~RelCommon_Emit() override;
explicit constexpr RelCommon_Emit(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
RelCommon_Emit(const RelCommon_Emit& from);
RelCommon_Emit(RelCommon_Emit&& from) noexcept
: RelCommon_Emit() {
*this = ::std::move(from);
}
inline RelCommon_Emit& operator=(const RelCommon_Emit& from) {
CopyFrom(from);
return *this;
}
inline RelCommon_Emit& operator=(RelCommon_Emit&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const RelCommon_Emit& default_instance() {
return *internal_default_instance();
}
static inline const RelCommon_Emit* internal_default_instance() {
return reinterpret_cast<const RelCommon_Emit*>(
&_RelCommon_Emit_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(RelCommon_Emit& a, RelCommon_Emit& b) {
a.Swap(&b);
}
inline void Swap(RelCommon_Emit* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(RelCommon_Emit* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
RelCommon_Emit* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<RelCommon_Emit>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const RelCommon_Emit& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const RelCommon_Emit& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(RelCommon_Emit* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.RelCommon.Emit";
}
protected:
explicit RelCommon_Emit(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kOutputMappingFieldNumber = 1,
};
// repeated int32 output_mapping = 1 [json_name = "outputMapping"];
int output_mapping_size() const;
private:
int _internal_output_mapping_size() const;
public:
void clear_output_mapping();
private:
int32_t _internal_output_mapping(int index) const;
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
_internal_output_mapping() const;
void _internal_add_output_mapping(int32_t value);
::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
_internal_mutable_output_mapping();
public:
int32_t output_mapping(int index) const;
void set_output_mapping(int index, int32_t value);
void add_output_mapping(int32_t value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
output_mapping() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
mutable_output_mapping();
// @@protoc_insertion_point(class_scope:substrait.RelCommon.Emit)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > output_mapping_;
mutable std::atomic<int> _output_mapping_cached_byte_size_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class RelCommon_Hint_Stats final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.RelCommon.Hint.Stats) */ {
public:
inline RelCommon_Hint_Stats() : RelCommon_Hint_Stats(nullptr) {}
~RelCommon_Hint_Stats() override;
explicit constexpr RelCommon_Hint_Stats(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
RelCommon_Hint_Stats(const RelCommon_Hint_Stats& from);
RelCommon_Hint_Stats(RelCommon_Hint_Stats&& from) noexcept
: RelCommon_Hint_Stats() {
*this = ::std::move(from);
}
inline RelCommon_Hint_Stats& operator=(const RelCommon_Hint_Stats& from) {
CopyFrom(from);
return *this;
}
inline RelCommon_Hint_Stats& operator=(RelCommon_Hint_Stats&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const RelCommon_Hint_Stats& default_instance() {
return *internal_default_instance();
}
static inline const RelCommon_Hint_Stats* internal_default_instance() {
return reinterpret_cast<const RelCommon_Hint_Stats*>(
&_RelCommon_Hint_Stats_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
friend void swap(RelCommon_Hint_Stats& a, RelCommon_Hint_Stats& b) {
a.Swap(&b);
}
inline void Swap(RelCommon_Hint_Stats* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(RelCommon_Hint_Stats* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
RelCommon_Hint_Stats* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<RelCommon_Hint_Stats>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const RelCommon_Hint_Stats& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const RelCommon_Hint_Stats& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(RelCommon_Hint_Stats* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.RelCommon.Hint.Stats";
}
protected:
explicit RelCommon_Hint_Stats(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kAdvancedExtensionFieldNumber = 10,
kRowCountFieldNumber = 1,
kRecordSizeFieldNumber = 2,
};
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// double row_count = 1 [json_name = "rowCount"];
void clear_row_count();
double row_count() const;
void set_row_count(double value);
private:
double _internal_row_count() const;
void _internal_set_row_count(double value);
public:
// double record_size = 2 [json_name = "recordSize"];
void clear_record_size();
double record_size() const;
void set_record_size(double value);
private:
double _internal_record_size() const;
void _internal_set_record_size(double value);
public:
// @@protoc_insertion_point(class_scope:substrait.RelCommon.Hint.Stats)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
double row_count_;
double record_size_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class RelCommon_Hint_RuntimeConstraint final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.RelCommon.Hint.RuntimeConstraint) */ {
public:
inline RelCommon_Hint_RuntimeConstraint() : RelCommon_Hint_RuntimeConstraint(nullptr) {}
~RelCommon_Hint_RuntimeConstraint() override;
explicit constexpr RelCommon_Hint_RuntimeConstraint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
RelCommon_Hint_RuntimeConstraint(const RelCommon_Hint_RuntimeConstraint& from);
RelCommon_Hint_RuntimeConstraint(RelCommon_Hint_RuntimeConstraint&& from) noexcept
: RelCommon_Hint_RuntimeConstraint() {
*this = ::std::move(from);
}
inline RelCommon_Hint_RuntimeConstraint& operator=(const RelCommon_Hint_RuntimeConstraint& from) {
CopyFrom(from);
return *this;
}
inline RelCommon_Hint_RuntimeConstraint& operator=(RelCommon_Hint_RuntimeConstraint&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const RelCommon_Hint_RuntimeConstraint& default_instance() {
return *internal_default_instance();
}
static inline const RelCommon_Hint_RuntimeConstraint* internal_default_instance() {
return reinterpret_cast<const RelCommon_Hint_RuntimeConstraint*>(
&_RelCommon_Hint_RuntimeConstraint_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
friend void swap(RelCommon_Hint_RuntimeConstraint& a, RelCommon_Hint_RuntimeConstraint& b) {
a.Swap(&b);
}
inline void Swap(RelCommon_Hint_RuntimeConstraint* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(RelCommon_Hint_RuntimeConstraint* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
RelCommon_Hint_RuntimeConstraint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<RelCommon_Hint_RuntimeConstraint>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const RelCommon_Hint_RuntimeConstraint& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const RelCommon_Hint_RuntimeConstraint& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(RelCommon_Hint_RuntimeConstraint* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.RelCommon.Hint.RuntimeConstraint";
}
protected:
explicit RelCommon_Hint_RuntimeConstraint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kAdvancedExtensionFieldNumber = 10,
};
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// @@protoc_insertion_point(class_scope:substrait.RelCommon.Hint.RuntimeConstraint)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class RelCommon_Hint final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.RelCommon.Hint) */ {
public:
inline RelCommon_Hint() : RelCommon_Hint(nullptr) {}
~RelCommon_Hint() override;
explicit constexpr RelCommon_Hint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
RelCommon_Hint(const RelCommon_Hint& from);
RelCommon_Hint(RelCommon_Hint&& from) noexcept
: RelCommon_Hint() {
*this = ::std::move(from);
}
inline RelCommon_Hint& operator=(const RelCommon_Hint& from) {
CopyFrom(from);
return *this;
}
inline RelCommon_Hint& operator=(RelCommon_Hint&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const RelCommon_Hint& default_instance() {
return *internal_default_instance();
}
static inline const RelCommon_Hint* internal_default_instance() {
return reinterpret_cast<const RelCommon_Hint*>(
&_RelCommon_Hint_default_instance_);
}
static constexpr int kIndexInFileMessages =
4;
friend void swap(RelCommon_Hint& a, RelCommon_Hint& b) {
a.Swap(&b);
}
inline void Swap(RelCommon_Hint* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(RelCommon_Hint* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
RelCommon_Hint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<RelCommon_Hint>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const RelCommon_Hint& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const RelCommon_Hint& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(RelCommon_Hint* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.RelCommon.Hint";
}
protected:
explicit RelCommon_Hint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef RelCommon_Hint_Stats Stats;
typedef RelCommon_Hint_RuntimeConstraint RuntimeConstraint;
// accessors -------------------------------------------------------
enum : int {
kStatsFieldNumber = 1,
kConstraintFieldNumber = 2,
kAdvancedExtensionFieldNumber = 10,
};
// .substrait.RelCommon.Hint.Stats stats = 1 [json_name = "stats"];
bool has_stats() const;
private:
bool _internal_has_stats() const;
public:
void clear_stats();
const ::substrait::RelCommon_Hint_Stats& stats() const;
PROTOBUF_NODISCARD ::substrait::RelCommon_Hint_Stats* release_stats();
::substrait::RelCommon_Hint_Stats* mutable_stats();
void set_allocated_stats(::substrait::RelCommon_Hint_Stats* stats);
private:
const ::substrait::RelCommon_Hint_Stats& _internal_stats() const;
::substrait::RelCommon_Hint_Stats* _internal_mutable_stats();
public:
void unsafe_arena_set_allocated_stats(
::substrait::RelCommon_Hint_Stats* stats);
::substrait::RelCommon_Hint_Stats* unsafe_arena_release_stats();
// .substrait.RelCommon.Hint.RuntimeConstraint constraint = 2 [json_name = "constraint"];
bool has_constraint() const;
private:
bool _internal_has_constraint() const;
public:
void clear_constraint();
const ::substrait::RelCommon_Hint_RuntimeConstraint& constraint() const;
PROTOBUF_NODISCARD ::substrait::RelCommon_Hint_RuntimeConstraint* release_constraint();
::substrait::RelCommon_Hint_RuntimeConstraint* mutable_constraint();
void set_allocated_constraint(::substrait::RelCommon_Hint_RuntimeConstraint* constraint);
private:
const ::substrait::RelCommon_Hint_RuntimeConstraint& _internal_constraint() const;
::substrait::RelCommon_Hint_RuntimeConstraint* _internal_mutable_constraint();
public:
void unsafe_arena_set_allocated_constraint(
::substrait::RelCommon_Hint_RuntimeConstraint* constraint);
::substrait::RelCommon_Hint_RuntimeConstraint* unsafe_arena_release_constraint();
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// @@protoc_insertion_point(class_scope:substrait.RelCommon.Hint)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::substrait::RelCommon_Hint_Stats* stats_;
::substrait::RelCommon_Hint_RuntimeConstraint* constraint_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class RelCommon final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.RelCommon) */ {
public:
inline RelCommon() : RelCommon(nullptr) {}
~RelCommon() override;
explicit constexpr RelCommon(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
RelCommon(const RelCommon& from);
RelCommon(RelCommon&& from) noexcept
: RelCommon() {
*this = ::std::move(from);
}
inline RelCommon& operator=(const RelCommon& from) {
CopyFrom(from);
return *this;
}
inline RelCommon& operator=(RelCommon&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const RelCommon& default_instance() {
return *internal_default_instance();
}
enum EmitKindCase {
kDirect = 1,
kEmit = 2,
EMIT_KIND_NOT_SET = 0,
};
static inline const RelCommon* internal_default_instance() {
return reinterpret_cast<const RelCommon*>(
&_RelCommon_default_instance_);
}
static constexpr int kIndexInFileMessages =
5;
friend void swap(RelCommon& a, RelCommon& b) {
a.Swap(&b);
}
inline void Swap(RelCommon* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(RelCommon* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
RelCommon* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<RelCommon>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const RelCommon& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const RelCommon& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(RelCommon* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.RelCommon";
}
protected:
explicit RelCommon(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef RelCommon_Direct Direct;
typedef RelCommon_Emit Emit;
typedef RelCommon_Hint Hint;
// accessors -------------------------------------------------------
enum : int {
kHintFieldNumber = 3,
kAdvancedExtensionFieldNumber = 4,
kDirectFieldNumber = 1,
kEmitFieldNumber = 2,
};
// .substrait.RelCommon.Hint hint = 3 [json_name = "hint"];
bool has_hint() const;
private:
bool _internal_has_hint() const;
public:
void clear_hint();
const ::substrait::RelCommon_Hint& hint() const;
PROTOBUF_NODISCARD ::substrait::RelCommon_Hint* release_hint();
::substrait::RelCommon_Hint* mutable_hint();
void set_allocated_hint(::substrait::RelCommon_Hint* hint);
private:
const ::substrait::RelCommon_Hint& _internal_hint() const;
::substrait::RelCommon_Hint* _internal_mutable_hint();
public:
void unsafe_arena_set_allocated_hint(
::substrait::RelCommon_Hint* hint);
::substrait::RelCommon_Hint* unsafe_arena_release_hint();
// .substrait.extensions.AdvancedExtension advanced_extension = 4 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// .substrait.RelCommon.Direct direct = 1 [json_name = "direct"];
bool has_direct() const;
private:
bool _internal_has_direct() const;
public:
void clear_direct();
const ::substrait::RelCommon_Direct& direct() const;
PROTOBUF_NODISCARD ::substrait::RelCommon_Direct* release_direct();
::substrait::RelCommon_Direct* mutable_direct();
void set_allocated_direct(::substrait::RelCommon_Direct* direct);
private:
const ::substrait::RelCommon_Direct& _internal_direct() const;
::substrait::RelCommon_Direct* _internal_mutable_direct();
public:
void unsafe_arena_set_allocated_direct(
::substrait::RelCommon_Direct* direct);
::substrait::RelCommon_Direct* unsafe_arena_release_direct();
// .substrait.RelCommon.Emit emit = 2 [json_name = "emit"];
bool has_emit() const;
private:
bool _internal_has_emit() const;
public:
void clear_emit();
const ::substrait::RelCommon_Emit& emit() const;
PROTOBUF_NODISCARD ::substrait::RelCommon_Emit* release_emit();
::substrait::RelCommon_Emit* mutable_emit();
void set_allocated_emit(::substrait::RelCommon_Emit* emit);
private:
const ::substrait::RelCommon_Emit& _internal_emit() const;
::substrait::RelCommon_Emit* _internal_mutable_emit();
public:
void unsafe_arena_set_allocated_emit(
::substrait::RelCommon_Emit* emit);
::substrait::RelCommon_Emit* unsafe_arena_release_emit();
void clear_emit_kind();
EmitKindCase emit_kind_case() const;
// @@protoc_insertion_point(class_scope:substrait.RelCommon)
private:
class _Internal;
void set_has_direct();
void set_has_emit();
inline bool has_emit_kind() const;
inline void clear_has_emit_kind();
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::substrait::RelCommon_Hint* hint_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
union EmitKindUnion {
constexpr EmitKindUnion() : _constinit_{} {}
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
::substrait::RelCommon_Direct* direct_;
::substrait::RelCommon_Emit* emit_;
} emit_kind_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1];
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class ReadRel_NamedTable final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.ReadRel.NamedTable) */ {
public:
inline ReadRel_NamedTable() : ReadRel_NamedTable(nullptr) {}
~ReadRel_NamedTable() override;
explicit constexpr ReadRel_NamedTable(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ReadRel_NamedTable(const ReadRel_NamedTable& from);
ReadRel_NamedTable(ReadRel_NamedTable&& from) noexcept
: ReadRel_NamedTable() {
*this = ::std::move(from);
}
inline ReadRel_NamedTable& operator=(const ReadRel_NamedTable& from) {
CopyFrom(from);
return *this;
}
inline ReadRel_NamedTable& operator=(ReadRel_NamedTable&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ReadRel_NamedTable& default_instance() {
return *internal_default_instance();
}
static inline const ReadRel_NamedTable* internal_default_instance() {
return reinterpret_cast<const ReadRel_NamedTable*>(
&_ReadRel_NamedTable_default_instance_);
}
static constexpr int kIndexInFileMessages =
6;
friend void swap(ReadRel_NamedTable& a, ReadRel_NamedTable& b) {
a.Swap(&b);
}
inline void Swap(ReadRel_NamedTable* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ReadRel_NamedTable* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ReadRel_NamedTable* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ReadRel_NamedTable>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ReadRel_NamedTable& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const ReadRel_NamedTable& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ReadRel_NamedTable* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.ReadRel.NamedTable";
}
protected:
explicit ReadRel_NamedTable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kNamesFieldNumber = 1,
kAdvancedExtensionFieldNumber = 10,
};
// repeated string names = 1 [json_name = "names"];
int names_size() const;
private:
int _internal_names_size() const;
public:
void clear_names();
const std::string& names(int index) const;
std::string* mutable_names(int index);
void set_names(int index, const std::string& value);
void set_names(int index, std::string&& value);
void set_names(int index, const char* value);
void set_names(int index, const char* value, size_t size);
std::string* add_names();
void add_names(const std::string& value);
void add_names(std::string&& value);
void add_names(const char* value);
void add_names(const char* value, size_t size);
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& names() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_names();
private:
const std::string& _internal_names(int index) const;
std::string* _internal_add_names();
public:
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// @@protoc_insertion_point(class_scope:substrait.ReadRel.NamedTable)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> names_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class ReadRel_VirtualTable final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.ReadRel.VirtualTable) */ {
public:
inline ReadRel_VirtualTable() : ReadRel_VirtualTable(nullptr) {}
~ReadRel_VirtualTable() override;
explicit constexpr ReadRel_VirtualTable(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ReadRel_VirtualTable(const ReadRel_VirtualTable& from);
ReadRel_VirtualTable(ReadRel_VirtualTable&& from) noexcept
: ReadRel_VirtualTable() {
*this = ::std::move(from);
}
inline ReadRel_VirtualTable& operator=(const ReadRel_VirtualTable& from) {
CopyFrom(from);
return *this;
}
inline ReadRel_VirtualTable& operator=(ReadRel_VirtualTable&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ReadRel_VirtualTable& default_instance() {
return *internal_default_instance();
}
static inline const ReadRel_VirtualTable* internal_default_instance() {
return reinterpret_cast<const ReadRel_VirtualTable*>(
&_ReadRel_VirtualTable_default_instance_);
}
static constexpr int kIndexInFileMessages =
7;
friend void swap(ReadRel_VirtualTable& a, ReadRel_VirtualTable& b) {
a.Swap(&b);
}
inline void Swap(ReadRel_VirtualTable* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ReadRel_VirtualTable* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ReadRel_VirtualTable* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ReadRel_VirtualTable>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ReadRel_VirtualTable& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const ReadRel_VirtualTable& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ReadRel_VirtualTable* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.ReadRel.VirtualTable";
}
protected:
explicit ReadRel_VirtualTable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kValuesFieldNumber = 1,
};
// repeated .substrait.Expression.Literal.Struct values = 1 [json_name = "values"];
int values_size() const;
private:
int _internal_values_size() const;
public:
void clear_values();
::substrait::Expression_Literal_Struct* mutable_values(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression_Literal_Struct >*
mutable_values();
private:
const ::substrait::Expression_Literal_Struct& _internal_values(int index) const;
::substrait::Expression_Literal_Struct* _internal_add_values();
public:
const ::substrait::Expression_Literal_Struct& values(int index) const;
::substrait::Expression_Literal_Struct* add_values();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression_Literal_Struct >&
values() const;
// @@protoc_insertion_point(class_scope:substrait.ReadRel.VirtualTable)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression_Literal_Struct > values_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class ReadRel_ExtensionTable final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.ReadRel.ExtensionTable) */ {
public:
inline ReadRel_ExtensionTable() : ReadRel_ExtensionTable(nullptr) {}
~ReadRel_ExtensionTable() override;
explicit constexpr ReadRel_ExtensionTable(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ReadRel_ExtensionTable(const ReadRel_ExtensionTable& from);
ReadRel_ExtensionTable(ReadRel_ExtensionTable&& from) noexcept
: ReadRel_ExtensionTable() {
*this = ::std::move(from);
}
inline ReadRel_ExtensionTable& operator=(const ReadRel_ExtensionTable& from) {
CopyFrom(from);
return *this;
}
inline ReadRel_ExtensionTable& operator=(ReadRel_ExtensionTable&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ReadRel_ExtensionTable& default_instance() {
return *internal_default_instance();
}
static inline const ReadRel_ExtensionTable* internal_default_instance() {
return reinterpret_cast<const ReadRel_ExtensionTable*>(
&_ReadRel_ExtensionTable_default_instance_);
}
static constexpr int kIndexInFileMessages =
8;
friend void swap(ReadRel_ExtensionTable& a, ReadRel_ExtensionTable& b) {
a.Swap(&b);
}
inline void Swap(ReadRel_ExtensionTable* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ReadRel_ExtensionTable* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ReadRel_ExtensionTable* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ReadRel_ExtensionTable>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ReadRel_ExtensionTable& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const ReadRel_ExtensionTable& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ReadRel_ExtensionTable* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.ReadRel.ExtensionTable";
}
protected:
explicit ReadRel_ExtensionTable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kDetailFieldNumber = 1,
};
// .google.protobuf.Any detail = 1 [json_name = "detail"];
bool has_detail() const;
private:
bool _internal_has_detail() const;
public:
void clear_detail();
const ::PROTOBUF_NAMESPACE_ID::Any& detail() const;
PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Any* release_detail();
::PROTOBUF_NAMESPACE_ID::Any* mutable_detail();
void set_allocated_detail(::PROTOBUF_NAMESPACE_ID::Any* detail);
private:
const ::PROTOBUF_NAMESPACE_ID::Any& _internal_detail() const;
::PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_detail();
public:
void unsafe_arena_set_allocated_detail(
::PROTOBUF_NAMESPACE_ID::Any* detail);
::PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_detail();
// @@protoc_insertion_point(class_scope:substrait.ReadRel.ExtensionTable)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::Any* detail_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class ReadRel_LocalFiles_FileOrFiles final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.ReadRel.LocalFiles.FileOrFiles) */ {
public:
inline ReadRel_LocalFiles_FileOrFiles() : ReadRel_LocalFiles_FileOrFiles(nullptr) {}
~ReadRel_LocalFiles_FileOrFiles() override;
explicit constexpr ReadRel_LocalFiles_FileOrFiles(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ReadRel_LocalFiles_FileOrFiles(const ReadRel_LocalFiles_FileOrFiles& from);
ReadRel_LocalFiles_FileOrFiles(ReadRel_LocalFiles_FileOrFiles&& from) noexcept
: ReadRel_LocalFiles_FileOrFiles() {
*this = ::std::move(from);
}
inline ReadRel_LocalFiles_FileOrFiles& operator=(const ReadRel_LocalFiles_FileOrFiles& from) {
CopyFrom(from);
return *this;
}
inline ReadRel_LocalFiles_FileOrFiles& operator=(ReadRel_LocalFiles_FileOrFiles&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ReadRel_LocalFiles_FileOrFiles& default_instance() {
return *internal_default_instance();
}
enum PathTypeCase {
kUriPath = 1,
kUriPathGlob = 2,
kUriFile = 3,
kUriFolder = 4,
PATH_TYPE_NOT_SET = 0,
};
static inline const ReadRel_LocalFiles_FileOrFiles* internal_default_instance() {
return reinterpret_cast<const ReadRel_LocalFiles_FileOrFiles*>(
&_ReadRel_LocalFiles_FileOrFiles_default_instance_);
}
static constexpr int kIndexInFileMessages =
9;
friend void swap(ReadRel_LocalFiles_FileOrFiles& a, ReadRel_LocalFiles_FileOrFiles& b) {
a.Swap(&b);
}
inline void Swap(ReadRel_LocalFiles_FileOrFiles* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ReadRel_LocalFiles_FileOrFiles* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ReadRel_LocalFiles_FileOrFiles* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ReadRel_LocalFiles_FileOrFiles>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ReadRel_LocalFiles_FileOrFiles& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const ReadRel_LocalFiles_FileOrFiles& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ReadRel_LocalFiles_FileOrFiles* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.ReadRel.LocalFiles.FileOrFiles";
}
protected:
explicit ReadRel_LocalFiles_FileOrFiles(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef ReadRel_LocalFiles_FileOrFiles_FileFormat FileFormat;
static constexpr FileFormat FILE_FORMAT_UNSPECIFIED =
ReadRel_LocalFiles_FileOrFiles_FileFormat_FILE_FORMAT_UNSPECIFIED;
static constexpr FileFormat FILE_FORMAT_PARQUET =
ReadRel_LocalFiles_FileOrFiles_FileFormat_FILE_FORMAT_PARQUET;
static inline bool FileFormat_IsValid(int value) {
return ReadRel_LocalFiles_FileOrFiles_FileFormat_IsValid(value);
}
static constexpr FileFormat FileFormat_MIN =
ReadRel_LocalFiles_FileOrFiles_FileFormat_FileFormat_MIN;
static constexpr FileFormat FileFormat_MAX =
ReadRel_LocalFiles_FileOrFiles_FileFormat_FileFormat_MAX;
static constexpr int FileFormat_ARRAYSIZE =
ReadRel_LocalFiles_FileOrFiles_FileFormat_FileFormat_ARRAYSIZE;
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
FileFormat_descriptor() {
return ReadRel_LocalFiles_FileOrFiles_FileFormat_descriptor();
}
template<typename T>
static inline const std::string& FileFormat_Name(T enum_t_value) {
static_assert(::std::is_same<T, FileFormat>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function FileFormat_Name.");
return ReadRel_LocalFiles_FileOrFiles_FileFormat_Name(enum_t_value);
}
static inline bool FileFormat_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
FileFormat* value) {
return ReadRel_LocalFiles_FileOrFiles_FileFormat_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kFormatFieldNumber = 5,
kPartitionIndexFieldNumber = 6,
kStartFieldNumber = 7,
kLengthFieldNumber = 8,
kUriPathFieldNumber = 1,
kUriPathGlobFieldNumber = 2,
kUriFileFieldNumber = 3,
kUriFolderFieldNumber = 4,
};
// .substrait.ReadRel.LocalFiles.FileOrFiles.FileFormat format = 5 [json_name = "format"];
void clear_format();
::substrait::ReadRel_LocalFiles_FileOrFiles_FileFormat format() const;
void set_format(::substrait::ReadRel_LocalFiles_FileOrFiles_FileFormat value);
private:
::substrait::ReadRel_LocalFiles_FileOrFiles_FileFormat _internal_format() const;
void _internal_set_format(::substrait::ReadRel_LocalFiles_FileOrFiles_FileFormat value);
public:
// uint64 partition_index = 6 [json_name = "partitionIndex"];
void clear_partition_index();
uint64_t partition_index() const;
void set_partition_index(uint64_t value);
private:
uint64_t _internal_partition_index() const;
void _internal_set_partition_index(uint64_t value);
public:
// uint64 start = 7 [json_name = "start"];
void clear_start();
uint64_t start() const;
void set_start(uint64_t value);
private:
uint64_t _internal_start() const;
void _internal_set_start(uint64_t value);
public:
// uint64 length = 8 [json_name = "length"];
void clear_length();
uint64_t length() const;
void set_length(uint64_t value);
private:
uint64_t _internal_length() const;
void _internal_set_length(uint64_t value);
public:
// string uri_path = 1 [json_name = "uriPath"];
bool has_uri_path() const;
private:
bool _internal_has_uri_path() const;
public:
void clear_uri_path();
const std::string& uri_path() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_uri_path(ArgT0&& arg0, ArgT... args);
std::string* mutable_uri_path();
PROTOBUF_NODISCARD std::string* release_uri_path();
void set_allocated_uri_path(std::string* uri_path);
private:
const std::string& _internal_uri_path() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri_path(const std::string& value);
std::string* _internal_mutable_uri_path();
public:
// string uri_path_glob = 2 [json_name = "uriPathGlob"];
bool has_uri_path_glob() const;
private:
bool _internal_has_uri_path_glob() const;
public:
void clear_uri_path_glob();
const std::string& uri_path_glob() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_uri_path_glob(ArgT0&& arg0, ArgT... args);
std::string* mutable_uri_path_glob();
PROTOBUF_NODISCARD std::string* release_uri_path_glob();
void set_allocated_uri_path_glob(std::string* uri_path_glob);
private:
const std::string& _internal_uri_path_glob() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri_path_glob(const std::string& value);
std::string* _internal_mutable_uri_path_glob();
public:
// string uri_file = 3 [json_name = "uriFile"];
bool has_uri_file() const;
private:
bool _internal_has_uri_file() const;
public:
void clear_uri_file();
const std::string& uri_file() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_uri_file(ArgT0&& arg0, ArgT... args);
std::string* mutable_uri_file();
PROTOBUF_NODISCARD std::string* release_uri_file();
void set_allocated_uri_file(std::string* uri_file);
private:
const std::string& _internal_uri_file() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri_file(const std::string& value);
std::string* _internal_mutable_uri_file();
public:
// string uri_folder = 4 [json_name = "uriFolder"];
bool has_uri_folder() const;
private:
bool _internal_has_uri_folder() const;
public:
void clear_uri_folder();
const std::string& uri_folder() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_uri_folder(ArgT0&& arg0, ArgT... args);
std::string* mutable_uri_folder();
PROTOBUF_NODISCARD std::string* release_uri_folder();
void set_allocated_uri_folder(std::string* uri_folder);
private:
const std::string& _internal_uri_folder() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri_folder(const std::string& value);
std::string* _internal_mutable_uri_folder();
public:
void clear_path_type();
PathTypeCase path_type_case() const;
// @@protoc_insertion_point(class_scope:substrait.ReadRel.LocalFiles.FileOrFiles)
private:
class _Internal;
void set_has_uri_path();
void set_has_uri_path_glob();
void set_has_uri_file();
void set_has_uri_folder();
inline bool has_path_type() const;
inline void clear_has_path_type();
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
int format_;
uint64_t partition_index_;
uint64_t start_;
uint64_t length_;
union PathTypeUnion {
constexpr PathTypeUnion() : _constinit_{} {}
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_path_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_path_glob_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_file_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_folder_;
} path_type_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1];
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class ReadRel_LocalFiles final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.ReadRel.LocalFiles) */ {
public:
inline ReadRel_LocalFiles() : ReadRel_LocalFiles(nullptr) {}
~ReadRel_LocalFiles() override;
explicit constexpr ReadRel_LocalFiles(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ReadRel_LocalFiles(const ReadRel_LocalFiles& from);
ReadRel_LocalFiles(ReadRel_LocalFiles&& from) noexcept
: ReadRel_LocalFiles() {
*this = ::std::move(from);
}
inline ReadRel_LocalFiles& operator=(const ReadRel_LocalFiles& from) {
CopyFrom(from);
return *this;
}
inline ReadRel_LocalFiles& operator=(ReadRel_LocalFiles&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ReadRel_LocalFiles& default_instance() {
return *internal_default_instance();
}
static inline const ReadRel_LocalFiles* internal_default_instance() {
return reinterpret_cast<const ReadRel_LocalFiles*>(
&_ReadRel_LocalFiles_default_instance_);
}
static constexpr int kIndexInFileMessages =
10;
friend void swap(ReadRel_LocalFiles& a, ReadRel_LocalFiles& b) {
a.Swap(&b);
}
inline void Swap(ReadRel_LocalFiles* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ReadRel_LocalFiles* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ReadRel_LocalFiles* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ReadRel_LocalFiles>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ReadRel_LocalFiles& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const ReadRel_LocalFiles& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ReadRel_LocalFiles* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.ReadRel.LocalFiles";
}
protected:
explicit ReadRel_LocalFiles(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef ReadRel_LocalFiles_FileOrFiles FileOrFiles;
// accessors -------------------------------------------------------
enum : int {
kItemsFieldNumber = 1,
kAdvancedExtensionFieldNumber = 10,
};
// repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1 [json_name = "items"];
int items_size() const;
private:
int _internal_items_size() const;
public:
void clear_items();
::substrait::ReadRel_LocalFiles_FileOrFiles* mutable_items(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::ReadRel_LocalFiles_FileOrFiles >*
mutable_items();
private:
const ::substrait::ReadRel_LocalFiles_FileOrFiles& _internal_items(int index) const;
::substrait::ReadRel_LocalFiles_FileOrFiles* _internal_add_items();
public:
const ::substrait::ReadRel_LocalFiles_FileOrFiles& items(int index) const;
::substrait::ReadRel_LocalFiles_FileOrFiles* add_items();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::ReadRel_LocalFiles_FileOrFiles >&
items() const;
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// @@protoc_insertion_point(class_scope:substrait.ReadRel.LocalFiles)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::ReadRel_LocalFiles_FileOrFiles > items_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class ReadRel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.ReadRel) */ {
public:
inline ReadRel() : ReadRel(nullptr) {}
~ReadRel() override;
explicit constexpr ReadRel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ReadRel(const ReadRel& from);
ReadRel(ReadRel&& from) noexcept
: ReadRel() {
*this = ::std::move(from);
}
inline ReadRel& operator=(const ReadRel& from) {
CopyFrom(from);
return *this;
}
inline ReadRel& operator=(ReadRel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ReadRel& default_instance() {
return *internal_default_instance();
}
enum ReadTypeCase {
kVirtualTable = 5,
kLocalFiles = 6,
kNamedTable = 7,
kExtensionTable = 8,
READ_TYPE_NOT_SET = 0,
};
static inline const ReadRel* internal_default_instance() {
return reinterpret_cast<const ReadRel*>(
&_ReadRel_default_instance_);
}
static constexpr int kIndexInFileMessages =
11;
friend void swap(ReadRel& a, ReadRel& b) {
a.Swap(&b);
}
inline void Swap(ReadRel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ReadRel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ReadRel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ReadRel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ReadRel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const ReadRel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ReadRel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.ReadRel";
}
protected:
explicit ReadRel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef ReadRel_NamedTable NamedTable;
typedef ReadRel_VirtualTable VirtualTable;
typedef ReadRel_ExtensionTable ExtensionTable;
typedef ReadRel_LocalFiles LocalFiles;
// accessors -------------------------------------------------------
enum : int {
kCommonFieldNumber = 1,
kBaseSchemaFieldNumber = 2,
kFilterFieldNumber = 3,
kProjectionFieldNumber = 4,
kAdvancedExtensionFieldNumber = 10,
kVirtualTableFieldNumber = 5,
kLocalFilesFieldNumber = 6,
kNamedTableFieldNumber = 7,
kExtensionTableFieldNumber = 8,
};
// .substrait.RelCommon common = 1 [json_name = "common"];
bool has_common() const;
private:
bool _internal_has_common() const;
public:
void clear_common();
const ::substrait::RelCommon& common() const;
PROTOBUF_NODISCARD ::substrait::RelCommon* release_common();
::substrait::RelCommon* mutable_common();
void set_allocated_common(::substrait::RelCommon* common);
private:
const ::substrait::RelCommon& _internal_common() const;
::substrait::RelCommon* _internal_mutable_common();
public:
void unsafe_arena_set_allocated_common(
::substrait::RelCommon* common);
::substrait::RelCommon* unsafe_arena_release_common();
// .substrait.NamedStruct base_schema = 2 [json_name = "baseSchema"];
bool has_base_schema() const;
private:
bool _internal_has_base_schema() const;
public:
void clear_base_schema();
const ::substrait::NamedStruct& base_schema() const;
PROTOBUF_NODISCARD ::substrait::NamedStruct* release_base_schema();
::substrait::NamedStruct* mutable_base_schema();
void set_allocated_base_schema(::substrait::NamedStruct* base_schema);
private:
const ::substrait::NamedStruct& _internal_base_schema() const;
::substrait::NamedStruct* _internal_mutable_base_schema();
public:
void unsafe_arena_set_allocated_base_schema(
::substrait::NamedStruct* base_schema);
::substrait::NamedStruct* unsafe_arena_release_base_schema();
// .substrait.Expression filter = 3 [json_name = "filter"];
bool has_filter() const;
private:
bool _internal_has_filter() const;
public:
void clear_filter();
const ::substrait::Expression& filter() const;
PROTOBUF_NODISCARD ::substrait::Expression* release_filter();
::substrait::Expression* mutable_filter();
void set_allocated_filter(::substrait::Expression* filter);
private:
const ::substrait::Expression& _internal_filter() const;
::substrait::Expression* _internal_mutable_filter();
public:
void unsafe_arena_set_allocated_filter(
::substrait::Expression* filter);
::substrait::Expression* unsafe_arena_release_filter();
// .substrait.Expression.MaskExpression projection = 4 [json_name = "projection"];
bool has_projection() const;
private:
bool _internal_has_projection() const;
public:
void clear_projection();
const ::substrait::Expression_MaskExpression& projection() const;
PROTOBUF_NODISCARD ::substrait::Expression_MaskExpression* release_projection();
::substrait::Expression_MaskExpression* mutable_projection();
void set_allocated_projection(::substrait::Expression_MaskExpression* projection);
private:
const ::substrait::Expression_MaskExpression& _internal_projection() const;
::substrait::Expression_MaskExpression* _internal_mutable_projection();
public:
void unsafe_arena_set_allocated_projection(
::substrait::Expression_MaskExpression* projection);
::substrait::Expression_MaskExpression* unsafe_arena_release_projection();
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// .substrait.ReadRel.VirtualTable virtual_table = 5 [json_name = "virtualTable"];
bool has_virtual_table() const;
private:
bool _internal_has_virtual_table() const;
public:
void clear_virtual_table();
const ::substrait::ReadRel_VirtualTable& virtual_table() const;
PROTOBUF_NODISCARD ::substrait::ReadRel_VirtualTable* release_virtual_table();
::substrait::ReadRel_VirtualTable* mutable_virtual_table();
void set_allocated_virtual_table(::substrait::ReadRel_VirtualTable* virtual_table);
private:
const ::substrait::ReadRel_VirtualTable& _internal_virtual_table() const;
::substrait::ReadRel_VirtualTable* _internal_mutable_virtual_table();
public:
void unsafe_arena_set_allocated_virtual_table(
::substrait::ReadRel_VirtualTable* virtual_table);
::substrait::ReadRel_VirtualTable* unsafe_arena_release_virtual_table();
// .substrait.ReadRel.LocalFiles local_files = 6 [json_name = "localFiles"];
bool has_local_files() const;
private:
bool _internal_has_local_files() const;
public:
void clear_local_files();
const ::substrait::ReadRel_LocalFiles& local_files() const;
PROTOBUF_NODISCARD ::substrait::ReadRel_LocalFiles* release_local_files();
::substrait::ReadRel_LocalFiles* mutable_local_files();
void set_allocated_local_files(::substrait::ReadRel_LocalFiles* local_files);
private:
const ::substrait::ReadRel_LocalFiles& _internal_local_files() const;
::substrait::ReadRel_LocalFiles* _internal_mutable_local_files();
public:
void unsafe_arena_set_allocated_local_files(
::substrait::ReadRel_LocalFiles* local_files);
::substrait::ReadRel_LocalFiles* unsafe_arena_release_local_files();
// .substrait.ReadRel.NamedTable named_table = 7 [json_name = "namedTable"];
bool has_named_table() const;
private:
bool _internal_has_named_table() const;
public:
void clear_named_table();
const ::substrait::ReadRel_NamedTable& named_table() const;
PROTOBUF_NODISCARD ::substrait::ReadRel_NamedTable* release_named_table();
::substrait::ReadRel_NamedTable* mutable_named_table();
void set_allocated_named_table(::substrait::ReadRel_NamedTable* named_table);
private:
const ::substrait::ReadRel_NamedTable& _internal_named_table() const;
::substrait::ReadRel_NamedTable* _internal_mutable_named_table();
public:
void unsafe_arena_set_allocated_named_table(
::substrait::ReadRel_NamedTable* named_table);
::substrait::ReadRel_NamedTable* unsafe_arena_release_named_table();
// .substrait.ReadRel.ExtensionTable extension_table = 8 [json_name = "extensionTable"];
bool has_extension_table() const;
private:
bool _internal_has_extension_table() const;
public:
void clear_extension_table();
const ::substrait::ReadRel_ExtensionTable& extension_table() const;
PROTOBUF_NODISCARD ::substrait::ReadRel_ExtensionTable* release_extension_table();
::substrait::ReadRel_ExtensionTable* mutable_extension_table();
void set_allocated_extension_table(::substrait::ReadRel_ExtensionTable* extension_table);
private:
const ::substrait::ReadRel_ExtensionTable& _internal_extension_table() const;
::substrait::ReadRel_ExtensionTable* _internal_mutable_extension_table();
public:
void unsafe_arena_set_allocated_extension_table(
::substrait::ReadRel_ExtensionTable* extension_table);
::substrait::ReadRel_ExtensionTable* unsafe_arena_release_extension_table();
void clear_read_type();
ReadTypeCase read_type_case() const;
// @@protoc_insertion_point(class_scope:substrait.ReadRel)
private:
class _Internal;
void set_has_virtual_table();
void set_has_local_files();
void set_has_named_table();
void set_has_extension_table();
inline bool has_read_type() const;
inline void clear_has_read_type();
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::substrait::RelCommon* common_;
::substrait::NamedStruct* base_schema_;
::substrait::Expression* filter_;
::substrait::Expression_MaskExpression* projection_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
union ReadTypeUnion {
constexpr ReadTypeUnion() : _constinit_{} {}
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
::substrait::ReadRel_VirtualTable* virtual_table_;
::substrait::ReadRel_LocalFiles* local_files_;
::substrait::ReadRel_NamedTable* named_table_;
::substrait::ReadRel_ExtensionTable* extension_table_;
} read_type_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1];
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class ProjectRel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.ProjectRel) */ {
public:
inline ProjectRel() : ProjectRel(nullptr) {}
~ProjectRel() override;
explicit constexpr ProjectRel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ProjectRel(const ProjectRel& from);
ProjectRel(ProjectRel&& from) noexcept
: ProjectRel() {
*this = ::std::move(from);
}
inline ProjectRel& operator=(const ProjectRel& from) {
CopyFrom(from);
return *this;
}
inline ProjectRel& operator=(ProjectRel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ProjectRel& default_instance() {
return *internal_default_instance();
}
static inline const ProjectRel* internal_default_instance() {
return reinterpret_cast<const ProjectRel*>(
&_ProjectRel_default_instance_);
}
static constexpr int kIndexInFileMessages =
12;
friend void swap(ProjectRel& a, ProjectRel& b) {
a.Swap(&b);
}
inline void Swap(ProjectRel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ProjectRel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ProjectRel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ProjectRel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ProjectRel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const ProjectRel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ProjectRel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.ProjectRel";
}
protected:
explicit ProjectRel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kExpressionsFieldNumber = 3,
kCommonFieldNumber = 1,
kInputFieldNumber = 2,
kAdvancedExtensionFieldNumber = 10,
};
// repeated .substrait.Expression expressions = 3 [json_name = "expressions"];
int expressions_size() const;
private:
int _internal_expressions_size() const;
public:
void clear_expressions();
::substrait::Expression* mutable_expressions(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression >*
mutable_expressions();
private:
const ::substrait::Expression& _internal_expressions(int index) const;
::substrait::Expression* _internal_add_expressions();
public:
const ::substrait::Expression& expressions(int index) const;
::substrait::Expression* add_expressions();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression >&
expressions() const;
// .substrait.RelCommon common = 1 [json_name = "common"];
bool has_common() const;
private:
bool _internal_has_common() const;
public:
void clear_common();
const ::substrait::RelCommon& common() const;
PROTOBUF_NODISCARD ::substrait::RelCommon* release_common();
::substrait::RelCommon* mutable_common();
void set_allocated_common(::substrait::RelCommon* common);
private:
const ::substrait::RelCommon& _internal_common() const;
::substrait::RelCommon* _internal_mutable_common();
public:
void unsafe_arena_set_allocated_common(
::substrait::RelCommon* common);
::substrait::RelCommon* unsafe_arena_release_common();
// .substrait.Rel input = 2 [json_name = "input"];
bool has_input() const;
private:
bool _internal_has_input() const;
public:
void clear_input();
const ::substrait::Rel& input() const;
PROTOBUF_NODISCARD ::substrait::Rel* release_input();
::substrait::Rel* mutable_input();
void set_allocated_input(::substrait::Rel* input);
private:
const ::substrait::Rel& _internal_input() const;
::substrait::Rel* _internal_mutable_input();
public:
void unsafe_arena_set_allocated_input(
::substrait::Rel* input);
::substrait::Rel* unsafe_arena_release_input();
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// @@protoc_insertion_point(class_scope:substrait.ProjectRel)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression > expressions_;
::substrait::RelCommon* common_;
::substrait::Rel* input_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class JoinRel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.JoinRel) */ {
public:
inline JoinRel() : JoinRel(nullptr) {}
~JoinRel() override;
explicit constexpr JoinRel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
JoinRel(const JoinRel& from);
JoinRel(JoinRel&& from) noexcept
: JoinRel() {
*this = ::std::move(from);
}
inline JoinRel& operator=(const JoinRel& from) {
CopyFrom(from);
return *this;
}
inline JoinRel& operator=(JoinRel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const JoinRel& default_instance() {
return *internal_default_instance();
}
static inline const JoinRel* internal_default_instance() {
return reinterpret_cast<const JoinRel*>(
&_JoinRel_default_instance_);
}
static constexpr int kIndexInFileMessages =
13;
friend void swap(JoinRel& a, JoinRel& b) {
a.Swap(&b);
}
inline void Swap(JoinRel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(JoinRel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
JoinRel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<JoinRel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const JoinRel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const JoinRel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(JoinRel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.JoinRel";
}
protected:
explicit JoinRel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef JoinRel_JoinType JoinType;
static constexpr JoinType JOIN_TYPE_UNSPECIFIED =
JoinRel_JoinType_JOIN_TYPE_UNSPECIFIED;
static constexpr JoinType JOIN_TYPE_INNER =
JoinRel_JoinType_JOIN_TYPE_INNER;
static constexpr JoinType JOIN_TYPE_OUTER =
JoinRel_JoinType_JOIN_TYPE_OUTER;
static constexpr JoinType JOIN_TYPE_LEFT =
JoinRel_JoinType_JOIN_TYPE_LEFT;
static constexpr JoinType JOIN_TYPE_RIGHT =
JoinRel_JoinType_JOIN_TYPE_RIGHT;
static constexpr JoinType JOIN_TYPE_SEMI =
JoinRel_JoinType_JOIN_TYPE_SEMI;
static constexpr JoinType JOIN_TYPE_ANTI =
JoinRel_JoinType_JOIN_TYPE_ANTI;
static constexpr JoinType JOIN_TYPE_SINGLE =
JoinRel_JoinType_JOIN_TYPE_SINGLE;
static inline bool JoinType_IsValid(int value) {
return JoinRel_JoinType_IsValid(value);
}
static constexpr JoinType JoinType_MIN =
JoinRel_JoinType_JoinType_MIN;
static constexpr JoinType JoinType_MAX =
JoinRel_JoinType_JoinType_MAX;
static constexpr int JoinType_ARRAYSIZE =
JoinRel_JoinType_JoinType_ARRAYSIZE;
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
JoinType_descriptor() {
return JoinRel_JoinType_descriptor();
}
template<typename T>
static inline const std::string& JoinType_Name(T enum_t_value) {
static_assert(::std::is_same<T, JoinType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function JoinType_Name.");
return JoinRel_JoinType_Name(enum_t_value);
}
static inline bool JoinType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
JoinType* value) {
return JoinRel_JoinType_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kCommonFieldNumber = 1,
kLeftFieldNumber = 2,
kRightFieldNumber = 3,
kExpressionFieldNumber = 4,
kPostJoinFilterFieldNumber = 5,
kAdvancedExtensionFieldNumber = 10,
kTypeFieldNumber = 6,
};
// .substrait.RelCommon common = 1 [json_name = "common"];
bool has_common() const;
private:
bool _internal_has_common() const;
public:
void clear_common();
const ::substrait::RelCommon& common() const;
PROTOBUF_NODISCARD ::substrait::RelCommon* release_common();
::substrait::RelCommon* mutable_common();
void set_allocated_common(::substrait::RelCommon* common);
private:
const ::substrait::RelCommon& _internal_common() const;
::substrait::RelCommon* _internal_mutable_common();
public:
void unsafe_arena_set_allocated_common(
::substrait::RelCommon* common);
::substrait::RelCommon* unsafe_arena_release_common();
// .substrait.Rel left = 2 [json_name = "left"];
bool has_left() const;
private:
bool _internal_has_left() const;
public:
void clear_left();
const ::substrait::Rel& left() const;
PROTOBUF_NODISCARD ::substrait::Rel* release_left();
::substrait::Rel* mutable_left();
void set_allocated_left(::substrait::Rel* left);
private:
const ::substrait::Rel& _internal_left() const;
::substrait::Rel* _internal_mutable_left();
public:
void unsafe_arena_set_allocated_left(
::substrait::Rel* left);
::substrait::Rel* unsafe_arena_release_left();
// .substrait.Rel right = 3 [json_name = "right"];
bool has_right() const;
private:
bool _internal_has_right() const;
public:
void clear_right();
const ::substrait::Rel& right() const;
PROTOBUF_NODISCARD ::substrait::Rel* release_right();
::substrait::Rel* mutable_right();
void set_allocated_right(::substrait::Rel* right);
private:
const ::substrait::Rel& _internal_right() const;
::substrait::Rel* _internal_mutable_right();
public:
void unsafe_arena_set_allocated_right(
::substrait::Rel* right);
::substrait::Rel* unsafe_arena_release_right();
// .substrait.Expression expression = 4 [json_name = "expression"];
bool has_expression() const;
private:
bool _internal_has_expression() const;
public:
void clear_expression();
const ::substrait::Expression& expression() const;
PROTOBUF_NODISCARD ::substrait::Expression* release_expression();
::substrait::Expression* mutable_expression();
void set_allocated_expression(::substrait::Expression* expression);
private:
const ::substrait::Expression& _internal_expression() const;
::substrait::Expression* _internal_mutable_expression();
public:
void unsafe_arena_set_allocated_expression(
::substrait::Expression* expression);
::substrait::Expression* unsafe_arena_release_expression();
// .substrait.Expression post_join_filter = 5 [json_name = "postJoinFilter"];
bool has_post_join_filter() const;
private:
bool _internal_has_post_join_filter() const;
public:
void clear_post_join_filter();
const ::substrait::Expression& post_join_filter() const;
PROTOBUF_NODISCARD ::substrait::Expression* release_post_join_filter();
::substrait::Expression* mutable_post_join_filter();
void set_allocated_post_join_filter(::substrait::Expression* post_join_filter);
private:
const ::substrait::Expression& _internal_post_join_filter() const;
::substrait::Expression* _internal_mutable_post_join_filter();
public:
void unsafe_arena_set_allocated_post_join_filter(
::substrait::Expression* post_join_filter);
::substrait::Expression* unsafe_arena_release_post_join_filter();
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// .substrait.JoinRel.JoinType type = 6 [json_name = "type"];
void clear_type();
::substrait::JoinRel_JoinType type() const;
void set_type(::substrait::JoinRel_JoinType value);
private:
::substrait::JoinRel_JoinType _internal_type() const;
void _internal_set_type(::substrait::JoinRel_JoinType value);
public:
// @@protoc_insertion_point(class_scope:substrait.JoinRel)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::substrait::RelCommon* common_;
::substrait::Rel* left_;
::substrait::Rel* right_;
::substrait::Expression* expression_;
::substrait::Expression* post_join_filter_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
int type_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class CrossRel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.CrossRel) */ {
public:
inline CrossRel() : CrossRel(nullptr) {}
~CrossRel() override;
explicit constexpr CrossRel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
CrossRel(const CrossRel& from);
CrossRel(CrossRel&& from) noexcept
: CrossRel() {
*this = ::std::move(from);
}
inline CrossRel& operator=(const CrossRel& from) {
CopyFrom(from);
return *this;
}
inline CrossRel& operator=(CrossRel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const CrossRel& default_instance() {
return *internal_default_instance();
}
static inline const CrossRel* internal_default_instance() {
return reinterpret_cast<const CrossRel*>(
&_CrossRel_default_instance_);
}
static constexpr int kIndexInFileMessages =
14;
friend void swap(CrossRel& a, CrossRel& b) {
a.Swap(&b);
}
inline void Swap(CrossRel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(CrossRel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
CrossRel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<CrossRel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const CrossRel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const CrossRel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(CrossRel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.CrossRel";
}
protected:
explicit CrossRel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kCommonFieldNumber = 1,
kLeftFieldNumber = 2,
kRightFieldNumber = 3,
kAdvancedExtensionFieldNumber = 10,
};
// .substrait.RelCommon common = 1 [json_name = "common"];
bool has_common() const;
private:
bool _internal_has_common() const;
public:
void clear_common();
const ::substrait::RelCommon& common() const;
PROTOBUF_NODISCARD ::substrait::RelCommon* release_common();
::substrait::RelCommon* mutable_common();
void set_allocated_common(::substrait::RelCommon* common);
private:
const ::substrait::RelCommon& _internal_common() const;
::substrait::RelCommon* _internal_mutable_common();
public:
void unsafe_arena_set_allocated_common(
::substrait::RelCommon* common);
::substrait::RelCommon* unsafe_arena_release_common();
// .substrait.Rel left = 2 [json_name = "left"];
bool has_left() const;
private:
bool _internal_has_left() const;
public:
void clear_left();
const ::substrait::Rel& left() const;
PROTOBUF_NODISCARD ::substrait::Rel* release_left();
::substrait::Rel* mutable_left();
void set_allocated_left(::substrait::Rel* left);
private:
const ::substrait::Rel& _internal_left() const;
::substrait::Rel* _internal_mutable_left();
public:
void unsafe_arena_set_allocated_left(
::substrait::Rel* left);
::substrait::Rel* unsafe_arena_release_left();
// .substrait.Rel right = 3 [json_name = "right"];
bool has_right() const;
private:
bool _internal_has_right() const;
public:
void clear_right();
const ::substrait::Rel& right() const;
PROTOBUF_NODISCARD ::substrait::Rel* release_right();
::substrait::Rel* mutable_right();
void set_allocated_right(::substrait::Rel* right);
private:
const ::substrait::Rel& _internal_right() const;
::substrait::Rel* _internal_mutable_right();
public:
void unsafe_arena_set_allocated_right(
::substrait::Rel* right);
::substrait::Rel* unsafe_arena_release_right();
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// @@protoc_insertion_point(class_scope:substrait.CrossRel)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::substrait::RelCommon* common_;
::substrait::Rel* left_;
::substrait::Rel* right_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class FetchRel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.FetchRel) */ {
public:
inline FetchRel() : FetchRel(nullptr) {}
~FetchRel() override;
explicit constexpr FetchRel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
FetchRel(const FetchRel& from);
FetchRel(FetchRel&& from) noexcept
: FetchRel() {
*this = ::std::move(from);
}
inline FetchRel& operator=(const FetchRel& from) {
CopyFrom(from);
return *this;
}
inline FetchRel& operator=(FetchRel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const FetchRel& default_instance() {
return *internal_default_instance();
}
static inline const FetchRel* internal_default_instance() {
return reinterpret_cast<const FetchRel*>(
&_FetchRel_default_instance_);
}
static constexpr int kIndexInFileMessages =
15;
friend void swap(FetchRel& a, FetchRel& b) {
a.Swap(&b);
}
inline void Swap(FetchRel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(FetchRel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
FetchRel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<FetchRel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const FetchRel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const FetchRel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(FetchRel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.FetchRel";
}
protected:
explicit FetchRel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kCommonFieldNumber = 1,
kInputFieldNumber = 2,
kAdvancedExtensionFieldNumber = 10,
kOffsetFieldNumber = 3,
kCountFieldNumber = 4,
};
// .substrait.RelCommon common = 1 [json_name = "common"];
bool has_common() const;
private:
bool _internal_has_common() const;
public:
void clear_common();
const ::substrait::RelCommon& common() const;
PROTOBUF_NODISCARD ::substrait::RelCommon* release_common();
::substrait::RelCommon* mutable_common();
void set_allocated_common(::substrait::RelCommon* common);
private:
const ::substrait::RelCommon& _internal_common() const;
::substrait::RelCommon* _internal_mutable_common();
public:
void unsafe_arena_set_allocated_common(
::substrait::RelCommon* common);
::substrait::RelCommon* unsafe_arena_release_common();
// .substrait.Rel input = 2 [json_name = "input"];
bool has_input() const;
private:
bool _internal_has_input() const;
public:
void clear_input();
const ::substrait::Rel& input() const;
PROTOBUF_NODISCARD ::substrait::Rel* release_input();
::substrait::Rel* mutable_input();
void set_allocated_input(::substrait::Rel* input);
private:
const ::substrait::Rel& _internal_input() const;
::substrait::Rel* _internal_mutable_input();
public:
void unsafe_arena_set_allocated_input(
::substrait::Rel* input);
::substrait::Rel* unsafe_arena_release_input();
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// int64 offset = 3 [json_name = "offset"];
void clear_offset();
int64_t offset() const;
void set_offset(int64_t value);
private:
int64_t _internal_offset() const;
void _internal_set_offset(int64_t value);
public:
// int64 count = 4 [json_name = "count"];
void clear_count();
int64_t count() const;
void set_count(int64_t value);
private:
int64_t _internal_count() const;
void _internal_set_count(int64_t value);
public:
// @@protoc_insertion_point(class_scope:substrait.FetchRel)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::substrait::RelCommon* common_;
::substrait::Rel* input_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
int64_t offset_;
int64_t count_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class AggregateRel_Grouping final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.AggregateRel.Grouping) */ {
public:
inline AggregateRel_Grouping() : AggregateRel_Grouping(nullptr) {}
~AggregateRel_Grouping() override;
explicit constexpr AggregateRel_Grouping(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
AggregateRel_Grouping(const AggregateRel_Grouping& from);
AggregateRel_Grouping(AggregateRel_Grouping&& from) noexcept
: AggregateRel_Grouping() {
*this = ::std::move(from);
}
inline AggregateRel_Grouping& operator=(const AggregateRel_Grouping& from) {
CopyFrom(from);
return *this;
}
inline AggregateRel_Grouping& operator=(AggregateRel_Grouping&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const AggregateRel_Grouping& default_instance() {
return *internal_default_instance();
}
static inline const AggregateRel_Grouping* internal_default_instance() {
return reinterpret_cast<const AggregateRel_Grouping*>(
&_AggregateRel_Grouping_default_instance_);
}
static constexpr int kIndexInFileMessages =
16;
friend void swap(AggregateRel_Grouping& a, AggregateRel_Grouping& b) {
a.Swap(&b);
}
inline void Swap(AggregateRel_Grouping* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(AggregateRel_Grouping* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
AggregateRel_Grouping* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<AggregateRel_Grouping>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const AggregateRel_Grouping& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const AggregateRel_Grouping& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(AggregateRel_Grouping* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.AggregateRel.Grouping";
}
protected:
explicit AggregateRel_Grouping(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kGroupingExpressionsFieldNumber = 1,
};
// repeated .substrait.Expression grouping_expressions = 1 [json_name = "groupingExpressions"];
int grouping_expressions_size() const;
private:
int _internal_grouping_expressions_size() const;
public:
void clear_grouping_expressions();
::substrait::Expression* mutable_grouping_expressions(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression >*
mutable_grouping_expressions();
private:
const ::substrait::Expression& _internal_grouping_expressions(int index) const;
::substrait::Expression* _internal_add_grouping_expressions();
public:
const ::substrait::Expression& grouping_expressions(int index) const;
::substrait::Expression* add_grouping_expressions();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression >&
grouping_expressions() const;
// @@protoc_insertion_point(class_scope:substrait.AggregateRel.Grouping)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression > grouping_expressions_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class AggregateRel_Measure final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.AggregateRel.Measure) */ {
public:
inline AggregateRel_Measure() : AggregateRel_Measure(nullptr) {}
~AggregateRel_Measure() override;
explicit constexpr AggregateRel_Measure(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
AggregateRel_Measure(const AggregateRel_Measure& from);
AggregateRel_Measure(AggregateRel_Measure&& from) noexcept
: AggregateRel_Measure() {
*this = ::std::move(from);
}
inline AggregateRel_Measure& operator=(const AggregateRel_Measure& from) {
CopyFrom(from);
return *this;
}
inline AggregateRel_Measure& operator=(AggregateRel_Measure&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const AggregateRel_Measure& default_instance() {
return *internal_default_instance();
}
static inline const AggregateRel_Measure* internal_default_instance() {
return reinterpret_cast<const AggregateRel_Measure*>(
&_AggregateRel_Measure_default_instance_);
}
static constexpr int kIndexInFileMessages =
17;
friend void swap(AggregateRel_Measure& a, AggregateRel_Measure& b) {
a.Swap(&b);
}
inline void Swap(AggregateRel_Measure* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(AggregateRel_Measure* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
AggregateRel_Measure* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<AggregateRel_Measure>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const AggregateRel_Measure& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const AggregateRel_Measure& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(AggregateRel_Measure* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.AggregateRel.Measure";
}
protected:
explicit AggregateRel_Measure(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kMeasureFieldNumber = 1,
kFilterFieldNumber = 2,
};
// .substrait.AggregateFunction measure = 1 [json_name = "measure"];
bool has_measure() const;
private:
bool _internal_has_measure() const;
public:
void clear_measure();
const ::substrait::AggregateFunction& measure() const;
PROTOBUF_NODISCARD ::substrait::AggregateFunction* release_measure();
::substrait::AggregateFunction* mutable_measure();
void set_allocated_measure(::substrait::AggregateFunction* measure);
private:
const ::substrait::AggregateFunction& _internal_measure() const;
::substrait::AggregateFunction* _internal_mutable_measure();
public:
void unsafe_arena_set_allocated_measure(
::substrait::AggregateFunction* measure);
::substrait::AggregateFunction* unsafe_arena_release_measure();
// .substrait.Expression filter = 2 [json_name = "filter"];
bool has_filter() const;
private:
bool _internal_has_filter() const;
public:
void clear_filter();
const ::substrait::Expression& filter() const;
PROTOBUF_NODISCARD ::substrait::Expression* release_filter();
::substrait::Expression* mutable_filter();
void set_allocated_filter(::substrait::Expression* filter);
private:
const ::substrait::Expression& _internal_filter() const;
::substrait::Expression* _internal_mutable_filter();
public:
void unsafe_arena_set_allocated_filter(
::substrait::Expression* filter);
::substrait::Expression* unsafe_arena_release_filter();
// @@protoc_insertion_point(class_scope:substrait.AggregateRel.Measure)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::substrait::AggregateFunction* measure_;
::substrait::Expression* filter_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class AggregateRel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.AggregateRel) */ {
public:
inline AggregateRel() : AggregateRel(nullptr) {}
~AggregateRel() override;
explicit constexpr AggregateRel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
AggregateRel(const AggregateRel& from);
AggregateRel(AggregateRel&& from) noexcept
: AggregateRel() {
*this = ::std::move(from);
}
inline AggregateRel& operator=(const AggregateRel& from) {
CopyFrom(from);
return *this;
}
inline AggregateRel& operator=(AggregateRel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const AggregateRel& default_instance() {
return *internal_default_instance();
}
static inline const AggregateRel* internal_default_instance() {
return reinterpret_cast<const AggregateRel*>(
&_AggregateRel_default_instance_);
}
static constexpr int kIndexInFileMessages =
18;
friend void swap(AggregateRel& a, AggregateRel& b) {
a.Swap(&b);
}
inline void Swap(AggregateRel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(AggregateRel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
AggregateRel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<AggregateRel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const AggregateRel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const AggregateRel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(AggregateRel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.AggregateRel";
}
protected:
explicit AggregateRel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef AggregateRel_Grouping Grouping;
typedef AggregateRel_Measure Measure;
// accessors -------------------------------------------------------
enum : int {
kGroupingsFieldNumber = 3,
kMeasuresFieldNumber = 4,
kCommonFieldNumber = 1,
kInputFieldNumber = 2,
kAdvancedExtensionFieldNumber = 10,
};
// repeated .substrait.AggregateRel.Grouping groupings = 3 [json_name = "groupings"];
int groupings_size() const;
private:
int _internal_groupings_size() const;
public:
void clear_groupings();
::substrait::AggregateRel_Grouping* mutable_groupings(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::AggregateRel_Grouping >*
mutable_groupings();
private:
const ::substrait::AggregateRel_Grouping& _internal_groupings(int index) const;
::substrait::AggregateRel_Grouping* _internal_add_groupings();
public:
const ::substrait::AggregateRel_Grouping& groupings(int index) const;
::substrait::AggregateRel_Grouping* add_groupings();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::AggregateRel_Grouping >&
groupings() const;
// repeated .substrait.AggregateRel.Measure measures = 4 [json_name = "measures"];
int measures_size() const;
private:
int _internal_measures_size() const;
public:
void clear_measures();
::substrait::AggregateRel_Measure* mutable_measures(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::AggregateRel_Measure >*
mutable_measures();
private:
const ::substrait::AggregateRel_Measure& _internal_measures(int index) const;
::substrait::AggregateRel_Measure* _internal_add_measures();
public:
const ::substrait::AggregateRel_Measure& measures(int index) const;
::substrait::AggregateRel_Measure* add_measures();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::AggregateRel_Measure >&
measures() const;
// .substrait.RelCommon common = 1 [json_name = "common"];
bool has_common() const;
private:
bool _internal_has_common() const;
public:
void clear_common();
const ::substrait::RelCommon& common() const;
PROTOBUF_NODISCARD ::substrait::RelCommon* release_common();
::substrait::RelCommon* mutable_common();
void set_allocated_common(::substrait::RelCommon* common);
private:
const ::substrait::RelCommon& _internal_common() const;
::substrait::RelCommon* _internal_mutable_common();
public:
void unsafe_arena_set_allocated_common(
::substrait::RelCommon* common);
::substrait::RelCommon* unsafe_arena_release_common();
// .substrait.Rel input = 2 [json_name = "input"];
bool has_input() const;
private:
bool _internal_has_input() const;
public:
void clear_input();
const ::substrait::Rel& input() const;
PROTOBUF_NODISCARD ::substrait::Rel* release_input();
::substrait::Rel* mutable_input();
void set_allocated_input(::substrait::Rel* input);
private:
const ::substrait::Rel& _internal_input() const;
::substrait::Rel* _internal_mutable_input();
public:
void unsafe_arena_set_allocated_input(
::substrait::Rel* input);
::substrait::Rel* unsafe_arena_release_input();
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// @@protoc_insertion_point(class_scope:substrait.AggregateRel)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::AggregateRel_Grouping > groupings_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::AggregateRel_Measure > measures_;
::substrait::RelCommon* common_;
::substrait::Rel* input_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class SortRel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.SortRel) */ {
public:
inline SortRel() : SortRel(nullptr) {}
~SortRel() override;
explicit constexpr SortRel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
SortRel(const SortRel& from);
SortRel(SortRel&& from) noexcept
: SortRel() {
*this = ::std::move(from);
}
inline SortRel& operator=(const SortRel& from) {
CopyFrom(from);
return *this;
}
inline SortRel& operator=(SortRel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const SortRel& default_instance() {
return *internal_default_instance();
}
static inline const SortRel* internal_default_instance() {
return reinterpret_cast<const SortRel*>(
&_SortRel_default_instance_);
}
static constexpr int kIndexInFileMessages =
19;
friend void swap(SortRel& a, SortRel& b) {
a.Swap(&b);
}
inline void Swap(SortRel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(SortRel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
SortRel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<SortRel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const SortRel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const SortRel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(SortRel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.SortRel";
}
protected:
explicit SortRel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kSortsFieldNumber = 3,
kCommonFieldNumber = 1,
kInputFieldNumber = 2,
kAdvancedExtensionFieldNumber = 10,
};
// repeated .substrait.SortField sorts = 3 [json_name = "sorts"];
int sorts_size() const;
private:
int _internal_sorts_size() const;
public:
void clear_sorts();
::substrait::SortField* mutable_sorts(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::SortField >*
mutable_sorts();
private:
const ::substrait::SortField& _internal_sorts(int index) const;
::substrait::SortField* _internal_add_sorts();
public:
const ::substrait::SortField& sorts(int index) const;
::substrait::SortField* add_sorts();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::SortField >&
sorts() const;
// .substrait.RelCommon common = 1 [json_name = "common"];
bool has_common() const;
private:
bool _internal_has_common() const;
public:
void clear_common();
const ::substrait::RelCommon& common() const;
PROTOBUF_NODISCARD ::substrait::RelCommon* release_common();
::substrait::RelCommon* mutable_common();
void set_allocated_common(::substrait::RelCommon* common);
private:
const ::substrait::RelCommon& _internal_common() const;
::substrait::RelCommon* _internal_mutable_common();
public:
void unsafe_arena_set_allocated_common(
::substrait::RelCommon* common);
::substrait::RelCommon* unsafe_arena_release_common();
// .substrait.Rel input = 2 [json_name = "input"];
bool has_input() const;
private:
bool _internal_has_input() const;
public:
void clear_input();
const ::substrait::Rel& input() const;
PROTOBUF_NODISCARD ::substrait::Rel* release_input();
::substrait::Rel* mutable_input();
void set_allocated_input(::substrait::Rel* input);
private:
const ::substrait::Rel& _internal_input() const;
::substrait::Rel* _internal_mutable_input();
public:
void unsafe_arena_set_allocated_input(
::substrait::Rel* input);
::substrait::Rel* unsafe_arena_release_input();
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// @@protoc_insertion_point(class_scope:substrait.SortRel)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::SortField > sorts_;
::substrait::RelCommon* common_;
::substrait::Rel* input_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class FilterRel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.FilterRel) */ {
public:
inline FilterRel() : FilterRel(nullptr) {}
~FilterRel() override;
explicit constexpr FilterRel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
FilterRel(const FilterRel& from);
FilterRel(FilterRel&& from) noexcept
: FilterRel() {
*this = ::std::move(from);
}
inline FilterRel& operator=(const FilterRel& from) {
CopyFrom(from);
return *this;
}
inline FilterRel& operator=(FilterRel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const FilterRel& default_instance() {
return *internal_default_instance();
}
static inline const FilterRel* internal_default_instance() {
return reinterpret_cast<const FilterRel*>(
&_FilterRel_default_instance_);
}
static constexpr int kIndexInFileMessages =
20;
friend void swap(FilterRel& a, FilterRel& b) {
a.Swap(&b);
}
inline void Swap(FilterRel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(FilterRel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
FilterRel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<FilterRel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const FilterRel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const FilterRel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(FilterRel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.FilterRel";
}
protected:
explicit FilterRel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kCommonFieldNumber = 1,
kInputFieldNumber = 2,
kConditionFieldNumber = 3,
kAdvancedExtensionFieldNumber = 10,
};
// .substrait.RelCommon common = 1 [json_name = "common"];
bool has_common() const;
private:
bool _internal_has_common() const;
public:
void clear_common();
const ::substrait::RelCommon& common() const;
PROTOBUF_NODISCARD ::substrait::RelCommon* release_common();
::substrait::RelCommon* mutable_common();
void set_allocated_common(::substrait::RelCommon* common);
private:
const ::substrait::RelCommon& _internal_common() const;
::substrait::RelCommon* _internal_mutable_common();
public:
void unsafe_arena_set_allocated_common(
::substrait::RelCommon* common);
::substrait::RelCommon* unsafe_arena_release_common();
// .substrait.Rel input = 2 [json_name = "input"];
bool has_input() const;
private:
bool _internal_has_input() const;
public:
void clear_input();
const ::substrait::Rel& input() const;
PROTOBUF_NODISCARD ::substrait::Rel* release_input();
::substrait::Rel* mutable_input();
void set_allocated_input(::substrait::Rel* input);
private:
const ::substrait::Rel& _internal_input() const;
::substrait::Rel* _internal_mutable_input();
public:
void unsafe_arena_set_allocated_input(
::substrait::Rel* input);
::substrait::Rel* unsafe_arena_release_input();
// .substrait.Expression condition = 3 [json_name = "condition"];
bool has_condition() const;
private:
bool _internal_has_condition() const;
public:
void clear_condition();
const ::substrait::Expression& condition() const;
PROTOBUF_NODISCARD ::substrait::Expression* release_condition();
::substrait::Expression* mutable_condition();
void set_allocated_condition(::substrait::Expression* condition);
private:
const ::substrait::Expression& _internal_condition() const;
::substrait::Expression* _internal_mutable_condition();
public:
void unsafe_arena_set_allocated_condition(
::substrait::Expression* condition);
::substrait::Expression* unsafe_arena_release_condition();
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// @@protoc_insertion_point(class_scope:substrait.FilterRel)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::substrait::RelCommon* common_;
::substrait::Rel* input_;
::substrait::Expression* condition_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class SetRel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.SetRel) */ {
public:
inline SetRel() : SetRel(nullptr) {}
~SetRel() override;
explicit constexpr SetRel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
SetRel(const SetRel& from);
SetRel(SetRel&& from) noexcept
: SetRel() {
*this = ::std::move(from);
}
inline SetRel& operator=(const SetRel& from) {
CopyFrom(from);
return *this;
}
inline SetRel& operator=(SetRel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const SetRel& default_instance() {
return *internal_default_instance();
}
static inline const SetRel* internal_default_instance() {
return reinterpret_cast<const SetRel*>(
&_SetRel_default_instance_);
}
static constexpr int kIndexInFileMessages =
21;
friend void swap(SetRel& a, SetRel& b) {
a.Swap(&b);
}
inline void Swap(SetRel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(SetRel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
SetRel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<SetRel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const SetRel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const SetRel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(SetRel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.SetRel";
}
protected:
explicit SetRel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef SetRel_SetOp SetOp;
static constexpr SetOp SET_OP_UNSPECIFIED =
SetRel_SetOp_SET_OP_UNSPECIFIED;
static constexpr SetOp SET_OP_MINUS_PRIMARY =
SetRel_SetOp_SET_OP_MINUS_PRIMARY;
static constexpr SetOp SET_OP_MINUS_MULTISET =
SetRel_SetOp_SET_OP_MINUS_MULTISET;
static constexpr SetOp SET_OP_INTERSECTION_PRIMARY =
SetRel_SetOp_SET_OP_INTERSECTION_PRIMARY;
static constexpr SetOp SET_OP_INTERSECTION_MULTISET =
SetRel_SetOp_SET_OP_INTERSECTION_MULTISET;
static constexpr SetOp SET_OP_UNION_DISTINCT =
SetRel_SetOp_SET_OP_UNION_DISTINCT;
static constexpr SetOp SET_OP_UNION_ALL =
SetRel_SetOp_SET_OP_UNION_ALL;
static inline bool SetOp_IsValid(int value) {
return SetRel_SetOp_IsValid(value);
}
static constexpr SetOp SetOp_MIN =
SetRel_SetOp_SetOp_MIN;
static constexpr SetOp SetOp_MAX =
SetRel_SetOp_SetOp_MAX;
static constexpr int SetOp_ARRAYSIZE =
SetRel_SetOp_SetOp_ARRAYSIZE;
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
SetOp_descriptor() {
return SetRel_SetOp_descriptor();
}
template<typename T>
static inline const std::string& SetOp_Name(T enum_t_value) {
static_assert(::std::is_same<T, SetOp>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function SetOp_Name.");
return SetRel_SetOp_Name(enum_t_value);
}
static inline bool SetOp_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
SetOp* value) {
return SetRel_SetOp_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kInputsFieldNumber = 2,
kCommonFieldNumber = 1,
kAdvancedExtensionFieldNumber = 10,
kOpFieldNumber = 3,
};
// repeated .substrait.Rel inputs = 2 [json_name = "inputs"];
int inputs_size() const;
private:
int _internal_inputs_size() const;
public:
void clear_inputs();
::substrait::Rel* mutable_inputs(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Rel >*
mutable_inputs();
private:
const ::substrait::Rel& _internal_inputs(int index) const;
::substrait::Rel* _internal_add_inputs();
public:
const ::substrait::Rel& inputs(int index) const;
::substrait::Rel* add_inputs();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Rel >&
inputs() const;
// .substrait.RelCommon common = 1 [json_name = "common"];
bool has_common() const;
private:
bool _internal_has_common() const;
public:
void clear_common();
const ::substrait::RelCommon& common() const;
PROTOBUF_NODISCARD ::substrait::RelCommon* release_common();
::substrait::RelCommon* mutable_common();
void set_allocated_common(::substrait::RelCommon* common);
private:
const ::substrait::RelCommon& _internal_common() const;
::substrait::RelCommon* _internal_mutable_common();
public:
void unsafe_arena_set_allocated_common(
::substrait::RelCommon* common);
::substrait::RelCommon* unsafe_arena_release_common();
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
bool has_advanced_extension() const;
private:
bool _internal_has_advanced_extension() const;
public:
void clear_advanced_extension();
const ::substrait::extensions::AdvancedExtension& advanced_extension() const;
PROTOBUF_NODISCARD ::substrait::extensions::AdvancedExtension* release_advanced_extension();
::substrait::extensions::AdvancedExtension* mutable_advanced_extension();
void set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension);
private:
const ::substrait::extensions::AdvancedExtension& _internal_advanced_extension() const;
::substrait::extensions::AdvancedExtension* _internal_mutable_advanced_extension();
public:
void unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension);
::substrait::extensions::AdvancedExtension* unsafe_arena_release_advanced_extension();
// .substrait.SetRel.SetOp op = 3 [json_name = "op"];
void clear_op();
::substrait::SetRel_SetOp op() const;
void set_op(::substrait::SetRel_SetOp value);
private:
::substrait::SetRel_SetOp _internal_op() const;
void _internal_set_op(::substrait::SetRel_SetOp value);
public:
// @@protoc_insertion_point(class_scope:substrait.SetRel)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Rel > inputs_;
::substrait::RelCommon* common_;
::substrait::extensions::AdvancedExtension* advanced_extension_;
int op_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class ExtensionSingleRel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.ExtensionSingleRel) */ {
public:
inline ExtensionSingleRel() : ExtensionSingleRel(nullptr) {}
~ExtensionSingleRel() override;
explicit constexpr ExtensionSingleRel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ExtensionSingleRel(const ExtensionSingleRel& from);
ExtensionSingleRel(ExtensionSingleRel&& from) noexcept
: ExtensionSingleRel() {
*this = ::std::move(from);
}
inline ExtensionSingleRel& operator=(const ExtensionSingleRel& from) {
CopyFrom(from);
return *this;
}
inline ExtensionSingleRel& operator=(ExtensionSingleRel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ExtensionSingleRel& default_instance() {
return *internal_default_instance();
}
static inline const ExtensionSingleRel* internal_default_instance() {
return reinterpret_cast<const ExtensionSingleRel*>(
&_ExtensionSingleRel_default_instance_);
}
static constexpr int kIndexInFileMessages =
22;
friend void swap(ExtensionSingleRel& a, ExtensionSingleRel& b) {
a.Swap(&b);
}
inline void Swap(ExtensionSingleRel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ExtensionSingleRel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ExtensionSingleRel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ExtensionSingleRel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ExtensionSingleRel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const ExtensionSingleRel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ExtensionSingleRel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.ExtensionSingleRel";
}
protected:
explicit ExtensionSingleRel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kCommonFieldNumber = 1,
kInputFieldNumber = 2,
kDetailFieldNumber = 3,
};
// .substrait.RelCommon common = 1 [json_name = "common"];
bool has_common() const;
private:
bool _internal_has_common() const;
public:
void clear_common();
const ::substrait::RelCommon& common() const;
PROTOBUF_NODISCARD ::substrait::RelCommon* release_common();
::substrait::RelCommon* mutable_common();
void set_allocated_common(::substrait::RelCommon* common);
private:
const ::substrait::RelCommon& _internal_common() const;
::substrait::RelCommon* _internal_mutable_common();
public:
void unsafe_arena_set_allocated_common(
::substrait::RelCommon* common);
::substrait::RelCommon* unsafe_arena_release_common();
// .substrait.Rel input = 2 [json_name = "input"];
bool has_input() const;
private:
bool _internal_has_input() const;
public:
void clear_input();
const ::substrait::Rel& input() const;
PROTOBUF_NODISCARD ::substrait::Rel* release_input();
::substrait::Rel* mutable_input();
void set_allocated_input(::substrait::Rel* input);
private:
const ::substrait::Rel& _internal_input() const;
::substrait::Rel* _internal_mutable_input();
public:
void unsafe_arena_set_allocated_input(
::substrait::Rel* input);
::substrait::Rel* unsafe_arena_release_input();
// .google.protobuf.Any detail = 3 [json_name = "detail"];
bool has_detail() const;
private:
bool _internal_has_detail() const;
public:
void clear_detail();
const ::PROTOBUF_NAMESPACE_ID::Any& detail() const;
PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Any* release_detail();
::PROTOBUF_NAMESPACE_ID::Any* mutable_detail();
void set_allocated_detail(::PROTOBUF_NAMESPACE_ID::Any* detail);
private:
const ::PROTOBUF_NAMESPACE_ID::Any& _internal_detail() const;
::PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_detail();
public:
void unsafe_arena_set_allocated_detail(
::PROTOBUF_NAMESPACE_ID::Any* detail);
::PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_detail();
// @@protoc_insertion_point(class_scope:substrait.ExtensionSingleRel)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::substrait::RelCommon* common_;
::substrait::Rel* input_;
::PROTOBUF_NAMESPACE_ID::Any* detail_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class ExtensionLeafRel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.ExtensionLeafRel) */ {
public:
inline ExtensionLeafRel() : ExtensionLeafRel(nullptr) {}
~ExtensionLeafRel() override;
explicit constexpr ExtensionLeafRel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ExtensionLeafRel(const ExtensionLeafRel& from);
ExtensionLeafRel(ExtensionLeafRel&& from) noexcept
: ExtensionLeafRel() {
*this = ::std::move(from);
}
inline ExtensionLeafRel& operator=(const ExtensionLeafRel& from) {
CopyFrom(from);
return *this;
}
inline ExtensionLeafRel& operator=(ExtensionLeafRel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ExtensionLeafRel& default_instance() {
return *internal_default_instance();
}
static inline const ExtensionLeafRel* internal_default_instance() {
return reinterpret_cast<const ExtensionLeafRel*>(
&_ExtensionLeafRel_default_instance_);
}
static constexpr int kIndexInFileMessages =
23;
friend void swap(ExtensionLeafRel& a, ExtensionLeafRel& b) {
a.Swap(&b);
}
inline void Swap(ExtensionLeafRel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ExtensionLeafRel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ExtensionLeafRel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ExtensionLeafRel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ExtensionLeafRel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const ExtensionLeafRel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ExtensionLeafRel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.ExtensionLeafRel";
}
protected:
explicit ExtensionLeafRel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kCommonFieldNumber = 1,
kDetailFieldNumber = 2,
};
// .substrait.RelCommon common = 1 [json_name = "common"];
bool has_common() const;
private:
bool _internal_has_common() const;
public:
void clear_common();
const ::substrait::RelCommon& common() const;
PROTOBUF_NODISCARD ::substrait::RelCommon* release_common();
::substrait::RelCommon* mutable_common();
void set_allocated_common(::substrait::RelCommon* common);
private:
const ::substrait::RelCommon& _internal_common() const;
::substrait::RelCommon* _internal_mutable_common();
public:
void unsafe_arena_set_allocated_common(
::substrait::RelCommon* common);
::substrait::RelCommon* unsafe_arena_release_common();
// .google.protobuf.Any detail = 2 [json_name = "detail"];
bool has_detail() const;
private:
bool _internal_has_detail() const;
public:
void clear_detail();
const ::PROTOBUF_NAMESPACE_ID::Any& detail() const;
PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Any* release_detail();
::PROTOBUF_NAMESPACE_ID::Any* mutable_detail();
void set_allocated_detail(::PROTOBUF_NAMESPACE_ID::Any* detail);
private:
const ::PROTOBUF_NAMESPACE_ID::Any& _internal_detail() const;
::PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_detail();
public:
void unsafe_arena_set_allocated_detail(
::PROTOBUF_NAMESPACE_ID::Any* detail);
::PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_detail();
// @@protoc_insertion_point(class_scope:substrait.ExtensionLeafRel)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::substrait::RelCommon* common_;
::PROTOBUF_NAMESPACE_ID::Any* detail_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class ExtensionMultiRel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.ExtensionMultiRel) */ {
public:
inline ExtensionMultiRel() : ExtensionMultiRel(nullptr) {}
~ExtensionMultiRel() override;
explicit constexpr ExtensionMultiRel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ExtensionMultiRel(const ExtensionMultiRel& from);
ExtensionMultiRel(ExtensionMultiRel&& from) noexcept
: ExtensionMultiRel() {
*this = ::std::move(from);
}
inline ExtensionMultiRel& operator=(const ExtensionMultiRel& from) {
CopyFrom(from);
return *this;
}
inline ExtensionMultiRel& operator=(ExtensionMultiRel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ExtensionMultiRel& default_instance() {
return *internal_default_instance();
}
static inline const ExtensionMultiRel* internal_default_instance() {
return reinterpret_cast<const ExtensionMultiRel*>(
&_ExtensionMultiRel_default_instance_);
}
static constexpr int kIndexInFileMessages =
24;
friend void swap(ExtensionMultiRel& a, ExtensionMultiRel& b) {
a.Swap(&b);
}
inline void Swap(ExtensionMultiRel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ExtensionMultiRel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ExtensionMultiRel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ExtensionMultiRel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ExtensionMultiRel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const ExtensionMultiRel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ExtensionMultiRel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.ExtensionMultiRel";
}
protected:
explicit ExtensionMultiRel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kInputsFieldNumber = 2,
kCommonFieldNumber = 1,
kDetailFieldNumber = 3,
};
// repeated .substrait.Rel inputs = 2 [json_name = "inputs"];
int inputs_size() const;
private:
int _internal_inputs_size() const;
public:
void clear_inputs();
::substrait::Rel* mutable_inputs(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Rel >*
mutable_inputs();
private:
const ::substrait::Rel& _internal_inputs(int index) const;
::substrait::Rel* _internal_add_inputs();
public:
const ::substrait::Rel& inputs(int index) const;
::substrait::Rel* add_inputs();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Rel >&
inputs() const;
// .substrait.RelCommon common = 1 [json_name = "common"];
bool has_common() const;
private:
bool _internal_has_common() const;
public:
void clear_common();
const ::substrait::RelCommon& common() const;
PROTOBUF_NODISCARD ::substrait::RelCommon* release_common();
::substrait::RelCommon* mutable_common();
void set_allocated_common(::substrait::RelCommon* common);
private:
const ::substrait::RelCommon& _internal_common() const;
::substrait::RelCommon* _internal_mutable_common();
public:
void unsafe_arena_set_allocated_common(
::substrait::RelCommon* common);
::substrait::RelCommon* unsafe_arena_release_common();
// .google.protobuf.Any detail = 3 [json_name = "detail"];
bool has_detail() const;
private:
bool _internal_has_detail() const;
public:
void clear_detail();
const ::PROTOBUF_NAMESPACE_ID::Any& detail() const;
PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Any* release_detail();
::PROTOBUF_NAMESPACE_ID::Any* mutable_detail();
void set_allocated_detail(::PROTOBUF_NAMESPACE_ID::Any* detail);
private:
const ::PROTOBUF_NAMESPACE_ID::Any& _internal_detail() const;
::PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_detail();
public:
void unsafe_arena_set_allocated_detail(
::PROTOBUF_NAMESPACE_ID::Any* detail);
::PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_detail();
// @@protoc_insertion_point(class_scope:substrait.ExtensionMultiRel)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Rel > inputs_;
::substrait::RelCommon* common_;
::PROTOBUF_NAMESPACE_ID::Any* detail_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class RelRoot final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.RelRoot) */ {
public:
inline RelRoot() : RelRoot(nullptr) {}
~RelRoot() override;
explicit constexpr RelRoot(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
RelRoot(const RelRoot& from);
RelRoot(RelRoot&& from) noexcept
: RelRoot() {
*this = ::std::move(from);
}
inline RelRoot& operator=(const RelRoot& from) {
CopyFrom(from);
return *this;
}
inline RelRoot& operator=(RelRoot&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const RelRoot& default_instance() {
return *internal_default_instance();
}
static inline const RelRoot* internal_default_instance() {
return reinterpret_cast<const RelRoot*>(
&_RelRoot_default_instance_);
}
static constexpr int kIndexInFileMessages =
25;
friend void swap(RelRoot& a, RelRoot& b) {
a.Swap(&b);
}
inline void Swap(RelRoot* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(RelRoot* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
RelRoot* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<RelRoot>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const RelRoot& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const RelRoot& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(RelRoot* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.RelRoot";
}
protected:
explicit RelRoot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kNamesFieldNumber = 2,
kInputFieldNumber = 1,
};
// repeated string names = 2 [json_name = "names"];
int names_size() const;
private:
int _internal_names_size() const;
public:
void clear_names();
const std::string& names(int index) const;
std::string* mutable_names(int index);
void set_names(int index, const std::string& value);
void set_names(int index, std::string&& value);
void set_names(int index, const char* value);
void set_names(int index, const char* value, size_t size);
std::string* add_names();
void add_names(const std::string& value);
void add_names(std::string&& value);
void add_names(const char* value);
void add_names(const char* value, size_t size);
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& names() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_names();
private:
const std::string& _internal_names(int index) const;
std::string* _internal_add_names();
public:
// .substrait.Rel input = 1 [json_name = "input"];
bool has_input() const;
private:
bool _internal_has_input() const;
public:
void clear_input();
const ::substrait::Rel& input() const;
PROTOBUF_NODISCARD ::substrait::Rel* release_input();
::substrait::Rel* mutable_input();
void set_allocated_input(::substrait::Rel* input);
private:
const ::substrait::Rel& _internal_input() const;
::substrait::Rel* _internal_mutable_input();
public:
void unsafe_arena_set_allocated_input(
::substrait::Rel* input);
::substrait::Rel* unsafe_arena_release_input();
// @@protoc_insertion_point(class_scope:substrait.RelRoot)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> names_;
::substrait::Rel* input_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// -------------------------------------------------------------------
class Rel final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait.Rel) */ {
public:
inline Rel() : Rel(nullptr) {}
~Rel() override;
explicit constexpr Rel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Rel(const Rel& from);
Rel(Rel&& from) noexcept
: Rel() {
*this = ::std::move(from);
}
inline Rel& operator=(const Rel& from) {
CopyFrom(from);
return *this;
}
inline Rel& operator=(Rel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Rel& default_instance() {
return *internal_default_instance();
}
enum RelTypeCase {
kRead = 1,
kFilter = 2,
kFetch = 3,
kAggregate = 4,
kSort = 5,
kJoin = 6,
kProject = 7,
kSet = 8,
kExtensionSingle = 9,
kExtensionMulti = 10,
kExtensionLeaf = 11,
kCross = 12,
REL_TYPE_NOT_SET = 0,
};
static inline const Rel* internal_default_instance() {
return reinterpret_cast<const Rel*>(
&_Rel_default_instance_);
}
static constexpr int kIndexInFileMessages =
26;
friend void swap(Rel& a, Rel& b) {
a.Swap(&b);
}
inline void Swap(Rel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Rel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Rel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Rel>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const Rel& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const Rel& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Rel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait.Rel";
}
protected:
explicit Rel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kReadFieldNumber = 1,
kFilterFieldNumber = 2,
kFetchFieldNumber = 3,
kAggregateFieldNumber = 4,
kSortFieldNumber = 5,
kJoinFieldNumber = 6,
kProjectFieldNumber = 7,
kSetFieldNumber = 8,
kExtensionSingleFieldNumber = 9,
kExtensionMultiFieldNumber = 10,
kExtensionLeafFieldNumber = 11,
kCrossFieldNumber = 12,
};
// .substrait.ReadRel read = 1 [json_name = "read"];
bool has_read() const;
private:
bool _internal_has_read() const;
public:
void clear_read();
const ::substrait::ReadRel& read() const;
PROTOBUF_NODISCARD ::substrait::ReadRel* release_read();
::substrait::ReadRel* mutable_read();
void set_allocated_read(::substrait::ReadRel* read);
private:
const ::substrait::ReadRel& _internal_read() const;
::substrait::ReadRel* _internal_mutable_read();
public:
void unsafe_arena_set_allocated_read(
::substrait::ReadRel* read);
::substrait::ReadRel* unsafe_arena_release_read();
// .substrait.FilterRel filter = 2 [json_name = "filter"];
bool has_filter() const;
private:
bool _internal_has_filter() const;
public:
void clear_filter();
const ::substrait::FilterRel& filter() const;
PROTOBUF_NODISCARD ::substrait::FilterRel* release_filter();
::substrait::FilterRel* mutable_filter();
void set_allocated_filter(::substrait::FilterRel* filter);
private:
const ::substrait::FilterRel& _internal_filter() const;
::substrait::FilterRel* _internal_mutable_filter();
public:
void unsafe_arena_set_allocated_filter(
::substrait::FilterRel* filter);
::substrait::FilterRel* unsafe_arena_release_filter();
// .substrait.FetchRel fetch = 3 [json_name = "fetch"];
bool has_fetch() const;
private:
bool _internal_has_fetch() const;
public:
void clear_fetch();
const ::substrait::FetchRel& fetch() const;
PROTOBUF_NODISCARD ::substrait::FetchRel* release_fetch();
::substrait::FetchRel* mutable_fetch();
void set_allocated_fetch(::substrait::FetchRel* fetch);
private:
const ::substrait::FetchRel& _internal_fetch() const;
::substrait::FetchRel* _internal_mutable_fetch();
public:
void unsafe_arena_set_allocated_fetch(
::substrait::FetchRel* fetch);
::substrait::FetchRel* unsafe_arena_release_fetch();
// .substrait.AggregateRel aggregate = 4 [json_name = "aggregate"];
bool has_aggregate() const;
private:
bool _internal_has_aggregate() const;
public:
void clear_aggregate();
const ::substrait::AggregateRel& aggregate() const;
PROTOBUF_NODISCARD ::substrait::AggregateRel* release_aggregate();
::substrait::AggregateRel* mutable_aggregate();
void set_allocated_aggregate(::substrait::AggregateRel* aggregate);
private:
const ::substrait::AggregateRel& _internal_aggregate() const;
::substrait::AggregateRel* _internal_mutable_aggregate();
public:
void unsafe_arena_set_allocated_aggregate(
::substrait::AggregateRel* aggregate);
::substrait::AggregateRel* unsafe_arena_release_aggregate();
// .substrait.SortRel sort = 5 [json_name = "sort"];
bool has_sort() const;
private:
bool _internal_has_sort() const;
public:
void clear_sort();
const ::substrait::SortRel& sort() const;
PROTOBUF_NODISCARD ::substrait::SortRel* release_sort();
::substrait::SortRel* mutable_sort();
void set_allocated_sort(::substrait::SortRel* sort);
private:
const ::substrait::SortRel& _internal_sort() const;
::substrait::SortRel* _internal_mutable_sort();
public:
void unsafe_arena_set_allocated_sort(
::substrait::SortRel* sort);
::substrait::SortRel* unsafe_arena_release_sort();
// .substrait.JoinRel join = 6 [json_name = "join"];
bool has_join() const;
private:
bool _internal_has_join() const;
public:
void clear_join();
const ::substrait::JoinRel& join() const;
PROTOBUF_NODISCARD ::substrait::JoinRel* release_join();
::substrait::JoinRel* mutable_join();
void set_allocated_join(::substrait::JoinRel* join);
private:
const ::substrait::JoinRel& _internal_join() const;
::substrait::JoinRel* _internal_mutable_join();
public:
void unsafe_arena_set_allocated_join(
::substrait::JoinRel* join);
::substrait::JoinRel* unsafe_arena_release_join();
// .substrait.ProjectRel project = 7 [json_name = "project"];
bool has_project() const;
private:
bool _internal_has_project() const;
public:
void clear_project();
const ::substrait::ProjectRel& project() const;
PROTOBUF_NODISCARD ::substrait::ProjectRel* release_project();
::substrait::ProjectRel* mutable_project();
void set_allocated_project(::substrait::ProjectRel* project);
private:
const ::substrait::ProjectRel& _internal_project() const;
::substrait::ProjectRel* _internal_mutable_project();
public:
void unsafe_arena_set_allocated_project(
::substrait::ProjectRel* project);
::substrait::ProjectRel* unsafe_arena_release_project();
// .substrait.SetRel set = 8 [json_name = "set"];
bool has_set() const;
private:
bool _internal_has_set() const;
public:
void clear_set();
const ::substrait::SetRel& set() const;
PROTOBUF_NODISCARD ::substrait::SetRel* release_set();
::substrait::SetRel* mutable_set();
void set_allocated_set(::substrait::SetRel* set);
private:
const ::substrait::SetRel& _internal_set() const;
::substrait::SetRel* _internal_mutable_set();
public:
void unsafe_arena_set_allocated_set(
::substrait::SetRel* set);
::substrait::SetRel* unsafe_arena_release_set();
// .substrait.ExtensionSingleRel extension_single = 9 [json_name = "extensionSingle"];
bool has_extension_single() const;
private:
bool _internal_has_extension_single() const;
public:
void clear_extension_single();
const ::substrait::ExtensionSingleRel& extension_single() const;
PROTOBUF_NODISCARD ::substrait::ExtensionSingleRel* release_extension_single();
::substrait::ExtensionSingleRel* mutable_extension_single();
void set_allocated_extension_single(::substrait::ExtensionSingleRel* extension_single);
private:
const ::substrait::ExtensionSingleRel& _internal_extension_single() const;
::substrait::ExtensionSingleRel* _internal_mutable_extension_single();
public:
void unsafe_arena_set_allocated_extension_single(
::substrait::ExtensionSingleRel* extension_single);
::substrait::ExtensionSingleRel* unsafe_arena_release_extension_single();
// .substrait.ExtensionMultiRel extension_multi = 10 [json_name = "extensionMulti"];
bool has_extension_multi() const;
private:
bool _internal_has_extension_multi() const;
public:
void clear_extension_multi();
const ::substrait::ExtensionMultiRel& extension_multi() const;
PROTOBUF_NODISCARD ::substrait::ExtensionMultiRel* release_extension_multi();
::substrait::ExtensionMultiRel* mutable_extension_multi();
void set_allocated_extension_multi(::substrait::ExtensionMultiRel* extension_multi);
private:
const ::substrait::ExtensionMultiRel& _internal_extension_multi() const;
::substrait::ExtensionMultiRel* _internal_mutable_extension_multi();
public:
void unsafe_arena_set_allocated_extension_multi(
::substrait::ExtensionMultiRel* extension_multi);
::substrait::ExtensionMultiRel* unsafe_arena_release_extension_multi();
// .substrait.ExtensionLeafRel extension_leaf = 11 [json_name = "extensionLeaf"];
bool has_extension_leaf() const;
private:
bool _internal_has_extension_leaf() const;
public:
void clear_extension_leaf();
const ::substrait::ExtensionLeafRel& extension_leaf() const;
PROTOBUF_NODISCARD ::substrait::ExtensionLeafRel* release_extension_leaf();
::substrait::ExtensionLeafRel* mutable_extension_leaf();
void set_allocated_extension_leaf(::substrait::ExtensionLeafRel* extension_leaf);
private:
const ::substrait::ExtensionLeafRel& _internal_extension_leaf() const;
::substrait::ExtensionLeafRel* _internal_mutable_extension_leaf();
public:
void unsafe_arena_set_allocated_extension_leaf(
::substrait::ExtensionLeafRel* extension_leaf);
::substrait::ExtensionLeafRel* unsafe_arena_release_extension_leaf();
// .substrait.CrossRel cross = 12 [json_name = "cross"];
bool has_cross() const;
private:
bool _internal_has_cross() const;
public:
void clear_cross();
const ::substrait::CrossRel& cross() const;
PROTOBUF_NODISCARD ::substrait::CrossRel* release_cross();
::substrait::CrossRel* mutable_cross();
void set_allocated_cross(::substrait::CrossRel* cross);
private:
const ::substrait::CrossRel& _internal_cross() const;
::substrait::CrossRel* _internal_mutable_cross();
public:
void unsafe_arena_set_allocated_cross(
::substrait::CrossRel* cross);
::substrait::CrossRel* unsafe_arena_release_cross();
void clear_rel_type();
RelTypeCase rel_type_case() const;
// @@protoc_insertion_point(class_scope:substrait.Rel)
private:
class _Internal;
void set_has_read();
void set_has_filter();
void set_has_fetch();
void set_has_aggregate();
void set_has_sort();
void set_has_join();
void set_has_project();
void set_has_set();
void set_has_extension_single();
void set_has_extension_multi();
void set_has_extension_leaf();
void set_has_cross();
inline bool has_rel_type() const;
inline void clear_has_rel_type();
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
union RelTypeUnion {
constexpr RelTypeUnion() : _constinit_{} {}
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
::substrait::ReadRel* read_;
::substrait::FilterRel* filter_;
::substrait::FetchRel* fetch_;
::substrait::AggregateRel* aggregate_;
::substrait::SortRel* sort_;
::substrait::JoinRel* join_;
::substrait::ProjectRel* project_;
::substrait::SetRel* set_;
::substrait::ExtensionSingleRel* extension_single_;
::substrait::ExtensionMultiRel* extension_multi_;
::substrait::ExtensionLeafRel* extension_leaf_;
::substrait::CrossRel* cross_;
} rel_type_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1];
friend struct ::TableStruct_substrait_2frelations_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// RelCommon_Direct
// -------------------------------------------------------------------
// RelCommon_Emit
// repeated int32 output_mapping = 1 [json_name = "outputMapping"];
inline int RelCommon_Emit::_internal_output_mapping_size() const {
return output_mapping_.size();
}
inline int RelCommon_Emit::output_mapping_size() const {
return _internal_output_mapping_size();
}
inline void RelCommon_Emit::clear_output_mapping() {
output_mapping_.Clear();
}
inline int32_t RelCommon_Emit::_internal_output_mapping(int index) const {
return output_mapping_.Get(index);
}
inline int32_t RelCommon_Emit::output_mapping(int index) const {
// @@protoc_insertion_point(field_get:substrait.RelCommon.Emit.output_mapping)
return _internal_output_mapping(index);
}
inline void RelCommon_Emit::set_output_mapping(int index, int32_t value) {
output_mapping_.Set(index, value);
// @@protoc_insertion_point(field_set:substrait.RelCommon.Emit.output_mapping)
}
inline void RelCommon_Emit::_internal_add_output_mapping(int32_t value) {
output_mapping_.Add(value);
}
inline void RelCommon_Emit::add_output_mapping(int32_t value) {
_internal_add_output_mapping(value);
// @@protoc_insertion_point(field_add:substrait.RelCommon.Emit.output_mapping)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
RelCommon_Emit::_internal_output_mapping() const {
return output_mapping_;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
RelCommon_Emit::output_mapping() const {
// @@protoc_insertion_point(field_list:substrait.RelCommon.Emit.output_mapping)
return _internal_output_mapping();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
RelCommon_Emit::_internal_mutable_output_mapping() {
return &output_mapping_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
RelCommon_Emit::mutable_output_mapping() {
// @@protoc_insertion_point(field_mutable_list:substrait.RelCommon.Emit.output_mapping)
return _internal_mutable_output_mapping();
}
// -------------------------------------------------------------------
// RelCommon_Hint_Stats
// double row_count = 1 [json_name = "rowCount"];
inline void RelCommon_Hint_Stats::clear_row_count() {
row_count_ = 0;
}
inline double RelCommon_Hint_Stats::_internal_row_count() const {
return row_count_;
}
inline double RelCommon_Hint_Stats::row_count() const {
// @@protoc_insertion_point(field_get:substrait.RelCommon.Hint.Stats.row_count)
return _internal_row_count();
}
inline void RelCommon_Hint_Stats::_internal_set_row_count(double value) {
row_count_ = value;
}
inline void RelCommon_Hint_Stats::set_row_count(double value) {
_internal_set_row_count(value);
// @@protoc_insertion_point(field_set:substrait.RelCommon.Hint.Stats.row_count)
}
// double record_size = 2 [json_name = "recordSize"];
inline void RelCommon_Hint_Stats::clear_record_size() {
record_size_ = 0;
}
inline double RelCommon_Hint_Stats::_internal_record_size() const {
return record_size_;
}
inline double RelCommon_Hint_Stats::record_size() const {
// @@protoc_insertion_point(field_get:substrait.RelCommon.Hint.Stats.record_size)
return _internal_record_size();
}
inline void RelCommon_Hint_Stats::_internal_set_record_size(double value) {
record_size_ = value;
}
inline void RelCommon_Hint_Stats::set_record_size(double value) {
_internal_set_record_size(value);
// @@protoc_insertion_point(field_set:substrait.RelCommon.Hint.Stats.record_size)
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool RelCommon_Hint_Stats::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool RelCommon_Hint_Stats::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& RelCommon_Hint_Stats::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& RelCommon_Hint_Stats::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.RelCommon.Hint.Stats.advanced_extension)
return _internal_advanced_extension();
}
inline void RelCommon_Hint_Stats::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.RelCommon.Hint.Stats.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* RelCommon_Hint_Stats::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* RelCommon_Hint_Stats::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.RelCommon.Hint.Stats.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* RelCommon_Hint_Stats::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* RelCommon_Hint_Stats::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.RelCommon.Hint.Stats.advanced_extension)
return _msg;
}
inline void RelCommon_Hint_Stats::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.RelCommon.Hint.Stats.advanced_extension)
}
// -------------------------------------------------------------------
// RelCommon_Hint_RuntimeConstraint
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool RelCommon_Hint_RuntimeConstraint::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool RelCommon_Hint_RuntimeConstraint::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& RelCommon_Hint_RuntimeConstraint::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& RelCommon_Hint_RuntimeConstraint::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.RelCommon.Hint.RuntimeConstraint.advanced_extension)
return _internal_advanced_extension();
}
inline void RelCommon_Hint_RuntimeConstraint::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.RelCommon.Hint.RuntimeConstraint.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* RelCommon_Hint_RuntimeConstraint::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* RelCommon_Hint_RuntimeConstraint::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.RelCommon.Hint.RuntimeConstraint.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* RelCommon_Hint_RuntimeConstraint::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* RelCommon_Hint_RuntimeConstraint::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.RelCommon.Hint.RuntimeConstraint.advanced_extension)
return _msg;
}
inline void RelCommon_Hint_RuntimeConstraint::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.RelCommon.Hint.RuntimeConstraint.advanced_extension)
}
// -------------------------------------------------------------------
// RelCommon_Hint
// .substrait.RelCommon.Hint.Stats stats = 1 [json_name = "stats"];
inline bool RelCommon_Hint::_internal_has_stats() const {
return this != internal_default_instance() && stats_ != nullptr;
}
inline bool RelCommon_Hint::has_stats() const {
return _internal_has_stats();
}
inline void RelCommon_Hint::clear_stats() {
if (GetArenaForAllocation() == nullptr && stats_ != nullptr) {
delete stats_;
}
stats_ = nullptr;
}
inline const ::substrait::RelCommon_Hint_Stats& RelCommon_Hint::_internal_stats() const {
const ::substrait::RelCommon_Hint_Stats* p = stats_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon_Hint_Stats&>(
::substrait::_RelCommon_Hint_Stats_default_instance_);
}
inline const ::substrait::RelCommon_Hint_Stats& RelCommon_Hint::stats() const {
// @@protoc_insertion_point(field_get:substrait.RelCommon.Hint.stats)
return _internal_stats();
}
inline void RelCommon_Hint::unsafe_arena_set_allocated_stats(
::substrait::RelCommon_Hint_Stats* stats) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(stats_);
}
stats_ = stats;
if (stats) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.RelCommon.Hint.stats)
}
inline ::substrait::RelCommon_Hint_Stats* RelCommon_Hint::release_stats() {
::substrait::RelCommon_Hint_Stats* temp = stats_;
stats_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon_Hint_Stats* RelCommon_Hint::unsafe_arena_release_stats() {
// @@protoc_insertion_point(field_release:substrait.RelCommon.Hint.stats)
::substrait::RelCommon_Hint_Stats* temp = stats_;
stats_ = nullptr;
return temp;
}
inline ::substrait::RelCommon_Hint_Stats* RelCommon_Hint::_internal_mutable_stats() {
if (stats_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon_Hint_Stats>(GetArenaForAllocation());
stats_ = p;
}
return stats_;
}
inline ::substrait::RelCommon_Hint_Stats* RelCommon_Hint::mutable_stats() {
::substrait::RelCommon_Hint_Stats* _msg = _internal_mutable_stats();
// @@protoc_insertion_point(field_mutable:substrait.RelCommon.Hint.stats)
return _msg;
}
inline void RelCommon_Hint::set_allocated_stats(::substrait::RelCommon_Hint_Stats* stats) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete stats_;
}
if (stats) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon_Hint_Stats>::GetOwningArena(stats);
if (message_arena != submessage_arena) {
stats = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, stats, submessage_arena);
}
} else {
}
stats_ = stats;
// @@protoc_insertion_point(field_set_allocated:substrait.RelCommon.Hint.stats)
}
// .substrait.RelCommon.Hint.RuntimeConstraint constraint = 2 [json_name = "constraint"];
inline bool RelCommon_Hint::_internal_has_constraint() const {
return this != internal_default_instance() && constraint_ != nullptr;
}
inline bool RelCommon_Hint::has_constraint() const {
return _internal_has_constraint();
}
inline void RelCommon_Hint::clear_constraint() {
if (GetArenaForAllocation() == nullptr && constraint_ != nullptr) {
delete constraint_;
}
constraint_ = nullptr;
}
inline const ::substrait::RelCommon_Hint_RuntimeConstraint& RelCommon_Hint::_internal_constraint() const {
const ::substrait::RelCommon_Hint_RuntimeConstraint* p = constraint_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon_Hint_RuntimeConstraint&>(
::substrait::_RelCommon_Hint_RuntimeConstraint_default_instance_);
}
inline const ::substrait::RelCommon_Hint_RuntimeConstraint& RelCommon_Hint::constraint() const {
// @@protoc_insertion_point(field_get:substrait.RelCommon.Hint.constraint)
return _internal_constraint();
}
inline void RelCommon_Hint::unsafe_arena_set_allocated_constraint(
::substrait::RelCommon_Hint_RuntimeConstraint* constraint) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(constraint_);
}
constraint_ = constraint;
if (constraint) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.RelCommon.Hint.constraint)
}
inline ::substrait::RelCommon_Hint_RuntimeConstraint* RelCommon_Hint::release_constraint() {
::substrait::RelCommon_Hint_RuntimeConstraint* temp = constraint_;
constraint_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon_Hint_RuntimeConstraint* RelCommon_Hint::unsafe_arena_release_constraint() {
// @@protoc_insertion_point(field_release:substrait.RelCommon.Hint.constraint)
::substrait::RelCommon_Hint_RuntimeConstraint* temp = constraint_;
constraint_ = nullptr;
return temp;
}
inline ::substrait::RelCommon_Hint_RuntimeConstraint* RelCommon_Hint::_internal_mutable_constraint() {
if (constraint_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon_Hint_RuntimeConstraint>(GetArenaForAllocation());
constraint_ = p;
}
return constraint_;
}
inline ::substrait::RelCommon_Hint_RuntimeConstraint* RelCommon_Hint::mutable_constraint() {
::substrait::RelCommon_Hint_RuntimeConstraint* _msg = _internal_mutable_constraint();
// @@protoc_insertion_point(field_mutable:substrait.RelCommon.Hint.constraint)
return _msg;
}
inline void RelCommon_Hint::set_allocated_constraint(::substrait::RelCommon_Hint_RuntimeConstraint* constraint) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete constraint_;
}
if (constraint) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon_Hint_RuntimeConstraint>::GetOwningArena(constraint);
if (message_arena != submessage_arena) {
constraint = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, constraint, submessage_arena);
}
} else {
}
constraint_ = constraint;
// @@protoc_insertion_point(field_set_allocated:substrait.RelCommon.Hint.constraint)
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool RelCommon_Hint::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool RelCommon_Hint::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& RelCommon_Hint::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& RelCommon_Hint::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.RelCommon.Hint.advanced_extension)
return _internal_advanced_extension();
}
inline void RelCommon_Hint::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.RelCommon.Hint.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* RelCommon_Hint::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* RelCommon_Hint::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.RelCommon.Hint.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* RelCommon_Hint::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* RelCommon_Hint::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.RelCommon.Hint.advanced_extension)
return _msg;
}
inline void RelCommon_Hint::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.RelCommon.Hint.advanced_extension)
}
// -------------------------------------------------------------------
// RelCommon
// .substrait.RelCommon.Direct direct = 1 [json_name = "direct"];
inline bool RelCommon::_internal_has_direct() const {
return emit_kind_case() == kDirect;
}
inline bool RelCommon::has_direct() const {
return _internal_has_direct();
}
inline void RelCommon::set_has_direct() {
_oneof_case_[0] = kDirect;
}
inline void RelCommon::clear_direct() {
if (_internal_has_direct()) {
if (GetArenaForAllocation() == nullptr) {
delete emit_kind_.direct_;
}
clear_has_emit_kind();
}
}
inline ::substrait::RelCommon_Direct* RelCommon::release_direct() {
// @@protoc_insertion_point(field_release:substrait.RelCommon.direct)
if (_internal_has_direct()) {
clear_has_emit_kind();
::substrait::RelCommon_Direct* temp = emit_kind_.direct_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
emit_kind_.direct_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::RelCommon_Direct& RelCommon::_internal_direct() const {
return _internal_has_direct()
? *emit_kind_.direct_
: reinterpret_cast< ::substrait::RelCommon_Direct&>(::substrait::_RelCommon_Direct_default_instance_);
}
inline const ::substrait::RelCommon_Direct& RelCommon::direct() const {
// @@protoc_insertion_point(field_get:substrait.RelCommon.direct)
return _internal_direct();
}
inline ::substrait::RelCommon_Direct* RelCommon::unsafe_arena_release_direct() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.RelCommon.direct)
if (_internal_has_direct()) {
clear_has_emit_kind();
::substrait::RelCommon_Direct* temp = emit_kind_.direct_;
emit_kind_.direct_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void RelCommon::unsafe_arena_set_allocated_direct(::substrait::RelCommon_Direct* direct) {
clear_emit_kind();
if (direct) {
set_has_direct();
emit_kind_.direct_ = direct;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.RelCommon.direct)
}
inline ::substrait::RelCommon_Direct* RelCommon::_internal_mutable_direct() {
if (!_internal_has_direct()) {
clear_emit_kind();
set_has_direct();
emit_kind_.direct_ = CreateMaybeMessage< ::substrait::RelCommon_Direct >(GetArenaForAllocation());
}
return emit_kind_.direct_;
}
inline ::substrait::RelCommon_Direct* RelCommon::mutable_direct() {
::substrait::RelCommon_Direct* _msg = _internal_mutable_direct();
// @@protoc_insertion_point(field_mutable:substrait.RelCommon.direct)
return _msg;
}
// .substrait.RelCommon.Emit emit = 2 [json_name = "emit"];
inline bool RelCommon::_internal_has_emit() const {
return emit_kind_case() == kEmit;
}
inline bool RelCommon::has_emit() const {
return _internal_has_emit();
}
inline void RelCommon::set_has_emit() {
_oneof_case_[0] = kEmit;
}
inline void RelCommon::clear_emit() {
if (_internal_has_emit()) {
if (GetArenaForAllocation() == nullptr) {
delete emit_kind_.emit_;
}
clear_has_emit_kind();
}
}
inline ::substrait::RelCommon_Emit* RelCommon::release_emit() {
// @@protoc_insertion_point(field_release:substrait.RelCommon.emit)
if (_internal_has_emit()) {
clear_has_emit_kind();
::substrait::RelCommon_Emit* temp = emit_kind_.emit_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
emit_kind_.emit_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::RelCommon_Emit& RelCommon::_internal_emit() const {
return _internal_has_emit()
? *emit_kind_.emit_
: reinterpret_cast< ::substrait::RelCommon_Emit&>(::substrait::_RelCommon_Emit_default_instance_);
}
inline const ::substrait::RelCommon_Emit& RelCommon::emit() const {
// @@protoc_insertion_point(field_get:substrait.RelCommon.emit)
return _internal_emit();
}
inline ::substrait::RelCommon_Emit* RelCommon::unsafe_arena_release_emit() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.RelCommon.emit)
if (_internal_has_emit()) {
clear_has_emit_kind();
::substrait::RelCommon_Emit* temp = emit_kind_.emit_;
emit_kind_.emit_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void RelCommon::unsafe_arena_set_allocated_emit(::substrait::RelCommon_Emit* emit) {
clear_emit_kind();
if (emit) {
set_has_emit();
emit_kind_.emit_ = emit;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.RelCommon.emit)
}
inline ::substrait::RelCommon_Emit* RelCommon::_internal_mutable_emit() {
if (!_internal_has_emit()) {
clear_emit_kind();
set_has_emit();
emit_kind_.emit_ = CreateMaybeMessage< ::substrait::RelCommon_Emit >(GetArenaForAllocation());
}
return emit_kind_.emit_;
}
inline ::substrait::RelCommon_Emit* RelCommon::mutable_emit() {
::substrait::RelCommon_Emit* _msg = _internal_mutable_emit();
// @@protoc_insertion_point(field_mutable:substrait.RelCommon.emit)
return _msg;
}
// .substrait.RelCommon.Hint hint = 3 [json_name = "hint"];
inline bool RelCommon::_internal_has_hint() const {
return this != internal_default_instance() && hint_ != nullptr;
}
inline bool RelCommon::has_hint() const {
return _internal_has_hint();
}
inline void RelCommon::clear_hint() {
if (GetArenaForAllocation() == nullptr && hint_ != nullptr) {
delete hint_;
}
hint_ = nullptr;
}
inline const ::substrait::RelCommon_Hint& RelCommon::_internal_hint() const {
const ::substrait::RelCommon_Hint* p = hint_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon_Hint&>(
::substrait::_RelCommon_Hint_default_instance_);
}
inline const ::substrait::RelCommon_Hint& RelCommon::hint() const {
// @@protoc_insertion_point(field_get:substrait.RelCommon.hint)
return _internal_hint();
}
inline void RelCommon::unsafe_arena_set_allocated_hint(
::substrait::RelCommon_Hint* hint) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(hint_);
}
hint_ = hint;
if (hint) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.RelCommon.hint)
}
inline ::substrait::RelCommon_Hint* RelCommon::release_hint() {
::substrait::RelCommon_Hint* temp = hint_;
hint_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon_Hint* RelCommon::unsafe_arena_release_hint() {
// @@protoc_insertion_point(field_release:substrait.RelCommon.hint)
::substrait::RelCommon_Hint* temp = hint_;
hint_ = nullptr;
return temp;
}
inline ::substrait::RelCommon_Hint* RelCommon::_internal_mutable_hint() {
if (hint_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon_Hint>(GetArenaForAllocation());
hint_ = p;
}
return hint_;
}
inline ::substrait::RelCommon_Hint* RelCommon::mutable_hint() {
::substrait::RelCommon_Hint* _msg = _internal_mutable_hint();
// @@protoc_insertion_point(field_mutable:substrait.RelCommon.hint)
return _msg;
}
inline void RelCommon::set_allocated_hint(::substrait::RelCommon_Hint* hint) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete hint_;
}
if (hint) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon_Hint>::GetOwningArena(hint);
if (message_arena != submessage_arena) {
hint = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, hint, submessage_arena);
}
} else {
}
hint_ = hint;
// @@protoc_insertion_point(field_set_allocated:substrait.RelCommon.hint)
}
// .substrait.extensions.AdvancedExtension advanced_extension = 4 [json_name = "advancedExtension"];
inline bool RelCommon::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool RelCommon::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& RelCommon::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& RelCommon::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.RelCommon.advanced_extension)
return _internal_advanced_extension();
}
inline void RelCommon::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.RelCommon.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* RelCommon::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* RelCommon::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.RelCommon.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* RelCommon::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* RelCommon::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.RelCommon.advanced_extension)
return _msg;
}
inline void RelCommon::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.RelCommon.advanced_extension)
}
inline bool RelCommon::has_emit_kind() const {
return emit_kind_case() != EMIT_KIND_NOT_SET;
}
inline void RelCommon::clear_has_emit_kind() {
_oneof_case_[0] = EMIT_KIND_NOT_SET;
}
inline RelCommon::EmitKindCase RelCommon::emit_kind_case() const {
return RelCommon::EmitKindCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------
// ReadRel_NamedTable
// repeated string names = 1 [json_name = "names"];
inline int ReadRel_NamedTable::_internal_names_size() const {
return names_.size();
}
inline int ReadRel_NamedTable::names_size() const {
return _internal_names_size();
}
inline void ReadRel_NamedTable::clear_names() {
names_.Clear();
}
inline std::string* ReadRel_NamedTable::add_names() {
std::string* _s = _internal_add_names();
// @@protoc_insertion_point(field_add_mutable:substrait.ReadRel.NamedTable.names)
return _s;
}
inline const std::string& ReadRel_NamedTable::_internal_names(int index) const {
return names_.Get(index);
}
inline const std::string& ReadRel_NamedTable::names(int index) const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.NamedTable.names)
return _internal_names(index);
}
inline std::string* ReadRel_NamedTable::mutable_names(int index) {
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.NamedTable.names)
return names_.Mutable(index);
}
inline void ReadRel_NamedTable::set_names(int index, const std::string& value) {
names_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set:substrait.ReadRel.NamedTable.names)
}
inline void ReadRel_NamedTable::set_names(int index, std::string&& value) {
names_.Mutable(index)->assign(std::move(value));
// @@protoc_insertion_point(field_set:substrait.ReadRel.NamedTable.names)
}
inline void ReadRel_NamedTable::set_names(int index, const char* value) {
GOOGLE_DCHECK(value != nullptr);
names_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:substrait.ReadRel.NamedTable.names)
}
inline void ReadRel_NamedTable::set_names(int index, const char* value, size_t size) {
names_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:substrait.ReadRel.NamedTable.names)
}
inline std::string* ReadRel_NamedTable::_internal_add_names() {
return names_.Add();
}
inline void ReadRel_NamedTable::add_names(const std::string& value) {
names_.Add()->assign(value);
// @@protoc_insertion_point(field_add:substrait.ReadRel.NamedTable.names)
}
inline void ReadRel_NamedTable::add_names(std::string&& value) {
names_.Add(std::move(value));
// @@protoc_insertion_point(field_add:substrait.ReadRel.NamedTable.names)
}
inline void ReadRel_NamedTable::add_names(const char* value) {
GOOGLE_DCHECK(value != nullptr);
names_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:substrait.ReadRel.NamedTable.names)
}
inline void ReadRel_NamedTable::add_names(const char* value, size_t size) {
names_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:substrait.ReadRel.NamedTable.names)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
ReadRel_NamedTable::names() const {
// @@protoc_insertion_point(field_list:substrait.ReadRel.NamedTable.names)
return names_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
ReadRel_NamedTable::mutable_names() {
// @@protoc_insertion_point(field_mutable_list:substrait.ReadRel.NamedTable.names)
return &names_;
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool ReadRel_NamedTable::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool ReadRel_NamedTable::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& ReadRel_NamedTable::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& ReadRel_NamedTable::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.NamedTable.advanced_extension)
return _internal_advanced_extension();
}
inline void ReadRel_NamedTable::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ReadRel.NamedTable.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* ReadRel_NamedTable::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* ReadRel_NamedTable::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.NamedTable.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* ReadRel_NamedTable::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* ReadRel_NamedTable::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.NamedTable.advanced_extension)
return _msg;
}
inline void ReadRel_NamedTable::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.ReadRel.NamedTable.advanced_extension)
}
// -------------------------------------------------------------------
// ReadRel_VirtualTable
// repeated .substrait.Expression.Literal.Struct values = 1 [json_name = "values"];
inline int ReadRel_VirtualTable::_internal_values_size() const {
return values_.size();
}
inline int ReadRel_VirtualTable::values_size() const {
return _internal_values_size();
}
inline ::substrait::Expression_Literal_Struct* ReadRel_VirtualTable::mutable_values(int index) {
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.VirtualTable.values)
return values_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression_Literal_Struct >*
ReadRel_VirtualTable::mutable_values() {
// @@protoc_insertion_point(field_mutable_list:substrait.ReadRel.VirtualTable.values)
return &values_;
}
inline const ::substrait::Expression_Literal_Struct& ReadRel_VirtualTable::_internal_values(int index) const {
return values_.Get(index);
}
inline const ::substrait::Expression_Literal_Struct& ReadRel_VirtualTable::values(int index) const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.VirtualTable.values)
return _internal_values(index);
}
inline ::substrait::Expression_Literal_Struct* ReadRel_VirtualTable::_internal_add_values() {
return values_.Add();
}
inline ::substrait::Expression_Literal_Struct* ReadRel_VirtualTable::add_values() {
::substrait::Expression_Literal_Struct* _add = _internal_add_values();
// @@protoc_insertion_point(field_add:substrait.ReadRel.VirtualTable.values)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression_Literal_Struct >&
ReadRel_VirtualTable::values() const {
// @@protoc_insertion_point(field_list:substrait.ReadRel.VirtualTable.values)
return values_;
}
// -------------------------------------------------------------------
// ReadRel_ExtensionTable
// .google.protobuf.Any detail = 1 [json_name = "detail"];
inline bool ReadRel_ExtensionTable::_internal_has_detail() const {
return this != internal_default_instance() && detail_ != nullptr;
}
inline bool ReadRel_ExtensionTable::has_detail() const {
return _internal_has_detail();
}
inline const ::PROTOBUF_NAMESPACE_ID::Any& ReadRel_ExtensionTable::_internal_detail() const {
const ::PROTOBUF_NAMESPACE_ID::Any* p = detail_;
return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Any&>(
::PROTOBUF_NAMESPACE_ID::_Any_default_instance_);
}
inline const ::PROTOBUF_NAMESPACE_ID::Any& ReadRel_ExtensionTable::detail() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.ExtensionTable.detail)
return _internal_detail();
}
inline void ReadRel_ExtensionTable::unsafe_arena_set_allocated_detail(
::PROTOBUF_NAMESPACE_ID::Any* detail) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(detail_);
}
detail_ = detail;
if (detail) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ReadRel.ExtensionTable.detail)
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ReadRel_ExtensionTable::release_detail() {
::PROTOBUF_NAMESPACE_ID::Any* temp = detail_;
detail_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ReadRel_ExtensionTable::unsafe_arena_release_detail() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.ExtensionTable.detail)
::PROTOBUF_NAMESPACE_ID::Any* temp = detail_;
detail_ = nullptr;
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ReadRel_ExtensionTable::_internal_mutable_detail() {
if (detail_ == nullptr) {
auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Any>(GetArenaForAllocation());
detail_ = p;
}
return detail_;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ReadRel_ExtensionTable::mutable_detail() {
::PROTOBUF_NAMESPACE_ID::Any* _msg = _internal_mutable_detail();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.ExtensionTable.detail)
return _msg;
}
inline void ReadRel_ExtensionTable::set_allocated_detail(::PROTOBUF_NAMESPACE_ID::Any* detail) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(detail_);
}
if (detail) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(detail));
if (message_arena != submessage_arena) {
detail = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, detail, submessage_arena);
}
} else {
}
detail_ = detail;
// @@protoc_insertion_point(field_set_allocated:substrait.ReadRel.ExtensionTable.detail)
}
// -------------------------------------------------------------------
// ReadRel_LocalFiles_FileOrFiles
// string uri_path = 1 [json_name = "uriPath"];
inline bool ReadRel_LocalFiles_FileOrFiles::_internal_has_uri_path() const {
return path_type_case() == kUriPath;
}
inline bool ReadRel_LocalFiles_FileOrFiles::has_uri_path() const {
return _internal_has_uri_path();
}
inline void ReadRel_LocalFiles_FileOrFiles::set_has_uri_path() {
_oneof_case_[0] = kUriPath;
}
inline void ReadRel_LocalFiles_FileOrFiles::clear_uri_path() {
if (_internal_has_uri_path()) {
path_type_.uri_path_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
clear_has_path_type();
}
}
inline const std::string& ReadRel_LocalFiles_FileOrFiles::uri_path() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.LocalFiles.FileOrFiles.uri_path)
return _internal_uri_path();
}
template <typename ArgT0, typename... ArgT>
inline void ReadRel_LocalFiles_FileOrFiles::set_uri_path(ArgT0&& arg0, ArgT... args) {
if (!_internal_has_uri_path()) {
clear_path_type();
set_has_uri_path();
path_type_.uri_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
path_type_.uri_path_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:substrait.ReadRel.LocalFiles.FileOrFiles.uri_path)
}
inline std::string* ReadRel_LocalFiles_FileOrFiles::mutable_uri_path() {
std::string* _s = _internal_mutable_uri_path();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.LocalFiles.FileOrFiles.uri_path)
return _s;
}
inline const std::string& ReadRel_LocalFiles_FileOrFiles::_internal_uri_path() const {
if (_internal_has_uri_path()) {
return path_type_.uri_path_.Get();
}
return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
}
inline void ReadRel_LocalFiles_FileOrFiles::_internal_set_uri_path(const std::string& value) {
if (!_internal_has_uri_path()) {
clear_path_type();
set_has_uri_path();
path_type_.uri_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
path_type_.uri_path_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* ReadRel_LocalFiles_FileOrFiles::_internal_mutable_uri_path() {
if (!_internal_has_uri_path()) {
clear_path_type();
set_has_uri_path();
path_type_.uri_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
return path_type_.uri_path_.Mutable(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* ReadRel_LocalFiles_FileOrFiles::release_uri_path() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.LocalFiles.FileOrFiles.uri_path)
if (_internal_has_uri_path()) {
clear_has_path_type();
return path_type_.uri_path_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
} else {
return nullptr;
}
}
inline void ReadRel_LocalFiles_FileOrFiles::set_allocated_uri_path(std::string* uri_path) {
if (has_path_type()) {
clear_path_type();
}
if (uri_path != nullptr) {
set_has_uri_path();
path_type_.uri_path_.UnsafeSetDefault(uri_path);
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
if (arena != nullptr) {
arena->Own(uri_path);
}
}
// @@protoc_insertion_point(field_set_allocated:substrait.ReadRel.LocalFiles.FileOrFiles.uri_path)
}
// string uri_path_glob = 2 [json_name = "uriPathGlob"];
inline bool ReadRel_LocalFiles_FileOrFiles::_internal_has_uri_path_glob() const {
return path_type_case() == kUriPathGlob;
}
inline bool ReadRel_LocalFiles_FileOrFiles::has_uri_path_glob() const {
return _internal_has_uri_path_glob();
}
inline void ReadRel_LocalFiles_FileOrFiles::set_has_uri_path_glob() {
_oneof_case_[0] = kUriPathGlob;
}
inline void ReadRel_LocalFiles_FileOrFiles::clear_uri_path_glob() {
if (_internal_has_uri_path_glob()) {
path_type_.uri_path_glob_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
clear_has_path_type();
}
}
inline const std::string& ReadRel_LocalFiles_FileOrFiles::uri_path_glob() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.LocalFiles.FileOrFiles.uri_path_glob)
return _internal_uri_path_glob();
}
template <typename ArgT0, typename... ArgT>
inline void ReadRel_LocalFiles_FileOrFiles::set_uri_path_glob(ArgT0&& arg0, ArgT... args) {
if (!_internal_has_uri_path_glob()) {
clear_path_type();
set_has_uri_path_glob();
path_type_.uri_path_glob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
path_type_.uri_path_glob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:substrait.ReadRel.LocalFiles.FileOrFiles.uri_path_glob)
}
inline std::string* ReadRel_LocalFiles_FileOrFiles::mutable_uri_path_glob() {
std::string* _s = _internal_mutable_uri_path_glob();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.LocalFiles.FileOrFiles.uri_path_glob)
return _s;
}
inline const std::string& ReadRel_LocalFiles_FileOrFiles::_internal_uri_path_glob() const {
if (_internal_has_uri_path_glob()) {
return path_type_.uri_path_glob_.Get();
}
return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
}
inline void ReadRel_LocalFiles_FileOrFiles::_internal_set_uri_path_glob(const std::string& value) {
if (!_internal_has_uri_path_glob()) {
clear_path_type();
set_has_uri_path_glob();
path_type_.uri_path_glob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
path_type_.uri_path_glob_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* ReadRel_LocalFiles_FileOrFiles::_internal_mutable_uri_path_glob() {
if (!_internal_has_uri_path_glob()) {
clear_path_type();
set_has_uri_path_glob();
path_type_.uri_path_glob_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
return path_type_.uri_path_glob_.Mutable(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* ReadRel_LocalFiles_FileOrFiles::release_uri_path_glob() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.LocalFiles.FileOrFiles.uri_path_glob)
if (_internal_has_uri_path_glob()) {
clear_has_path_type();
return path_type_.uri_path_glob_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
} else {
return nullptr;
}
}
inline void ReadRel_LocalFiles_FileOrFiles::set_allocated_uri_path_glob(std::string* uri_path_glob) {
if (has_path_type()) {
clear_path_type();
}
if (uri_path_glob != nullptr) {
set_has_uri_path_glob();
path_type_.uri_path_glob_.UnsafeSetDefault(uri_path_glob);
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
if (arena != nullptr) {
arena->Own(uri_path_glob);
}
}
// @@protoc_insertion_point(field_set_allocated:substrait.ReadRel.LocalFiles.FileOrFiles.uri_path_glob)
}
// string uri_file = 3 [json_name = "uriFile"];
inline bool ReadRel_LocalFiles_FileOrFiles::_internal_has_uri_file() const {
return path_type_case() == kUriFile;
}
inline bool ReadRel_LocalFiles_FileOrFiles::has_uri_file() const {
return _internal_has_uri_file();
}
inline void ReadRel_LocalFiles_FileOrFiles::set_has_uri_file() {
_oneof_case_[0] = kUriFile;
}
inline void ReadRel_LocalFiles_FileOrFiles::clear_uri_file() {
if (_internal_has_uri_file()) {
path_type_.uri_file_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
clear_has_path_type();
}
}
inline const std::string& ReadRel_LocalFiles_FileOrFiles::uri_file() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.LocalFiles.FileOrFiles.uri_file)
return _internal_uri_file();
}
template <typename ArgT0, typename... ArgT>
inline void ReadRel_LocalFiles_FileOrFiles::set_uri_file(ArgT0&& arg0, ArgT... args) {
if (!_internal_has_uri_file()) {
clear_path_type();
set_has_uri_file();
path_type_.uri_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
path_type_.uri_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:substrait.ReadRel.LocalFiles.FileOrFiles.uri_file)
}
inline std::string* ReadRel_LocalFiles_FileOrFiles::mutable_uri_file() {
std::string* _s = _internal_mutable_uri_file();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.LocalFiles.FileOrFiles.uri_file)
return _s;
}
inline const std::string& ReadRel_LocalFiles_FileOrFiles::_internal_uri_file() const {
if (_internal_has_uri_file()) {
return path_type_.uri_file_.Get();
}
return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
}
inline void ReadRel_LocalFiles_FileOrFiles::_internal_set_uri_file(const std::string& value) {
if (!_internal_has_uri_file()) {
clear_path_type();
set_has_uri_file();
path_type_.uri_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
path_type_.uri_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* ReadRel_LocalFiles_FileOrFiles::_internal_mutable_uri_file() {
if (!_internal_has_uri_file()) {
clear_path_type();
set_has_uri_file();
path_type_.uri_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
return path_type_.uri_file_.Mutable(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* ReadRel_LocalFiles_FileOrFiles::release_uri_file() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.LocalFiles.FileOrFiles.uri_file)
if (_internal_has_uri_file()) {
clear_has_path_type();
return path_type_.uri_file_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
} else {
return nullptr;
}
}
inline void ReadRel_LocalFiles_FileOrFiles::set_allocated_uri_file(std::string* uri_file) {
if (has_path_type()) {
clear_path_type();
}
if (uri_file != nullptr) {
set_has_uri_file();
path_type_.uri_file_.UnsafeSetDefault(uri_file);
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
if (arena != nullptr) {
arena->Own(uri_file);
}
}
// @@protoc_insertion_point(field_set_allocated:substrait.ReadRel.LocalFiles.FileOrFiles.uri_file)
}
// string uri_folder = 4 [json_name = "uriFolder"];
inline bool ReadRel_LocalFiles_FileOrFiles::_internal_has_uri_folder() const {
return path_type_case() == kUriFolder;
}
inline bool ReadRel_LocalFiles_FileOrFiles::has_uri_folder() const {
return _internal_has_uri_folder();
}
inline void ReadRel_LocalFiles_FileOrFiles::set_has_uri_folder() {
_oneof_case_[0] = kUriFolder;
}
inline void ReadRel_LocalFiles_FileOrFiles::clear_uri_folder() {
if (_internal_has_uri_folder()) {
path_type_.uri_folder_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
clear_has_path_type();
}
}
inline const std::string& ReadRel_LocalFiles_FileOrFiles::uri_folder() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.LocalFiles.FileOrFiles.uri_folder)
return _internal_uri_folder();
}
template <typename ArgT0, typename... ArgT>
inline void ReadRel_LocalFiles_FileOrFiles::set_uri_folder(ArgT0&& arg0, ArgT... args) {
if (!_internal_has_uri_folder()) {
clear_path_type();
set_has_uri_folder();
path_type_.uri_folder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
path_type_.uri_folder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:substrait.ReadRel.LocalFiles.FileOrFiles.uri_folder)
}
inline std::string* ReadRel_LocalFiles_FileOrFiles::mutable_uri_folder() {
std::string* _s = _internal_mutable_uri_folder();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.LocalFiles.FileOrFiles.uri_folder)
return _s;
}
inline const std::string& ReadRel_LocalFiles_FileOrFiles::_internal_uri_folder() const {
if (_internal_has_uri_folder()) {
return path_type_.uri_folder_.Get();
}
return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
}
inline void ReadRel_LocalFiles_FileOrFiles::_internal_set_uri_folder(const std::string& value) {
if (!_internal_has_uri_folder()) {
clear_path_type();
set_has_uri_folder();
path_type_.uri_folder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
path_type_.uri_folder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* ReadRel_LocalFiles_FileOrFiles::_internal_mutable_uri_folder() {
if (!_internal_has_uri_folder()) {
clear_path_type();
set_has_uri_folder();
path_type_.uri_folder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
return path_type_.uri_folder_.Mutable(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* ReadRel_LocalFiles_FileOrFiles::release_uri_folder() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.LocalFiles.FileOrFiles.uri_folder)
if (_internal_has_uri_folder()) {
clear_has_path_type();
return path_type_.uri_folder_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
} else {
return nullptr;
}
}
inline void ReadRel_LocalFiles_FileOrFiles::set_allocated_uri_folder(std::string* uri_folder) {
if (has_path_type()) {
clear_path_type();
}
if (uri_folder != nullptr) {
set_has_uri_folder();
path_type_.uri_folder_.UnsafeSetDefault(uri_folder);
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
if (arena != nullptr) {
arena->Own(uri_folder);
}
}
// @@protoc_insertion_point(field_set_allocated:substrait.ReadRel.LocalFiles.FileOrFiles.uri_folder)
}
// .substrait.ReadRel.LocalFiles.FileOrFiles.FileFormat format = 5 [json_name = "format"];
inline void ReadRel_LocalFiles_FileOrFiles::clear_format() {
format_ = 0;
}
inline ::substrait::ReadRel_LocalFiles_FileOrFiles_FileFormat ReadRel_LocalFiles_FileOrFiles::_internal_format() const {
return static_cast< ::substrait::ReadRel_LocalFiles_FileOrFiles_FileFormat >(format_);
}
inline ::substrait::ReadRel_LocalFiles_FileOrFiles_FileFormat ReadRel_LocalFiles_FileOrFiles::format() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.LocalFiles.FileOrFiles.format)
return _internal_format();
}
inline void ReadRel_LocalFiles_FileOrFiles::_internal_set_format(::substrait::ReadRel_LocalFiles_FileOrFiles_FileFormat value) {
format_ = value;
}
inline void ReadRel_LocalFiles_FileOrFiles::set_format(::substrait::ReadRel_LocalFiles_FileOrFiles_FileFormat value) {
_internal_set_format(value);
// @@protoc_insertion_point(field_set:substrait.ReadRel.LocalFiles.FileOrFiles.format)
}
// uint64 partition_index = 6 [json_name = "partitionIndex"];
inline void ReadRel_LocalFiles_FileOrFiles::clear_partition_index() {
partition_index_ = uint64_t{0u};
}
inline uint64_t ReadRel_LocalFiles_FileOrFiles::_internal_partition_index() const {
return partition_index_;
}
inline uint64_t ReadRel_LocalFiles_FileOrFiles::partition_index() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.LocalFiles.FileOrFiles.partition_index)
return _internal_partition_index();
}
inline void ReadRel_LocalFiles_FileOrFiles::_internal_set_partition_index(uint64_t value) {
partition_index_ = value;
}
inline void ReadRel_LocalFiles_FileOrFiles::set_partition_index(uint64_t value) {
_internal_set_partition_index(value);
// @@protoc_insertion_point(field_set:substrait.ReadRel.LocalFiles.FileOrFiles.partition_index)
}
// uint64 start = 7 [json_name = "start"];
inline void ReadRel_LocalFiles_FileOrFiles::clear_start() {
start_ = uint64_t{0u};
}
inline uint64_t ReadRel_LocalFiles_FileOrFiles::_internal_start() const {
return start_;
}
inline uint64_t ReadRel_LocalFiles_FileOrFiles::start() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.LocalFiles.FileOrFiles.start)
return _internal_start();
}
inline void ReadRel_LocalFiles_FileOrFiles::_internal_set_start(uint64_t value) {
start_ = value;
}
inline void ReadRel_LocalFiles_FileOrFiles::set_start(uint64_t value) {
_internal_set_start(value);
// @@protoc_insertion_point(field_set:substrait.ReadRel.LocalFiles.FileOrFiles.start)
}
// uint64 length = 8 [json_name = "length"];
inline void ReadRel_LocalFiles_FileOrFiles::clear_length() {
length_ = uint64_t{0u};
}
inline uint64_t ReadRel_LocalFiles_FileOrFiles::_internal_length() const {
return length_;
}
inline uint64_t ReadRel_LocalFiles_FileOrFiles::length() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.LocalFiles.FileOrFiles.length)
return _internal_length();
}
inline void ReadRel_LocalFiles_FileOrFiles::_internal_set_length(uint64_t value) {
length_ = value;
}
inline void ReadRel_LocalFiles_FileOrFiles::set_length(uint64_t value) {
_internal_set_length(value);
// @@protoc_insertion_point(field_set:substrait.ReadRel.LocalFiles.FileOrFiles.length)
}
inline bool ReadRel_LocalFiles_FileOrFiles::has_path_type() const {
return path_type_case() != PATH_TYPE_NOT_SET;
}
inline void ReadRel_LocalFiles_FileOrFiles::clear_has_path_type() {
_oneof_case_[0] = PATH_TYPE_NOT_SET;
}
inline ReadRel_LocalFiles_FileOrFiles::PathTypeCase ReadRel_LocalFiles_FileOrFiles::path_type_case() const {
return ReadRel_LocalFiles_FileOrFiles::PathTypeCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------
// ReadRel_LocalFiles
// repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1 [json_name = "items"];
inline int ReadRel_LocalFiles::_internal_items_size() const {
return items_.size();
}
inline int ReadRel_LocalFiles::items_size() const {
return _internal_items_size();
}
inline void ReadRel_LocalFiles::clear_items() {
items_.Clear();
}
inline ::substrait::ReadRel_LocalFiles_FileOrFiles* ReadRel_LocalFiles::mutable_items(int index) {
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.LocalFiles.items)
return items_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::ReadRel_LocalFiles_FileOrFiles >*
ReadRel_LocalFiles::mutable_items() {
// @@protoc_insertion_point(field_mutable_list:substrait.ReadRel.LocalFiles.items)
return &items_;
}
inline const ::substrait::ReadRel_LocalFiles_FileOrFiles& ReadRel_LocalFiles::_internal_items(int index) const {
return items_.Get(index);
}
inline const ::substrait::ReadRel_LocalFiles_FileOrFiles& ReadRel_LocalFiles::items(int index) const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.LocalFiles.items)
return _internal_items(index);
}
inline ::substrait::ReadRel_LocalFiles_FileOrFiles* ReadRel_LocalFiles::_internal_add_items() {
return items_.Add();
}
inline ::substrait::ReadRel_LocalFiles_FileOrFiles* ReadRel_LocalFiles::add_items() {
::substrait::ReadRel_LocalFiles_FileOrFiles* _add = _internal_add_items();
// @@protoc_insertion_point(field_add:substrait.ReadRel.LocalFiles.items)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::ReadRel_LocalFiles_FileOrFiles >&
ReadRel_LocalFiles::items() const {
// @@protoc_insertion_point(field_list:substrait.ReadRel.LocalFiles.items)
return items_;
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool ReadRel_LocalFiles::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool ReadRel_LocalFiles::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& ReadRel_LocalFiles::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& ReadRel_LocalFiles::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.LocalFiles.advanced_extension)
return _internal_advanced_extension();
}
inline void ReadRel_LocalFiles::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ReadRel.LocalFiles.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* ReadRel_LocalFiles::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* ReadRel_LocalFiles::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.LocalFiles.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* ReadRel_LocalFiles::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* ReadRel_LocalFiles::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.LocalFiles.advanced_extension)
return _msg;
}
inline void ReadRel_LocalFiles::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.ReadRel.LocalFiles.advanced_extension)
}
// -------------------------------------------------------------------
// ReadRel
// .substrait.RelCommon common = 1 [json_name = "common"];
inline bool ReadRel::_internal_has_common() const {
return this != internal_default_instance() && common_ != nullptr;
}
inline bool ReadRel::has_common() const {
return _internal_has_common();
}
inline void ReadRel::clear_common() {
if (GetArenaForAllocation() == nullptr && common_ != nullptr) {
delete common_;
}
common_ = nullptr;
}
inline const ::substrait::RelCommon& ReadRel::_internal_common() const {
const ::substrait::RelCommon* p = common_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon&>(
::substrait::_RelCommon_default_instance_);
}
inline const ::substrait::RelCommon& ReadRel::common() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.common)
return _internal_common();
}
inline void ReadRel::unsafe_arena_set_allocated_common(
::substrait::RelCommon* common) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_);
}
common_ = common;
if (common) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ReadRel.common)
}
inline ::substrait::RelCommon* ReadRel::release_common() {
::substrait::RelCommon* temp = common_;
common_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon* ReadRel::unsafe_arena_release_common() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.common)
::substrait::RelCommon* temp = common_;
common_ = nullptr;
return temp;
}
inline ::substrait::RelCommon* ReadRel::_internal_mutable_common() {
if (common_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon>(GetArenaForAllocation());
common_ = p;
}
return common_;
}
inline ::substrait::RelCommon* ReadRel::mutable_common() {
::substrait::RelCommon* _msg = _internal_mutable_common();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.common)
return _msg;
}
inline void ReadRel::set_allocated_common(::substrait::RelCommon* common) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete common_;
}
if (common) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon>::GetOwningArena(common);
if (message_arena != submessage_arena) {
common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, common, submessage_arena);
}
} else {
}
common_ = common;
// @@protoc_insertion_point(field_set_allocated:substrait.ReadRel.common)
}
// .substrait.NamedStruct base_schema = 2 [json_name = "baseSchema"];
inline bool ReadRel::_internal_has_base_schema() const {
return this != internal_default_instance() && base_schema_ != nullptr;
}
inline bool ReadRel::has_base_schema() const {
return _internal_has_base_schema();
}
inline const ::substrait::NamedStruct& ReadRel::_internal_base_schema() const {
const ::substrait::NamedStruct* p = base_schema_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::NamedStruct&>(
::substrait::_NamedStruct_default_instance_);
}
inline const ::substrait::NamedStruct& ReadRel::base_schema() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.base_schema)
return _internal_base_schema();
}
inline void ReadRel::unsafe_arena_set_allocated_base_schema(
::substrait::NamedStruct* base_schema) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_schema_);
}
base_schema_ = base_schema;
if (base_schema) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ReadRel.base_schema)
}
inline ::substrait::NamedStruct* ReadRel::release_base_schema() {
::substrait::NamedStruct* temp = base_schema_;
base_schema_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::NamedStruct* ReadRel::unsafe_arena_release_base_schema() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.base_schema)
::substrait::NamedStruct* temp = base_schema_;
base_schema_ = nullptr;
return temp;
}
inline ::substrait::NamedStruct* ReadRel::_internal_mutable_base_schema() {
if (base_schema_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::NamedStruct>(GetArenaForAllocation());
base_schema_ = p;
}
return base_schema_;
}
inline ::substrait::NamedStruct* ReadRel::mutable_base_schema() {
::substrait::NamedStruct* _msg = _internal_mutable_base_schema();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.base_schema)
return _msg;
}
inline void ReadRel::set_allocated_base_schema(::substrait::NamedStruct* base_schema) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_schema_);
}
if (base_schema) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_schema));
if (message_arena != submessage_arena) {
base_schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, base_schema, submessage_arena);
}
} else {
}
base_schema_ = base_schema;
// @@protoc_insertion_point(field_set_allocated:substrait.ReadRel.base_schema)
}
// .substrait.Expression filter = 3 [json_name = "filter"];
inline bool ReadRel::_internal_has_filter() const {
return this != internal_default_instance() && filter_ != nullptr;
}
inline bool ReadRel::has_filter() const {
return _internal_has_filter();
}
inline const ::substrait::Expression& ReadRel::_internal_filter() const {
const ::substrait::Expression* p = filter_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Expression&>(
::substrait::_Expression_default_instance_);
}
inline const ::substrait::Expression& ReadRel::filter() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.filter)
return _internal_filter();
}
inline void ReadRel::unsafe_arena_set_allocated_filter(
::substrait::Expression* filter) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(filter_);
}
filter_ = filter;
if (filter) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ReadRel.filter)
}
inline ::substrait::Expression* ReadRel::release_filter() {
::substrait::Expression* temp = filter_;
filter_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Expression* ReadRel::unsafe_arena_release_filter() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.filter)
::substrait::Expression* temp = filter_;
filter_ = nullptr;
return temp;
}
inline ::substrait::Expression* ReadRel::_internal_mutable_filter() {
if (filter_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Expression>(GetArenaForAllocation());
filter_ = p;
}
return filter_;
}
inline ::substrait::Expression* ReadRel::mutable_filter() {
::substrait::Expression* _msg = _internal_mutable_filter();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.filter)
return _msg;
}
inline void ReadRel::set_allocated_filter(::substrait::Expression* filter) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(filter_);
}
if (filter) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(filter));
if (message_arena != submessage_arena) {
filter = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, filter, submessage_arena);
}
} else {
}
filter_ = filter;
// @@protoc_insertion_point(field_set_allocated:substrait.ReadRel.filter)
}
// .substrait.Expression.MaskExpression projection = 4 [json_name = "projection"];
inline bool ReadRel::_internal_has_projection() const {
return this != internal_default_instance() && projection_ != nullptr;
}
inline bool ReadRel::has_projection() const {
return _internal_has_projection();
}
inline const ::substrait::Expression_MaskExpression& ReadRel::_internal_projection() const {
const ::substrait::Expression_MaskExpression* p = projection_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Expression_MaskExpression&>(
::substrait::_Expression_MaskExpression_default_instance_);
}
inline const ::substrait::Expression_MaskExpression& ReadRel::projection() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.projection)
return _internal_projection();
}
inline void ReadRel::unsafe_arena_set_allocated_projection(
::substrait::Expression_MaskExpression* projection) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(projection_);
}
projection_ = projection;
if (projection) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ReadRel.projection)
}
inline ::substrait::Expression_MaskExpression* ReadRel::release_projection() {
::substrait::Expression_MaskExpression* temp = projection_;
projection_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Expression_MaskExpression* ReadRel::unsafe_arena_release_projection() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.projection)
::substrait::Expression_MaskExpression* temp = projection_;
projection_ = nullptr;
return temp;
}
inline ::substrait::Expression_MaskExpression* ReadRel::_internal_mutable_projection() {
if (projection_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Expression_MaskExpression>(GetArenaForAllocation());
projection_ = p;
}
return projection_;
}
inline ::substrait::Expression_MaskExpression* ReadRel::mutable_projection() {
::substrait::Expression_MaskExpression* _msg = _internal_mutable_projection();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.projection)
return _msg;
}
inline void ReadRel::set_allocated_projection(::substrait::Expression_MaskExpression* projection) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(projection_);
}
if (projection) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(projection));
if (message_arena != submessage_arena) {
projection = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, projection, submessage_arena);
}
} else {
}
projection_ = projection;
// @@protoc_insertion_point(field_set_allocated:substrait.ReadRel.projection)
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool ReadRel::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool ReadRel::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& ReadRel::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& ReadRel::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.advanced_extension)
return _internal_advanced_extension();
}
inline void ReadRel::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ReadRel.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* ReadRel::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* ReadRel::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* ReadRel::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* ReadRel::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.advanced_extension)
return _msg;
}
inline void ReadRel::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.ReadRel.advanced_extension)
}
// .substrait.ReadRel.VirtualTable virtual_table = 5 [json_name = "virtualTable"];
inline bool ReadRel::_internal_has_virtual_table() const {
return read_type_case() == kVirtualTable;
}
inline bool ReadRel::has_virtual_table() const {
return _internal_has_virtual_table();
}
inline void ReadRel::set_has_virtual_table() {
_oneof_case_[0] = kVirtualTable;
}
inline void ReadRel::clear_virtual_table() {
if (_internal_has_virtual_table()) {
if (GetArenaForAllocation() == nullptr) {
delete read_type_.virtual_table_;
}
clear_has_read_type();
}
}
inline ::substrait::ReadRel_VirtualTable* ReadRel::release_virtual_table() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.virtual_table)
if (_internal_has_virtual_table()) {
clear_has_read_type();
::substrait::ReadRel_VirtualTable* temp = read_type_.virtual_table_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
read_type_.virtual_table_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::ReadRel_VirtualTable& ReadRel::_internal_virtual_table() const {
return _internal_has_virtual_table()
? *read_type_.virtual_table_
: reinterpret_cast< ::substrait::ReadRel_VirtualTable&>(::substrait::_ReadRel_VirtualTable_default_instance_);
}
inline const ::substrait::ReadRel_VirtualTable& ReadRel::virtual_table() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.virtual_table)
return _internal_virtual_table();
}
inline ::substrait::ReadRel_VirtualTable* ReadRel::unsafe_arena_release_virtual_table() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.ReadRel.virtual_table)
if (_internal_has_virtual_table()) {
clear_has_read_type();
::substrait::ReadRel_VirtualTable* temp = read_type_.virtual_table_;
read_type_.virtual_table_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void ReadRel::unsafe_arena_set_allocated_virtual_table(::substrait::ReadRel_VirtualTable* virtual_table) {
clear_read_type();
if (virtual_table) {
set_has_virtual_table();
read_type_.virtual_table_ = virtual_table;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ReadRel.virtual_table)
}
inline ::substrait::ReadRel_VirtualTable* ReadRel::_internal_mutable_virtual_table() {
if (!_internal_has_virtual_table()) {
clear_read_type();
set_has_virtual_table();
read_type_.virtual_table_ = CreateMaybeMessage< ::substrait::ReadRel_VirtualTable >(GetArenaForAllocation());
}
return read_type_.virtual_table_;
}
inline ::substrait::ReadRel_VirtualTable* ReadRel::mutable_virtual_table() {
::substrait::ReadRel_VirtualTable* _msg = _internal_mutable_virtual_table();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.virtual_table)
return _msg;
}
// .substrait.ReadRel.LocalFiles local_files = 6 [json_name = "localFiles"];
inline bool ReadRel::_internal_has_local_files() const {
return read_type_case() == kLocalFiles;
}
inline bool ReadRel::has_local_files() const {
return _internal_has_local_files();
}
inline void ReadRel::set_has_local_files() {
_oneof_case_[0] = kLocalFiles;
}
inline void ReadRel::clear_local_files() {
if (_internal_has_local_files()) {
if (GetArenaForAllocation() == nullptr) {
delete read_type_.local_files_;
}
clear_has_read_type();
}
}
inline ::substrait::ReadRel_LocalFiles* ReadRel::release_local_files() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.local_files)
if (_internal_has_local_files()) {
clear_has_read_type();
::substrait::ReadRel_LocalFiles* temp = read_type_.local_files_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
read_type_.local_files_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::ReadRel_LocalFiles& ReadRel::_internal_local_files() const {
return _internal_has_local_files()
? *read_type_.local_files_
: reinterpret_cast< ::substrait::ReadRel_LocalFiles&>(::substrait::_ReadRel_LocalFiles_default_instance_);
}
inline const ::substrait::ReadRel_LocalFiles& ReadRel::local_files() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.local_files)
return _internal_local_files();
}
inline ::substrait::ReadRel_LocalFiles* ReadRel::unsafe_arena_release_local_files() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.ReadRel.local_files)
if (_internal_has_local_files()) {
clear_has_read_type();
::substrait::ReadRel_LocalFiles* temp = read_type_.local_files_;
read_type_.local_files_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void ReadRel::unsafe_arena_set_allocated_local_files(::substrait::ReadRel_LocalFiles* local_files) {
clear_read_type();
if (local_files) {
set_has_local_files();
read_type_.local_files_ = local_files;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ReadRel.local_files)
}
inline ::substrait::ReadRel_LocalFiles* ReadRel::_internal_mutable_local_files() {
if (!_internal_has_local_files()) {
clear_read_type();
set_has_local_files();
read_type_.local_files_ = CreateMaybeMessage< ::substrait::ReadRel_LocalFiles >(GetArenaForAllocation());
}
return read_type_.local_files_;
}
inline ::substrait::ReadRel_LocalFiles* ReadRel::mutable_local_files() {
::substrait::ReadRel_LocalFiles* _msg = _internal_mutable_local_files();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.local_files)
return _msg;
}
// .substrait.ReadRel.NamedTable named_table = 7 [json_name = "namedTable"];
inline bool ReadRel::_internal_has_named_table() const {
return read_type_case() == kNamedTable;
}
inline bool ReadRel::has_named_table() const {
return _internal_has_named_table();
}
inline void ReadRel::set_has_named_table() {
_oneof_case_[0] = kNamedTable;
}
inline void ReadRel::clear_named_table() {
if (_internal_has_named_table()) {
if (GetArenaForAllocation() == nullptr) {
delete read_type_.named_table_;
}
clear_has_read_type();
}
}
inline ::substrait::ReadRel_NamedTable* ReadRel::release_named_table() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.named_table)
if (_internal_has_named_table()) {
clear_has_read_type();
::substrait::ReadRel_NamedTable* temp = read_type_.named_table_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
read_type_.named_table_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::ReadRel_NamedTable& ReadRel::_internal_named_table() const {
return _internal_has_named_table()
? *read_type_.named_table_
: reinterpret_cast< ::substrait::ReadRel_NamedTable&>(::substrait::_ReadRel_NamedTable_default_instance_);
}
inline const ::substrait::ReadRel_NamedTable& ReadRel::named_table() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.named_table)
return _internal_named_table();
}
inline ::substrait::ReadRel_NamedTable* ReadRel::unsafe_arena_release_named_table() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.ReadRel.named_table)
if (_internal_has_named_table()) {
clear_has_read_type();
::substrait::ReadRel_NamedTable* temp = read_type_.named_table_;
read_type_.named_table_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void ReadRel::unsafe_arena_set_allocated_named_table(::substrait::ReadRel_NamedTable* named_table) {
clear_read_type();
if (named_table) {
set_has_named_table();
read_type_.named_table_ = named_table;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ReadRel.named_table)
}
inline ::substrait::ReadRel_NamedTable* ReadRel::_internal_mutable_named_table() {
if (!_internal_has_named_table()) {
clear_read_type();
set_has_named_table();
read_type_.named_table_ = CreateMaybeMessage< ::substrait::ReadRel_NamedTable >(GetArenaForAllocation());
}
return read_type_.named_table_;
}
inline ::substrait::ReadRel_NamedTable* ReadRel::mutable_named_table() {
::substrait::ReadRel_NamedTable* _msg = _internal_mutable_named_table();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.named_table)
return _msg;
}
// .substrait.ReadRel.ExtensionTable extension_table = 8 [json_name = "extensionTable"];
inline bool ReadRel::_internal_has_extension_table() const {
return read_type_case() == kExtensionTable;
}
inline bool ReadRel::has_extension_table() const {
return _internal_has_extension_table();
}
inline void ReadRel::set_has_extension_table() {
_oneof_case_[0] = kExtensionTable;
}
inline void ReadRel::clear_extension_table() {
if (_internal_has_extension_table()) {
if (GetArenaForAllocation() == nullptr) {
delete read_type_.extension_table_;
}
clear_has_read_type();
}
}
inline ::substrait::ReadRel_ExtensionTable* ReadRel::release_extension_table() {
// @@protoc_insertion_point(field_release:substrait.ReadRel.extension_table)
if (_internal_has_extension_table()) {
clear_has_read_type();
::substrait::ReadRel_ExtensionTable* temp = read_type_.extension_table_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
read_type_.extension_table_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::ReadRel_ExtensionTable& ReadRel::_internal_extension_table() const {
return _internal_has_extension_table()
? *read_type_.extension_table_
: reinterpret_cast< ::substrait::ReadRel_ExtensionTable&>(::substrait::_ReadRel_ExtensionTable_default_instance_);
}
inline const ::substrait::ReadRel_ExtensionTable& ReadRel::extension_table() const {
// @@protoc_insertion_point(field_get:substrait.ReadRel.extension_table)
return _internal_extension_table();
}
inline ::substrait::ReadRel_ExtensionTable* ReadRel::unsafe_arena_release_extension_table() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.ReadRel.extension_table)
if (_internal_has_extension_table()) {
clear_has_read_type();
::substrait::ReadRel_ExtensionTable* temp = read_type_.extension_table_;
read_type_.extension_table_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void ReadRel::unsafe_arena_set_allocated_extension_table(::substrait::ReadRel_ExtensionTable* extension_table) {
clear_read_type();
if (extension_table) {
set_has_extension_table();
read_type_.extension_table_ = extension_table;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ReadRel.extension_table)
}
inline ::substrait::ReadRel_ExtensionTable* ReadRel::_internal_mutable_extension_table() {
if (!_internal_has_extension_table()) {
clear_read_type();
set_has_extension_table();
read_type_.extension_table_ = CreateMaybeMessage< ::substrait::ReadRel_ExtensionTable >(GetArenaForAllocation());
}
return read_type_.extension_table_;
}
inline ::substrait::ReadRel_ExtensionTable* ReadRel::mutable_extension_table() {
::substrait::ReadRel_ExtensionTable* _msg = _internal_mutable_extension_table();
// @@protoc_insertion_point(field_mutable:substrait.ReadRel.extension_table)
return _msg;
}
inline bool ReadRel::has_read_type() const {
return read_type_case() != READ_TYPE_NOT_SET;
}
inline void ReadRel::clear_has_read_type() {
_oneof_case_[0] = READ_TYPE_NOT_SET;
}
inline ReadRel::ReadTypeCase ReadRel::read_type_case() const {
return ReadRel::ReadTypeCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------
// ProjectRel
// .substrait.RelCommon common = 1 [json_name = "common"];
inline bool ProjectRel::_internal_has_common() const {
return this != internal_default_instance() && common_ != nullptr;
}
inline bool ProjectRel::has_common() const {
return _internal_has_common();
}
inline void ProjectRel::clear_common() {
if (GetArenaForAllocation() == nullptr && common_ != nullptr) {
delete common_;
}
common_ = nullptr;
}
inline const ::substrait::RelCommon& ProjectRel::_internal_common() const {
const ::substrait::RelCommon* p = common_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon&>(
::substrait::_RelCommon_default_instance_);
}
inline const ::substrait::RelCommon& ProjectRel::common() const {
// @@protoc_insertion_point(field_get:substrait.ProjectRel.common)
return _internal_common();
}
inline void ProjectRel::unsafe_arena_set_allocated_common(
::substrait::RelCommon* common) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_);
}
common_ = common;
if (common) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ProjectRel.common)
}
inline ::substrait::RelCommon* ProjectRel::release_common() {
::substrait::RelCommon* temp = common_;
common_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon* ProjectRel::unsafe_arena_release_common() {
// @@protoc_insertion_point(field_release:substrait.ProjectRel.common)
::substrait::RelCommon* temp = common_;
common_ = nullptr;
return temp;
}
inline ::substrait::RelCommon* ProjectRel::_internal_mutable_common() {
if (common_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon>(GetArenaForAllocation());
common_ = p;
}
return common_;
}
inline ::substrait::RelCommon* ProjectRel::mutable_common() {
::substrait::RelCommon* _msg = _internal_mutable_common();
// @@protoc_insertion_point(field_mutable:substrait.ProjectRel.common)
return _msg;
}
inline void ProjectRel::set_allocated_common(::substrait::RelCommon* common) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete common_;
}
if (common) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon>::GetOwningArena(common);
if (message_arena != submessage_arena) {
common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, common, submessage_arena);
}
} else {
}
common_ = common;
// @@protoc_insertion_point(field_set_allocated:substrait.ProjectRel.common)
}
// .substrait.Rel input = 2 [json_name = "input"];
inline bool ProjectRel::_internal_has_input() const {
return this != internal_default_instance() && input_ != nullptr;
}
inline bool ProjectRel::has_input() const {
return _internal_has_input();
}
inline void ProjectRel::clear_input() {
if (GetArenaForAllocation() == nullptr && input_ != nullptr) {
delete input_;
}
input_ = nullptr;
}
inline const ::substrait::Rel& ProjectRel::_internal_input() const {
const ::substrait::Rel* p = input_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Rel&>(
::substrait::_Rel_default_instance_);
}
inline const ::substrait::Rel& ProjectRel::input() const {
// @@protoc_insertion_point(field_get:substrait.ProjectRel.input)
return _internal_input();
}
inline void ProjectRel::unsafe_arena_set_allocated_input(
::substrait::Rel* input) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(input_);
}
input_ = input;
if (input) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ProjectRel.input)
}
inline ::substrait::Rel* ProjectRel::release_input() {
::substrait::Rel* temp = input_;
input_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Rel* ProjectRel::unsafe_arena_release_input() {
// @@protoc_insertion_point(field_release:substrait.ProjectRel.input)
::substrait::Rel* temp = input_;
input_ = nullptr;
return temp;
}
inline ::substrait::Rel* ProjectRel::_internal_mutable_input() {
if (input_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Rel>(GetArenaForAllocation());
input_ = p;
}
return input_;
}
inline ::substrait::Rel* ProjectRel::mutable_input() {
::substrait::Rel* _msg = _internal_mutable_input();
// @@protoc_insertion_point(field_mutable:substrait.ProjectRel.input)
return _msg;
}
inline void ProjectRel::set_allocated_input(::substrait::Rel* input) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete input_;
}
if (input) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::Rel>::GetOwningArena(input);
if (message_arena != submessage_arena) {
input = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, input, submessage_arena);
}
} else {
}
input_ = input;
// @@protoc_insertion_point(field_set_allocated:substrait.ProjectRel.input)
}
// repeated .substrait.Expression expressions = 3 [json_name = "expressions"];
inline int ProjectRel::_internal_expressions_size() const {
return expressions_.size();
}
inline int ProjectRel::expressions_size() const {
return _internal_expressions_size();
}
inline ::substrait::Expression* ProjectRel::mutable_expressions(int index) {
// @@protoc_insertion_point(field_mutable:substrait.ProjectRel.expressions)
return expressions_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression >*
ProjectRel::mutable_expressions() {
// @@protoc_insertion_point(field_mutable_list:substrait.ProjectRel.expressions)
return &expressions_;
}
inline const ::substrait::Expression& ProjectRel::_internal_expressions(int index) const {
return expressions_.Get(index);
}
inline const ::substrait::Expression& ProjectRel::expressions(int index) const {
// @@protoc_insertion_point(field_get:substrait.ProjectRel.expressions)
return _internal_expressions(index);
}
inline ::substrait::Expression* ProjectRel::_internal_add_expressions() {
return expressions_.Add();
}
inline ::substrait::Expression* ProjectRel::add_expressions() {
::substrait::Expression* _add = _internal_add_expressions();
// @@protoc_insertion_point(field_add:substrait.ProjectRel.expressions)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression >&
ProjectRel::expressions() const {
// @@protoc_insertion_point(field_list:substrait.ProjectRel.expressions)
return expressions_;
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool ProjectRel::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool ProjectRel::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& ProjectRel::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& ProjectRel::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.ProjectRel.advanced_extension)
return _internal_advanced_extension();
}
inline void ProjectRel::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ProjectRel.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* ProjectRel::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* ProjectRel::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.ProjectRel.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* ProjectRel::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* ProjectRel::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.ProjectRel.advanced_extension)
return _msg;
}
inline void ProjectRel::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.ProjectRel.advanced_extension)
}
// -------------------------------------------------------------------
// JoinRel
// .substrait.RelCommon common = 1 [json_name = "common"];
inline bool JoinRel::_internal_has_common() const {
return this != internal_default_instance() && common_ != nullptr;
}
inline bool JoinRel::has_common() const {
return _internal_has_common();
}
inline void JoinRel::clear_common() {
if (GetArenaForAllocation() == nullptr && common_ != nullptr) {
delete common_;
}
common_ = nullptr;
}
inline const ::substrait::RelCommon& JoinRel::_internal_common() const {
const ::substrait::RelCommon* p = common_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon&>(
::substrait::_RelCommon_default_instance_);
}
inline const ::substrait::RelCommon& JoinRel::common() const {
// @@protoc_insertion_point(field_get:substrait.JoinRel.common)
return _internal_common();
}
inline void JoinRel::unsafe_arena_set_allocated_common(
::substrait::RelCommon* common) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_);
}
common_ = common;
if (common) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.JoinRel.common)
}
inline ::substrait::RelCommon* JoinRel::release_common() {
::substrait::RelCommon* temp = common_;
common_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon* JoinRel::unsafe_arena_release_common() {
// @@protoc_insertion_point(field_release:substrait.JoinRel.common)
::substrait::RelCommon* temp = common_;
common_ = nullptr;
return temp;
}
inline ::substrait::RelCommon* JoinRel::_internal_mutable_common() {
if (common_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon>(GetArenaForAllocation());
common_ = p;
}
return common_;
}
inline ::substrait::RelCommon* JoinRel::mutable_common() {
::substrait::RelCommon* _msg = _internal_mutable_common();
// @@protoc_insertion_point(field_mutable:substrait.JoinRel.common)
return _msg;
}
inline void JoinRel::set_allocated_common(::substrait::RelCommon* common) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete common_;
}
if (common) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon>::GetOwningArena(common);
if (message_arena != submessage_arena) {
common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, common, submessage_arena);
}
} else {
}
common_ = common;
// @@protoc_insertion_point(field_set_allocated:substrait.JoinRel.common)
}
// .substrait.Rel left = 2 [json_name = "left"];
inline bool JoinRel::_internal_has_left() const {
return this != internal_default_instance() && left_ != nullptr;
}
inline bool JoinRel::has_left() const {
return _internal_has_left();
}
inline void JoinRel::clear_left() {
if (GetArenaForAllocation() == nullptr && left_ != nullptr) {
delete left_;
}
left_ = nullptr;
}
inline const ::substrait::Rel& JoinRel::_internal_left() const {
const ::substrait::Rel* p = left_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Rel&>(
::substrait::_Rel_default_instance_);
}
inline const ::substrait::Rel& JoinRel::left() const {
// @@protoc_insertion_point(field_get:substrait.JoinRel.left)
return _internal_left();
}
inline void JoinRel::unsafe_arena_set_allocated_left(
::substrait::Rel* left) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(left_);
}
left_ = left;
if (left) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.JoinRel.left)
}
inline ::substrait::Rel* JoinRel::release_left() {
::substrait::Rel* temp = left_;
left_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Rel* JoinRel::unsafe_arena_release_left() {
// @@protoc_insertion_point(field_release:substrait.JoinRel.left)
::substrait::Rel* temp = left_;
left_ = nullptr;
return temp;
}
inline ::substrait::Rel* JoinRel::_internal_mutable_left() {
if (left_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Rel>(GetArenaForAllocation());
left_ = p;
}
return left_;
}
inline ::substrait::Rel* JoinRel::mutable_left() {
::substrait::Rel* _msg = _internal_mutable_left();
// @@protoc_insertion_point(field_mutable:substrait.JoinRel.left)
return _msg;
}
inline void JoinRel::set_allocated_left(::substrait::Rel* left) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete left_;
}
if (left) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::Rel>::GetOwningArena(left);
if (message_arena != submessage_arena) {
left = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, left, submessage_arena);
}
} else {
}
left_ = left;
// @@protoc_insertion_point(field_set_allocated:substrait.JoinRel.left)
}
// .substrait.Rel right = 3 [json_name = "right"];
inline bool JoinRel::_internal_has_right() const {
return this != internal_default_instance() && right_ != nullptr;
}
inline bool JoinRel::has_right() const {
return _internal_has_right();
}
inline void JoinRel::clear_right() {
if (GetArenaForAllocation() == nullptr && right_ != nullptr) {
delete right_;
}
right_ = nullptr;
}
inline const ::substrait::Rel& JoinRel::_internal_right() const {
const ::substrait::Rel* p = right_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Rel&>(
::substrait::_Rel_default_instance_);
}
inline const ::substrait::Rel& JoinRel::right() const {
// @@protoc_insertion_point(field_get:substrait.JoinRel.right)
return _internal_right();
}
inline void JoinRel::unsafe_arena_set_allocated_right(
::substrait::Rel* right) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(right_);
}
right_ = right;
if (right) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.JoinRel.right)
}
inline ::substrait::Rel* JoinRel::release_right() {
::substrait::Rel* temp = right_;
right_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Rel* JoinRel::unsafe_arena_release_right() {
// @@protoc_insertion_point(field_release:substrait.JoinRel.right)
::substrait::Rel* temp = right_;
right_ = nullptr;
return temp;
}
inline ::substrait::Rel* JoinRel::_internal_mutable_right() {
if (right_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Rel>(GetArenaForAllocation());
right_ = p;
}
return right_;
}
inline ::substrait::Rel* JoinRel::mutable_right() {
::substrait::Rel* _msg = _internal_mutable_right();
// @@protoc_insertion_point(field_mutable:substrait.JoinRel.right)
return _msg;
}
inline void JoinRel::set_allocated_right(::substrait::Rel* right) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete right_;
}
if (right) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::Rel>::GetOwningArena(right);
if (message_arena != submessage_arena) {
right = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, right, submessage_arena);
}
} else {
}
right_ = right;
// @@protoc_insertion_point(field_set_allocated:substrait.JoinRel.right)
}
// .substrait.Expression expression = 4 [json_name = "expression"];
inline bool JoinRel::_internal_has_expression() const {
return this != internal_default_instance() && expression_ != nullptr;
}
inline bool JoinRel::has_expression() const {
return _internal_has_expression();
}
inline const ::substrait::Expression& JoinRel::_internal_expression() const {
const ::substrait::Expression* p = expression_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Expression&>(
::substrait::_Expression_default_instance_);
}
inline const ::substrait::Expression& JoinRel::expression() const {
// @@protoc_insertion_point(field_get:substrait.JoinRel.expression)
return _internal_expression();
}
inline void JoinRel::unsafe_arena_set_allocated_expression(
::substrait::Expression* expression) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expression_);
}
expression_ = expression;
if (expression) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.JoinRel.expression)
}
inline ::substrait::Expression* JoinRel::release_expression() {
::substrait::Expression* temp = expression_;
expression_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Expression* JoinRel::unsafe_arena_release_expression() {
// @@protoc_insertion_point(field_release:substrait.JoinRel.expression)
::substrait::Expression* temp = expression_;
expression_ = nullptr;
return temp;
}
inline ::substrait::Expression* JoinRel::_internal_mutable_expression() {
if (expression_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Expression>(GetArenaForAllocation());
expression_ = p;
}
return expression_;
}
inline ::substrait::Expression* JoinRel::mutable_expression() {
::substrait::Expression* _msg = _internal_mutable_expression();
// @@protoc_insertion_point(field_mutable:substrait.JoinRel.expression)
return _msg;
}
inline void JoinRel::set_allocated_expression(::substrait::Expression* expression) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(expression_);
}
if (expression) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expression));
if (message_arena != submessage_arena) {
expression = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, expression, submessage_arena);
}
} else {
}
expression_ = expression;
// @@protoc_insertion_point(field_set_allocated:substrait.JoinRel.expression)
}
// .substrait.Expression post_join_filter = 5 [json_name = "postJoinFilter"];
inline bool JoinRel::_internal_has_post_join_filter() const {
return this != internal_default_instance() && post_join_filter_ != nullptr;
}
inline bool JoinRel::has_post_join_filter() const {
return _internal_has_post_join_filter();
}
inline const ::substrait::Expression& JoinRel::_internal_post_join_filter() const {
const ::substrait::Expression* p = post_join_filter_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Expression&>(
::substrait::_Expression_default_instance_);
}
inline const ::substrait::Expression& JoinRel::post_join_filter() const {
// @@protoc_insertion_point(field_get:substrait.JoinRel.post_join_filter)
return _internal_post_join_filter();
}
inline void JoinRel::unsafe_arena_set_allocated_post_join_filter(
::substrait::Expression* post_join_filter) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(post_join_filter_);
}
post_join_filter_ = post_join_filter;
if (post_join_filter) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.JoinRel.post_join_filter)
}
inline ::substrait::Expression* JoinRel::release_post_join_filter() {
::substrait::Expression* temp = post_join_filter_;
post_join_filter_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Expression* JoinRel::unsafe_arena_release_post_join_filter() {
// @@protoc_insertion_point(field_release:substrait.JoinRel.post_join_filter)
::substrait::Expression* temp = post_join_filter_;
post_join_filter_ = nullptr;
return temp;
}
inline ::substrait::Expression* JoinRel::_internal_mutable_post_join_filter() {
if (post_join_filter_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Expression>(GetArenaForAllocation());
post_join_filter_ = p;
}
return post_join_filter_;
}
inline ::substrait::Expression* JoinRel::mutable_post_join_filter() {
::substrait::Expression* _msg = _internal_mutable_post_join_filter();
// @@protoc_insertion_point(field_mutable:substrait.JoinRel.post_join_filter)
return _msg;
}
inline void JoinRel::set_allocated_post_join_filter(::substrait::Expression* post_join_filter) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(post_join_filter_);
}
if (post_join_filter) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(post_join_filter));
if (message_arena != submessage_arena) {
post_join_filter = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, post_join_filter, submessage_arena);
}
} else {
}
post_join_filter_ = post_join_filter;
// @@protoc_insertion_point(field_set_allocated:substrait.JoinRel.post_join_filter)
}
// .substrait.JoinRel.JoinType type = 6 [json_name = "type"];
inline void JoinRel::clear_type() {
type_ = 0;
}
inline ::substrait::JoinRel_JoinType JoinRel::_internal_type() const {
return static_cast< ::substrait::JoinRel_JoinType >(type_);
}
inline ::substrait::JoinRel_JoinType JoinRel::type() const {
// @@protoc_insertion_point(field_get:substrait.JoinRel.type)
return _internal_type();
}
inline void JoinRel::_internal_set_type(::substrait::JoinRel_JoinType value) {
type_ = value;
}
inline void JoinRel::set_type(::substrait::JoinRel_JoinType value) {
_internal_set_type(value);
// @@protoc_insertion_point(field_set:substrait.JoinRel.type)
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool JoinRel::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool JoinRel::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& JoinRel::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& JoinRel::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.JoinRel.advanced_extension)
return _internal_advanced_extension();
}
inline void JoinRel::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.JoinRel.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* JoinRel::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* JoinRel::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.JoinRel.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* JoinRel::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* JoinRel::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.JoinRel.advanced_extension)
return _msg;
}
inline void JoinRel::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.JoinRel.advanced_extension)
}
// -------------------------------------------------------------------
// CrossRel
// .substrait.RelCommon common = 1 [json_name = "common"];
inline bool CrossRel::_internal_has_common() const {
return this != internal_default_instance() && common_ != nullptr;
}
inline bool CrossRel::has_common() const {
return _internal_has_common();
}
inline void CrossRel::clear_common() {
if (GetArenaForAllocation() == nullptr && common_ != nullptr) {
delete common_;
}
common_ = nullptr;
}
inline const ::substrait::RelCommon& CrossRel::_internal_common() const {
const ::substrait::RelCommon* p = common_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon&>(
::substrait::_RelCommon_default_instance_);
}
inline const ::substrait::RelCommon& CrossRel::common() const {
// @@protoc_insertion_point(field_get:substrait.CrossRel.common)
return _internal_common();
}
inline void CrossRel::unsafe_arena_set_allocated_common(
::substrait::RelCommon* common) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_);
}
common_ = common;
if (common) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.CrossRel.common)
}
inline ::substrait::RelCommon* CrossRel::release_common() {
::substrait::RelCommon* temp = common_;
common_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon* CrossRel::unsafe_arena_release_common() {
// @@protoc_insertion_point(field_release:substrait.CrossRel.common)
::substrait::RelCommon* temp = common_;
common_ = nullptr;
return temp;
}
inline ::substrait::RelCommon* CrossRel::_internal_mutable_common() {
if (common_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon>(GetArenaForAllocation());
common_ = p;
}
return common_;
}
inline ::substrait::RelCommon* CrossRel::mutable_common() {
::substrait::RelCommon* _msg = _internal_mutable_common();
// @@protoc_insertion_point(field_mutable:substrait.CrossRel.common)
return _msg;
}
inline void CrossRel::set_allocated_common(::substrait::RelCommon* common) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete common_;
}
if (common) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon>::GetOwningArena(common);
if (message_arena != submessage_arena) {
common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, common, submessage_arena);
}
} else {
}
common_ = common;
// @@protoc_insertion_point(field_set_allocated:substrait.CrossRel.common)
}
// .substrait.Rel left = 2 [json_name = "left"];
inline bool CrossRel::_internal_has_left() const {
return this != internal_default_instance() && left_ != nullptr;
}
inline bool CrossRel::has_left() const {
return _internal_has_left();
}
inline void CrossRel::clear_left() {
if (GetArenaForAllocation() == nullptr && left_ != nullptr) {
delete left_;
}
left_ = nullptr;
}
inline const ::substrait::Rel& CrossRel::_internal_left() const {
const ::substrait::Rel* p = left_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Rel&>(
::substrait::_Rel_default_instance_);
}
inline const ::substrait::Rel& CrossRel::left() const {
// @@protoc_insertion_point(field_get:substrait.CrossRel.left)
return _internal_left();
}
inline void CrossRel::unsafe_arena_set_allocated_left(
::substrait::Rel* left) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(left_);
}
left_ = left;
if (left) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.CrossRel.left)
}
inline ::substrait::Rel* CrossRel::release_left() {
::substrait::Rel* temp = left_;
left_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Rel* CrossRel::unsafe_arena_release_left() {
// @@protoc_insertion_point(field_release:substrait.CrossRel.left)
::substrait::Rel* temp = left_;
left_ = nullptr;
return temp;
}
inline ::substrait::Rel* CrossRel::_internal_mutable_left() {
if (left_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Rel>(GetArenaForAllocation());
left_ = p;
}
return left_;
}
inline ::substrait::Rel* CrossRel::mutable_left() {
::substrait::Rel* _msg = _internal_mutable_left();
// @@protoc_insertion_point(field_mutable:substrait.CrossRel.left)
return _msg;
}
inline void CrossRel::set_allocated_left(::substrait::Rel* left) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete left_;
}
if (left) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::Rel>::GetOwningArena(left);
if (message_arena != submessage_arena) {
left = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, left, submessage_arena);
}
} else {
}
left_ = left;
// @@protoc_insertion_point(field_set_allocated:substrait.CrossRel.left)
}
// .substrait.Rel right = 3 [json_name = "right"];
inline bool CrossRel::_internal_has_right() const {
return this != internal_default_instance() && right_ != nullptr;
}
inline bool CrossRel::has_right() const {
return _internal_has_right();
}
inline void CrossRel::clear_right() {
if (GetArenaForAllocation() == nullptr && right_ != nullptr) {
delete right_;
}
right_ = nullptr;
}
inline const ::substrait::Rel& CrossRel::_internal_right() const {
const ::substrait::Rel* p = right_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Rel&>(
::substrait::_Rel_default_instance_);
}
inline const ::substrait::Rel& CrossRel::right() const {
// @@protoc_insertion_point(field_get:substrait.CrossRel.right)
return _internal_right();
}
inline void CrossRel::unsafe_arena_set_allocated_right(
::substrait::Rel* right) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(right_);
}
right_ = right;
if (right) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.CrossRel.right)
}
inline ::substrait::Rel* CrossRel::release_right() {
::substrait::Rel* temp = right_;
right_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Rel* CrossRel::unsafe_arena_release_right() {
// @@protoc_insertion_point(field_release:substrait.CrossRel.right)
::substrait::Rel* temp = right_;
right_ = nullptr;
return temp;
}
inline ::substrait::Rel* CrossRel::_internal_mutable_right() {
if (right_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Rel>(GetArenaForAllocation());
right_ = p;
}
return right_;
}
inline ::substrait::Rel* CrossRel::mutable_right() {
::substrait::Rel* _msg = _internal_mutable_right();
// @@protoc_insertion_point(field_mutable:substrait.CrossRel.right)
return _msg;
}
inline void CrossRel::set_allocated_right(::substrait::Rel* right) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete right_;
}
if (right) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::Rel>::GetOwningArena(right);
if (message_arena != submessage_arena) {
right = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, right, submessage_arena);
}
} else {
}
right_ = right;
// @@protoc_insertion_point(field_set_allocated:substrait.CrossRel.right)
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool CrossRel::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool CrossRel::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& CrossRel::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& CrossRel::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.CrossRel.advanced_extension)
return _internal_advanced_extension();
}
inline void CrossRel::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.CrossRel.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* CrossRel::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* CrossRel::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.CrossRel.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* CrossRel::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* CrossRel::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.CrossRel.advanced_extension)
return _msg;
}
inline void CrossRel::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.CrossRel.advanced_extension)
}
// -------------------------------------------------------------------
// FetchRel
// .substrait.RelCommon common = 1 [json_name = "common"];
inline bool FetchRel::_internal_has_common() const {
return this != internal_default_instance() && common_ != nullptr;
}
inline bool FetchRel::has_common() const {
return _internal_has_common();
}
inline void FetchRel::clear_common() {
if (GetArenaForAllocation() == nullptr && common_ != nullptr) {
delete common_;
}
common_ = nullptr;
}
inline const ::substrait::RelCommon& FetchRel::_internal_common() const {
const ::substrait::RelCommon* p = common_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon&>(
::substrait::_RelCommon_default_instance_);
}
inline const ::substrait::RelCommon& FetchRel::common() const {
// @@protoc_insertion_point(field_get:substrait.FetchRel.common)
return _internal_common();
}
inline void FetchRel::unsafe_arena_set_allocated_common(
::substrait::RelCommon* common) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_);
}
common_ = common;
if (common) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.FetchRel.common)
}
inline ::substrait::RelCommon* FetchRel::release_common() {
::substrait::RelCommon* temp = common_;
common_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon* FetchRel::unsafe_arena_release_common() {
// @@protoc_insertion_point(field_release:substrait.FetchRel.common)
::substrait::RelCommon* temp = common_;
common_ = nullptr;
return temp;
}
inline ::substrait::RelCommon* FetchRel::_internal_mutable_common() {
if (common_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon>(GetArenaForAllocation());
common_ = p;
}
return common_;
}
inline ::substrait::RelCommon* FetchRel::mutable_common() {
::substrait::RelCommon* _msg = _internal_mutable_common();
// @@protoc_insertion_point(field_mutable:substrait.FetchRel.common)
return _msg;
}
inline void FetchRel::set_allocated_common(::substrait::RelCommon* common) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete common_;
}
if (common) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon>::GetOwningArena(common);
if (message_arena != submessage_arena) {
common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, common, submessage_arena);
}
} else {
}
common_ = common;
// @@protoc_insertion_point(field_set_allocated:substrait.FetchRel.common)
}
// .substrait.Rel input = 2 [json_name = "input"];
inline bool FetchRel::_internal_has_input() const {
return this != internal_default_instance() && input_ != nullptr;
}
inline bool FetchRel::has_input() const {
return _internal_has_input();
}
inline void FetchRel::clear_input() {
if (GetArenaForAllocation() == nullptr && input_ != nullptr) {
delete input_;
}
input_ = nullptr;
}
inline const ::substrait::Rel& FetchRel::_internal_input() const {
const ::substrait::Rel* p = input_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Rel&>(
::substrait::_Rel_default_instance_);
}
inline const ::substrait::Rel& FetchRel::input() const {
// @@protoc_insertion_point(field_get:substrait.FetchRel.input)
return _internal_input();
}
inline void FetchRel::unsafe_arena_set_allocated_input(
::substrait::Rel* input) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(input_);
}
input_ = input;
if (input) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.FetchRel.input)
}
inline ::substrait::Rel* FetchRel::release_input() {
::substrait::Rel* temp = input_;
input_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Rel* FetchRel::unsafe_arena_release_input() {
// @@protoc_insertion_point(field_release:substrait.FetchRel.input)
::substrait::Rel* temp = input_;
input_ = nullptr;
return temp;
}
inline ::substrait::Rel* FetchRel::_internal_mutable_input() {
if (input_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Rel>(GetArenaForAllocation());
input_ = p;
}
return input_;
}
inline ::substrait::Rel* FetchRel::mutable_input() {
::substrait::Rel* _msg = _internal_mutable_input();
// @@protoc_insertion_point(field_mutable:substrait.FetchRel.input)
return _msg;
}
inline void FetchRel::set_allocated_input(::substrait::Rel* input) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete input_;
}
if (input) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::Rel>::GetOwningArena(input);
if (message_arena != submessage_arena) {
input = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, input, submessage_arena);
}
} else {
}
input_ = input;
// @@protoc_insertion_point(field_set_allocated:substrait.FetchRel.input)
}
// int64 offset = 3 [json_name = "offset"];
inline void FetchRel::clear_offset() {
offset_ = int64_t{0};
}
inline int64_t FetchRel::_internal_offset() const {
return offset_;
}
inline int64_t FetchRel::offset() const {
// @@protoc_insertion_point(field_get:substrait.FetchRel.offset)
return _internal_offset();
}
inline void FetchRel::_internal_set_offset(int64_t value) {
offset_ = value;
}
inline void FetchRel::set_offset(int64_t value) {
_internal_set_offset(value);
// @@protoc_insertion_point(field_set:substrait.FetchRel.offset)
}
// int64 count = 4 [json_name = "count"];
inline void FetchRel::clear_count() {
count_ = int64_t{0};
}
inline int64_t FetchRel::_internal_count() const {
return count_;
}
inline int64_t FetchRel::count() const {
// @@protoc_insertion_point(field_get:substrait.FetchRel.count)
return _internal_count();
}
inline void FetchRel::_internal_set_count(int64_t value) {
count_ = value;
}
inline void FetchRel::set_count(int64_t value) {
_internal_set_count(value);
// @@protoc_insertion_point(field_set:substrait.FetchRel.count)
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool FetchRel::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool FetchRel::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& FetchRel::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& FetchRel::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.FetchRel.advanced_extension)
return _internal_advanced_extension();
}
inline void FetchRel::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.FetchRel.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* FetchRel::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* FetchRel::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.FetchRel.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* FetchRel::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* FetchRel::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.FetchRel.advanced_extension)
return _msg;
}
inline void FetchRel::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.FetchRel.advanced_extension)
}
// -------------------------------------------------------------------
// AggregateRel_Grouping
// repeated .substrait.Expression grouping_expressions = 1 [json_name = "groupingExpressions"];
inline int AggregateRel_Grouping::_internal_grouping_expressions_size() const {
return grouping_expressions_.size();
}
inline int AggregateRel_Grouping::grouping_expressions_size() const {
return _internal_grouping_expressions_size();
}
inline ::substrait::Expression* AggregateRel_Grouping::mutable_grouping_expressions(int index) {
// @@protoc_insertion_point(field_mutable:substrait.AggregateRel.Grouping.grouping_expressions)
return grouping_expressions_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression >*
AggregateRel_Grouping::mutable_grouping_expressions() {
// @@protoc_insertion_point(field_mutable_list:substrait.AggregateRel.Grouping.grouping_expressions)
return &grouping_expressions_;
}
inline const ::substrait::Expression& AggregateRel_Grouping::_internal_grouping_expressions(int index) const {
return grouping_expressions_.Get(index);
}
inline const ::substrait::Expression& AggregateRel_Grouping::grouping_expressions(int index) const {
// @@protoc_insertion_point(field_get:substrait.AggregateRel.Grouping.grouping_expressions)
return _internal_grouping_expressions(index);
}
inline ::substrait::Expression* AggregateRel_Grouping::_internal_add_grouping_expressions() {
return grouping_expressions_.Add();
}
inline ::substrait::Expression* AggregateRel_Grouping::add_grouping_expressions() {
::substrait::Expression* _add = _internal_add_grouping_expressions();
// @@protoc_insertion_point(field_add:substrait.AggregateRel.Grouping.grouping_expressions)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Expression >&
AggregateRel_Grouping::grouping_expressions() const {
// @@protoc_insertion_point(field_list:substrait.AggregateRel.Grouping.grouping_expressions)
return grouping_expressions_;
}
// -------------------------------------------------------------------
// AggregateRel_Measure
// .substrait.AggregateFunction measure = 1 [json_name = "measure"];
inline bool AggregateRel_Measure::_internal_has_measure() const {
return this != internal_default_instance() && measure_ != nullptr;
}
inline bool AggregateRel_Measure::has_measure() const {
return _internal_has_measure();
}
inline const ::substrait::AggregateFunction& AggregateRel_Measure::_internal_measure() const {
const ::substrait::AggregateFunction* p = measure_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::AggregateFunction&>(
::substrait::_AggregateFunction_default_instance_);
}
inline const ::substrait::AggregateFunction& AggregateRel_Measure::measure() const {
// @@protoc_insertion_point(field_get:substrait.AggregateRel.Measure.measure)
return _internal_measure();
}
inline void AggregateRel_Measure::unsafe_arena_set_allocated_measure(
::substrait::AggregateFunction* measure) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(measure_);
}
measure_ = measure;
if (measure) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.AggregateRel.Measure.measure)
}
inline ::substrait::AggregateFunction* AggregateRel_Measure::release_measure() {
::substrait::AggregateFunction* temp = measure_;
measure_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::AggregateFunction* AggregateRel_Measure::unsafe_arena_release_measure() {
// @@protoc_insertion_point(field_release:substrait.AggregateRel.Measure.measure)
::substrait::AggregateFunction* temp = measure_;
measure_ = nullptr;
return temp;
}
inline ::substrait::AggregateFunction* AggregateRel_Measure::_internal_mutable_measure() {
if (measure_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::AggregateFunction>(GetArenaForAllocation());
measure_ = p;
}
return measure_;
}
inline ::substrait::AggregateFunction* AggregateRel_Measure::mutable_measure() {
::substrait::AggregateFunction* _msg = _internal_mutable_measure();
// @@protoc_insertion_point(field_mutable:substrait.AggregateRel.Measure.measure)
return _msg;
}
inline void AggregateRel_Measure::set_allocated_measure(::substrait::AggregateFunction* measure) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(measure_);
}
if (measure) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(measure));
if (message_arena != submessage_arena) {
measure = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, measure, submessage_arena);
}
} else {
}
measure_ = measure;
// @@protoc_insertion_point(field_set_allocated:substrait.AggregateRel.Measure.measure)
}
// .substrait.Expression filter = 2 [json_name = "filter"];
inline bool AggregateRel_Measure::_internal_has_filter() const {
return this != internal_default_instance() && filter_ != nullptr;
}
inline bool AggregateRel_Measure::has_filter() const {
return _internal_has_filter();
}
inline const ::substrait::Expression& AggregateRel_Measure::_internal_filter() const {
const ::substrait::Expression* p = filter_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Expression&>(
::substrait::_Expression_default_instance_);
}
inline const ::substrait::Expression& AggregateRel_Measure::filter() const {
// @@protoc_insertion_point(field_get:substrait.AggregateRel.Measure.filter)
return _internal_filter();
}
inline void AggregateRel_Measure::unsafe_arena_set_allocated_filter(
::substrait::Expression* filter) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(filter_);
}
filter_ = filter;
if (filter) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.AggregateRel.Measure.filter)
}
inline ::substrait::Expression* AggregateRel_Measure::release_filter() {
::substrait::Expression* temp = filter_;
filter_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Expression* AggregateRel_Measure::unsafe_arena_release_filter() {
// @@protoc_insertion_point(field_release:substrait.AggregateRel.Measure.filter)
::substrait::Expression* temp = filter_;
filter_ = nullptr;
return temp;
}
inline ::substrait::Expression* AggregateRel_Measure::_internal_mutable_filter() {
if (filter_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Expression>(GetArenaForAllocation());
filter_ = p;
}
return filter_;
}
inline ::substrait::Expression* AggregateRel_Measure::mutable_filter() {
::substrait::Expression* _msg = _internal_mutable_filter();
// @@protoc_insertion_point(field_mutable:substrait.AggregateRel.Measure.filter)
return _msg;
}
inline void AggregateRel_Measure::set_allocated_filter(::substrait::Expression* filter) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(filter_);
}
if (filter) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(filter));
if (message_arena != submessage_arena) {
filter = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, filter, submessage_arena);
}
} else {
}
filter_ = filter;
// @@protoc_insertion_point(field_set_allocated:substrait.AggregateRel.Measure.filter)
}
// -------------------------------------------------------------------
// AggregateRel
// .substrait.RelCommon common = 1 [json_name = "common"];
inline bool AggregateRel::_internal_has_common() const {
return this != internal_default_instance() && common_ != nullptr;
}
inline bool AggregateRel::has_common() const {
return _internal_has_common();
}
inline void AggregateRel::clear_common() {
if (GetArenaForAllocation() == nullptr && common_ != nullptr) {
delete common_;
}
common_ = nullptr;
}
inline const ::substrait::RelCommon& AggregateRel::_internal_common() const {
const ::substrait::RelCommon* p = common_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon&>(
::substrait::_RelCommon_default_instance_);
}
inline const ::substrait::RelCommon& AggregateRel::common() const {
// @@protoc_insertion_point(field_get:substrait.AggregateRel.common)
return _internal_common();
}
inline void AggregateRel::unsafe_arena_set_allocated_common(
::substrait::RelCommon* common) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_);
}
common_ = common;
if (common) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.AggregateRel.common)
}
inline ::substrait::RelCommon* AggregateRel::release_common() {
::substrait::RelCommon* temp = common_;
common_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon* AggregateRel::unsafe_arena_release_common() {
// @@protoc_insertion_point(field_release:substrait.AggregateRel.common)
::substrait::RelCommon* temp = common_;
common_ = nullptr;
return temp;
}
inline ::substrait::RelCommon* AggregateRel::_internal_mutable_common() {
if (common_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon>(GetArenaForAllocation());
common_ = p;
}
return common_;
}
inline ::substrait::RelCommon* AggregateRel::mutable_common() {
::substrait::RelCommon* _msg = _internal_mutable_common();
// @@protoc_insertion_point(field_mutable:substrait.AggregateRel.common)
return _msg;
}
inline void AggregateRel::set_allocated_common(::substrait::RelCommon* common) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete common_;
}
if (common) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon>::GetOwningArena(common);
if (message_arena != submessage_arena) {
common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, common, submessage_arena);
}
} else {
}
common_ = common;
// @@protoc_insertion_point(field_set_allocated:substrait.AggregateRel.common)
}
// .substrait.Rel input = 2 [json_name = "input"];
inline bool AggregateRel::_internal_has_input() const {
return this != internal_default_instance() && input_ != nullptr;
}
inline bool AggregateRel::has_input() const {
return _internal_has_input();
}
inline void AggregateRel::clear_input() {
if (GetArenaForAllocation() == nullptr && input_ != nullptr) {
delete input_;
}
input_ = nullptr;
}
inline const ::substrait::Rel& AggregateRel::_internal_input() const {
const ::substrait::Rel* p = input_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Rel&>(
::substrait::_Rel_default_instance_);
}
inline const ::substrait::Rel& AggregateRel::input() const {
// @@protoc_insertion_point(field_get:substrait.AggregateRel.input)
return _internal_input();
}
inline void AggregateRel::unsafe_arena_set_allocated_input(
::substrait::Rel* input) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(input_);
}
input_ = input;
if (input) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.AggregateRel.input)
}
inline ::substrait::Rel* AggregateRel::release_input() {
::substrait::Rel* temp = input_;
input_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Rel* AggregateRel::unsafe_arena_release_input() {
// @@protoc_insertion_point(field_release:substrait.AggregateRel.input)
::substrait::Rel* temp = input_;
input_ = nullptr;
return temp;
}
inline ::substrait::Rel* AggregateRel::_internal_mutable_input() {
if (input_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Rel>(GetArenaForAllocation());
input_ = p;
}
return input_;
}
inline ::substrait::Rel* AggregateRel::mutable_input() {
::substrait::Rel* _msg = _internal_mutable_input();
// @@protoc_insertion_point(field_mutable:substrait.AggregateRel.input)
return _msg;
}
inline void AggregateRel::set_allocated_input(::substrait::Rel* input) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete input_;
}
if (input) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::Rel>::GetOwningArena(input);
if (message_arena != submessage_arena) {
input = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, input, submessage_arena);
}
} else {
}
input_ = input;
// @@protoc_insertion_point(field_set_allocated:substrait.AggregateRel.input)
}
// repeated .substrait.AggregateRel.Grouping groupings = 3 [json_name = "groupings"];
inline int AggregateRel::_internal_groupings_size() const {
return groupings_.size();
}
inline int AggregateRel::groupings_size() const {
return _internal_groupings_size();
}
inline void AggregateRel::clear_groupings() {
groupings_.Clear();
}
inline ::substrait::AggregateRel_Grouping* AggregateRel::mutable_groupings(int index) {
// @@protoc_insertion_point(field_mutable:substrait.AggregateRel.groupings)
return groupings_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::AggregateRel_Grouping >*
AggregateRel::mutable_groupings() {
// @@protoc_insertion_point(field_mutable_list:substrait.AggregateRel.groupings)
return &groupings_;
}
inline const ::substrait::AggregateRel_Grouping& AggregateRel::_internal_groupings(int index) const {
return groupings_.Get(index);
}
inline const ::substrait::AggregateRel_Grouping& AggregateRel::groupings(int index) const {
// @@protoc_insertion_point(field_get:substrait.AggregateRel.groupings)
return _internal_groupings(index);
}
inline ::substrait::AggregateRel_Grouping* AggregateRel::_internal_add_groupings() {
return groupings_.Add();
}
inline ::substrait::AggregateRel_Grouping* AggregateRel::add_groupings() {
::substrait::AggregateRel_Grouping* _add = _internal_add_groupings();
// @@protoc_insertion_point(field_add:substrait.AggregateRel.groupings)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::AggregateRel_Grouping >&
AggregateRel::groupings() const {
// @@protoc_insertion_point(field_list:substrait.AggregateRel.groupings)
return groupings_;
}
// repeated .substrait.AggregateRel.Measure measures = 4 [json_name = "measures"];
inline int AggregateRel::_internal_measures_size() const {
return measures_.size();
}
inline int AggregateRel::measures_size() const {
return _internal_measures_size();
}
inline void AggregateRel::clear_measures() {
measures_.Clear();
}
inline ::substrait::AggregateRel_Measure* AggregateRel::mutable_measures(int index) {
// @@protoc_insertion_point(field_mutable:substrait.AggregateRel.measures)
return measures_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::AggregateRel_Measure >*
AggregateRel::mutable_measures() {
// @@protoc_insertion_point(field_mutable_list:substrait.AggregateRel.measures)
return &measures_;
}
inline const ::substrait::AggregateRel_Measure& AggregateRel::_internal_measures(int index) const {
return measures_.Get(index);
}
inline const ::substrait::AggregateRel_Measure& AggregateRel::measures(int index) const {
// @@protoc_insertion_point(field_get:substrait.AggregateRel.measures)
return _internal_measures(index);
}
inline ::substrait::AggregateRel_Measure* AggregateRel::_internal_add_measures() {
return measures_.Add();
}
inline ::substrait::AggregateRel_Measure* AggregateRel::add_measures() {
::substrait::AggregateRel_Measure* _add = _internal_add_measures();
// @@protoc_insertion_point(field_add:substrait.AggregateRel.measures)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::AggregateRel_Measure >&
AggregateRel::measures() const {
// @@protoc_insertion_point(field_list:substrait.AggregateRel.measures)
return measures_;
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool AggregateRel::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool AggregateRel::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& AggregateRel::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& AggregateRel::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.AggregateRel.advanced_extension)
return _internal_advanced_extension();
}
inline void AggregateRel::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.AggregateRel.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* AggregateRel::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* AggregateRel::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.AggregateRel.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* AggregateRel::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* AggregateRel::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.AggregateRel.advanced_extension)
return _msg;
}
inline void AggregateRel::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.AggregateRel.advanced_extension)
}
// -------------------------------------------------------------------
// SortRel
// .substrait.RelCommon common = 1 [json_name = "common"];
inline bool SortRel::_internal_has_common() const {
return this != internal_default_instance() && common_ != nullptr;
}
inline bool SortRel::has_common() const {
return _internal_has_common();
}
inline void SortRel::clear_common() {
if (GetArenaForAllocation() == nullptr && common_ != nullptr) {
delete common_;
}
common_ = nullptr;
}
inline const ::substrait::RelCommon& SortRel::_internal_common() const {
const ::substrait::RelCommon* p = common_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon&>(
::substrait::_RelCommon_default_instance_);
}
inline const ::substrait::RelCommon& SortRel::common() const {
// @@protoc_insertion_point(field_get:substrait.SortRel.common)
return _internal_common();
}
inline void SortRel::unsafe_arena_set_allocated_common(
::substrait::RelCommon* common) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_);
}
common_ = common;
if (common) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.SortRel.common)
}
inline ::substrait::RelCommon* SortRel::release_common() {
::substrait::RelCommon* temp = common_;
common_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon* SortRel::unsafe_arena_release_common() {
// @@protoc_insertion_point(field_release:substrait.SortRel.common)
::substrait::RelCommon* temp = common_;
common_ = nullptr;
return temp;
}
inline ::substrait::RelCommon* SortRel::_internal_mutable_common() {
if (common_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon>(GetArenaForAllocation());
common_ = p;
}
return common_;
}
inline ::substrait::RelCommon* SortRel::mutable_common() {
::substrait::RelCommon* _msg = _internal_mutable_common();
// @@protoc_insertion_point(field_mutable:substrait.SortRel.common)
return _msg;
}
inline void SortRel::set_allocated_common(::substrait::RelCommon* common) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete common_;
}
if (common) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon>::GetOwningArena(common);
if (message_arena != submessage_arena) {
common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, common, submessage_arena);
}
} else {
}
common_ = common;
// @@protoc_insertion_point(field_set_allocated:substrait.SortRel.common)
}
// .substrait.Rel input = 2 [json_name = "input"];
inline bool SortRel::_internal_has_input() const {
return this != internal_default_instance() && input_ != nullptr;
}
inline bool SortRel::has_input() const {
return _internal_has_input();
}
inline void SortRel::clear_input() {
if (GetArenaForAllocation() == nullptr && input_ != nullptr) {
delete input_;
}
input_ = nullptr;
}
inline const ::substrait::Rel& SortRel::_internal_input() const {
const ::substrait::Rel* p = input_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Rel&>(
::substrait::_Rel_default_instance_);
}
inline const ::substrait::Rel& SortRel::input() const {
// @@protoc_insertion_point(field_get:substrait.SortRel.input)
return _internal_input();
}
inline void SortRel::unsafe_arena_set_allocated_input(
::substrait::Rel* input) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(input_);
}
input_ = input;
if (input) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.SortRel.input)
}
inline ::substrait::Rel* SortRel::release_input() {
::substrait::Rel* temp = input_;
input_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Rel* SortRel::unsafe_arena_release_input() {
// @@protoc_insertion_point(field_release:substrait.SortRel.input)
::substrait::Rel* temp = input_;
input_ = nullptr;
return temp;
}
inline ::substrait::Rel* SortRel::_internal_mutable_input() {
if (input_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Rel>(GetArenaForAllocation());
input_ = p;
}
return input_;
}
inline ::substrait::Rel* SortRel::mutable_input() {
::substrait::Rel* _msg = _internal_mutable_input();
// @@protoc_insertion_point(field_mutable:substrait.SortRel.input)
return _msg;
}
inline void SortRel::set_allocated_input(::substrait::Rel* input) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete input_;
}
if (input) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::Rel>::GetOwningArena(input);
if (message_arena != submessage_arena) {
input = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, input, submessage_arena);
}
} else {
}
input_ = input;
// @@protoc_insertion_point(field_set_allocated:substrait.SortRel.input)
}
// repeated .substrait.SortField sorts = 3 [json_name = "sorts"];
inline int SortRel::_internal_sorts_size() const {
return sorts_.size();
}
inline int SortRel::sorts_size() const {
return _internal_sorts_size();
}
inline ::substrait::SortField* SortRel::mutable_sorts(int index) {
// @@protoc_insertion_point(field_mutable:substrait.SortRel.sorts)
return sorts_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::SortField >*
SortRel::mutable_sorts() {
// @@protoc_insertion_point(field_mutable_list:substrait.SortRel.sorts)
return &sorts_;
}
inline const ::substrait::SortField& SortRel::_internal_sorts(int index) const {
return sorts_.Get(index);
}
inline const ::substrait::SortField& SortRel::sorts(int index) const {
// @@protoc_insertion_point(field_get:substrait.SortRel.sorts)
return _internal_sorts(index);
}
inline ::substrait::SortField* SortRel::_internal_add_sorts() {
return sorts_.Add();
}
inline ::substrait::SortField* SortRel::add_sorts() {
::substrait::SortField* _add = _internal_add_sorts();
// @@protoc_insertion_point(field_add:substrait.SortRel.sorts)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::SortField >&
SortRel::sorts() const {
// @@protoc_insertion_point(field_list:substrait.SortRel.sorts)
return sorts_;
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool SortRel::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool SortRel::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& SortRel::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& SortRel::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.SortRel.advanced_extension)
return _internal_advanced_extension();
}
inline void SortRel::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.SortRel.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* SortRel::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* SortRel::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.SortRel.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* SortRel::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* SortRel::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.SortRel.advanced_extension)
return _msg;
}
inline void SortRel::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.SortRel.advanced_extension)
}
// -------------------------------------------------------------------
// FilterRel
// .substrait.RelCommon common = 1 [json_name = "common"];
inline bool FilterRel::_internal_has_common() const {
return this != internal_default_instance() && common_ != nullptr;
}
inline bool FilterRel::has_common() const {
return _internal_has_common();
}
inline void FilterRel::clear_common() {
if (GetArenaForAllocation() == nullptr && common_ != nullptr) {
delete common_;
}
common_ = nullptr;
}
inline const ::substrait::RelCommon& FilterRel::_internal_common() const {
const ::substrait::RelCommon* p = common_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon&>(
::substrait::_RelCommon_default_instance_);
}
inline const ::substrait::RelCommon& FilterRel::common() const {
// @@protoc_insertion_point(field_get:substrait.FilterRel.common)
return _internal_common();
}
inline void FilterRel::unsafe_arena_set_allocated_common(
::substrait::RelCommon* common) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_);
}
common_ = common;
if (common) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.FilterRel.common)
}
inline ::substrait::RelCommon* FilterRel::release_common() {
::substrait::RelCommon* temp = common_;
common_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon* FilterRel::unsafe_arena_release_common() {
// @@protoc_insertion_point(field_release:substrait.FilterRel.common)
::substrait::RelCommon* temp = common_;
common_ = nullptr;
return temp;
}
inline ::substrait::RelCommon* FilterRel::_internal_mutable_common() {
if (common_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon>(GetArenaForAllocation());
common_ = p;
}
return common_;
}
inline ::substrait::RelCommon* FilterRel::mutable_common() {
::substrait::RelCommon* _msg = _internal_mutable_common();
// @@protoc_insertion_point(field_mutable:substrait.FilterRel.common)
return _msg;
}
inline void FilterRel::set_allocated_common(::substrait::RelCommon* common) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete common_;
}
if (common) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon>::GetOwningArena(common);
if (message_arena != submessage_arena) {
common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, common, submessage_arena);
}
} else {
}
common_ = common;
// @@protoc_insertion_point(field_set_allocated:substrait.FilterRel.common)
}
// .substrait.Rel input = 2 [json_name = "input"];
inline bool FilterRel::_internal_has_input() const {
return this != internal_default_instance() && input_ != nullptr;
}
inline bool FilterRel::has_input() const {
return _internal_has_input();
}
inline void FilterRel::clear_input() {
if (GetArenaForAllocation() == nullptr && input_ != nullptr) {
delete input_;
}
input_ = nullptr;
}
inline const ::substrait::Rel& FilterRel::_internal_input() const {
const ::substrait::Rel* p = input_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Rel&>(
::substrait::_Rel_default_instance_);
}
inline const ::substrait::Rel& FilterRel::input() const {
// @@protoc_insertion_point(field_get:substrait.FilterRel.input)
return _internal_input();
}
inline void FilterRel::unsafe_arena_set_allocated_input(
::substrait::Rel* input) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(input_);
}
input_ = input;
if (input) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.FilterRel.input)
}
inline ::substrait::Rel* FilterRel::release_input() {
::substrait::Rel* temp = input_;
input_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Rel* FilterRel::unsafe_arena_release_input() {
// @@protoc_insertion_point(field_release:substrait.FilterRel.input)
::substrait::Rel* temp = input_;
input_ = nullptr;
return temp;
}
inline ::substrait::Rel* FilterRel::_internal_mutable_input() {
if (input_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Rel>(GetArenaForAllocation());
input_ = p;
}
return input_;
}
inline ::substrait::Rel* FilterRel::mutable_input() {
::substrait::Rel* _msg = _internal_mutable_input();
// @@protoc_insertion_point(field_mutable:substrait.FilterRel.input)
return _msg;
}
inline void FilterRel::set_allocated_input(::substrait::Rel* input) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete input_;
}
if (input) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::Rel>::GetOwningArena(input);
if (message_arena != submessage_arena) {
input = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, input, submessage_arena);
}
} else {
}
input_ = input;
// @@protoc_insertion_point(field_set_allocated:substrait.FilterRel.input)
}
// .substrait.Expression condition = 3 [json_name = "condition"];
inline bool FilterRel::_internal_has_condition() const {
return this != internal_default_instance() && condition_ != nullptr;
}
inline bool FilterRel::has_condition() const {
return _internal_has_condition();
}
inline const ::substrait::Expression& FilterRel::_internal_condition() const {
const ::substrait::Expression* p = condition_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Expression&>(
::substrait::_Expression_default_instance_);
}
inline const ::substrait::Expression& FilterRel::condition() const {
// @@protoc_insertion_point(field_get:substrait.FilterRel.condition)
return _internal_condition();
}
inline void FilterRel::unsafe_arena_set_allocated_condition(
::substrait::Expression* condition) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(condition_);
}
condition_ = condition;
if (condition) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.FilterRel.condition)
}
inline ::substrait::Expression* FilterRel::release_condition() {
::substrait::Expression* temp = condition_;
condition_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Expression* FilterRel::unsafe_arena_release_condition() {
// @@protoc_insertion_point(field_release:substrait.FilterRel.condition)
::substrait::Expression* temp = condition_;
condition_ = nullptr;
return temp;
}
inline ::substrait::Expression* FilterRel::_internal_mutable_condition() {
if (condition_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Expression>(GetArenaForAllocation());
condition_ = p;
}
return condition_;
}
inline ::substrait::Expression* FilterRel::mutable_condition() {
::substrait::Expression* _msg = _internal_mutable_condition();
// @@protoc_insertion_point(field_mutable:substrait.FilterRel.condition)
return _msg;
}
inline void FilterRel::set_allocated_condition(::substrait::Expression* condition) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(condition_);
}
if (condition) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(condition));
if (message_arena != submessage_arena) {
condition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, condition, submessage_arena);
}
} else {
}
condition_ = condition;
// @@protoc_insertion_point(field_set_allocated:substrait.FilterRel.condition)
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool FilterRel::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool FilterRel::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& FilterRel::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& FilterRel::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.FilterRel.advanced_extension)
return _internal_advanced_extension();
}
inline void FilterRel::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.FilterRel.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* FilterRel::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* FilterRel::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.FilterRel.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* FilterRel::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* FilterRel::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.FilterRel.advanced_extension)
return _msg;
}
inline void FilterRel::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.FilterRel.advanced_extension)
}
// -------------------------------------------------------------------
// SetRel
// .substrait.RelCommon common = 1 [json_name = "common"];
inline bool SetRel::_internal_has_common() const {
return this != internal_default_instance() && common_ != nullptr;
}
inline bool SetRel::has_common() const {
return _internal_has_common();
}
inline void SetRel::clear_common() {
if (GetArenaForAllocation() == nullptr && common_ != nullptr) {
delete common_;
}
common_ = nullptr;
}
inline const ::substrait::RelCommon& SetRel::_internal_common() const {
const ::substrait::RelCommon* p = common_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon&>(
::substrait::_RelCommon_default_instance_);
}
inline const ::substrait::RelCommon& SetRel::common() const {
// @@protoc_insertion_point(field_get:substrait.SetRel.common)
return _internal_common();
}
inline void SetRel::unsafe_arena_set_allocated_common(
::substrait::RelCommon* common) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_);
}
common_ = common;
if (common) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.SetRel.common)
}
inline ::substrait::RelCommon* SetRel::release_common() {
::substrait::RelCommon* temp = common_;
common_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon* SetRel::unsafe_arena_release_common() {
// @@protoc_insertion_point(field_release:substrait.SetRel.common)
::substrait::RelCommon* temp = common_;
common_ = nullptr;
return temp;
}
inline ::substrait::RelCommon* SetRel::_internal_mutable_common() {
if (common_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon>(GetArenaForAllocation());
common_ = p;
}
return common_;
}
inline ::substrait::RelCommon* SetRel::mutable_common() {
::substrait::RelCommon* _msg = _internal_mutable_common();
// @@protoc_insertion_point(field_mutable:substrait.SetRel.common)
return _msg;
}
inline void SetRel::set_allocated_common(::substrait::RelCommon* common) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete common_;
}
if (common) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon>::GetOwningArena(common);
if (message_arena != submessage_arena) {
common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, common, submessage_arena);
}
} else {
}
common_ = common;
// @@protoc_insertion_point(field_set_allocated:substrait.SetRel.common)
}
// repeated .substrait.Rel inputs = 2 [json_name = "inputs"];
inline int SetRel::_internal_inputs_size() const {
return inputs_.size();
}
inline int SetRel::inputs_size() const {
return _internal_inputs_size();
}
inline void SetRel::clear_inputs() {
inputs_.Clear();
}
inline ::substrait::Rel* SetRel::mutable_inputs(int index) {
// @@protoc_insertion_point(field_mutable:substrait.SetRel.inputs)
return inputs_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Rel >*
SetRel::mutable_inputs() {
// @@protoc_insertion_point(field_mutable_list:substrait.SetRel.inputs)
return &inputs_;
}
inline const ::substrait::Rel& SetRel::_internal_inputs(int index) const {
return inputs_.Get(index);
}
inline const ::substrait::Rel& SetRel::inputs(int index) const {
// @@protoc_insertion_point(field_get:substrait.SetRel.inputs)
return _internal_inputs(index);
}
inline ::substrait::Rel* SetRel::_internal_add_inputs() {
return inputs_.Add();
}
inline ::substrait::Rel* SetRel::add_inputs() {
::substrait::Rel* _add = _internal_add_inputs();
// @@protoc_insertion_point(field_add:substrait.SetRel.inputs)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Rel >&
SetRel::inputs() const {
// @@protoc_insertion_point(field_list:substrait.SetRel.inputs)
return inputs_;
}
// .substrait.SetRel.SetOp op = 3 [json_name = "op"];
inline void SetRel::clear_op() {
op_ = 0;
}
inline ::substrait::SetRel_SetOp SetRel::_internal_op() const {
return static_cast< ::substrait::SetRel_SetOp >(op_);
}
inline ::substrait::SetRel_SetOp SetRel::op() const {
// @@protoc_insertion_point(field_get:substrait.SetRel.op)
return _internal_op();
}
inline void SetRel::_internal_set_op(::substrait::SetRel_SetOp value) {
op_ = value;
}
inline void SetRel::set_op(::substrait::SetRel_SetOp value) {
_internal_set_op(value);
// @@protoc_insertion_point(field_set:substrait.SetRel.op)
}
// .substrait.extensions.AdvancedExtension advanced_extension = 10 [json_name = "advancedExtension"];
inline bool SetRel::_internal_has_advanced_extension() const {
return this != internal_default_instance() && advanced_extension_ != nullptr;
}
inline bool SetRel::has_advanced_extension() const {
return _internal_has_advanced_extension();
}
inline const ::substrait::extensions::AdvancedExtension& SetRel::_internal_advanced_extension() const {
const ::substrait::extensions::AdvancedExtension* p = advanced_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::extensions::AdvancedExtension&>(
::substrait::extensions::_AdvancedExtension_default_instance_);
}
inline const ::substrait::extensions::AdvancedExtension& SetRel::advanced_extension() const {
// @@protoc_insertion_point(field_get:substrait.SetRel.advanced_extension)
return _internal_advanced_extension();
}
inline void SetRel::unsafe_arena_set_allocated_advanced_extension(
::substrait::extensions::AdvancedExtension* advanced_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
advanced_extension_ = advanced_extension;
if (advanced_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.SetRel.advanced_extension)
}
inline ::substrait::extensions::AdvancedExtension* SetRel::release_advanced_extension() {
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::extensions::AdvancedExtension* SetRel::unsafe_arena_release_advanced_extension() {
// @@protoc_insertion_point(field_release:substrait.SetRel.advanced_extension)
::substrait::extensions::AdvancedExtension* temp = advanced_extension_;
advanced_extension_ = nullptr;
return temp;
}
inline ::substrait::extensions::AdvancedExtension* SetRel::_internal_mutable_advanced_extension() {
if (advanced_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::extensions::AdvancedExtension>(GetArenaForAllocation());
advanced_extension_ = p;
}
return advanced_extension_;
}
inline ::substrait::extensions::AdvancedExtension* SetRel::mutable_advanced_extension() {
::substrait::extensions::AdvancedExtension* _msg = _internal_mutable_advanced_extension();
// @@protoc_insertion_point(field_mutable:substrait.SetRel.advanced_extension)
return _msg;
}
inline void SetRel::set_allocated_advanced_extension(::substrait::extensions::AdvancedExtension* advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension_);
}
if (advanced_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(advanced_extension));
if (message_arena != submessage_arena) {
advanced_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, advanced_extension, submessage_arena);
}
} else {
}
advanced_extension_ = advanced_extension;
// @@protoc_insertion_point(field_set_allocated:substrait.SetRel.advanced_extension)
}
// -------------------------------------------------------------------
// ExtensionSingleRel
// .substrait.RelCommon common = 1 [json_name = "common"];
inline bool ExtensionSingleRel::_internal_has_common() const {
return this != internal_default_instance() && common_ != nullptr;
}
inline bool ExtensionSingleRel::has_common() const {
return _internal_has_common();
}
inline void ExtensionSingleRel::clear_common() {
if (GetArenaForAllocation() == nullptr && common_ != nullptr) {
delete common_;
}
common_ = nullptr;
}
inline const ::substrait::RelCommon& ExtensionSingleRel::_internal_common() const {
const ::substrait::RelCommon* p = common_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon&>(
::substrait::_RelCommon_default_instance_);
}
inline const ::substrait::RelCommon& ExtensionSingleRel::common() const {
// @@protoc_insertion_point(field_get:substrait.ExtensionSingleRel.common)
return _internal_common();
}
inline void ExtensionSingleRel::unsafe_arena_set_allocated_common(
::substrait::RelCommon* common) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_);
}
common_ = common;
if (common) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ExtensionSingleRel.common)
}
inline ::substrait::RelCommon* ExtensionSingleRel::release_common() {
::substrait::RelCommon* temp = common_;
common_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon* ExtensionSingleRel::unsafe_arena_release_common() {
// @@protoc_insertion_point(field_release:substrait.ExtensionSingleRel.common)
::substrait::RelCommon* temp = common_;
common_ = nullptr;
return temp;
}
inline ::substrait::RelCommon* ExtensionSingleRel::_internal_mutable_common() {
if (common_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon>(GetArenaForAllocation());
common_ = p;
}
return common_;
}
inline ::substrait::RelCommon* ExtensionSingleRel::mutable_common() {
::substrait::RelCommon* _msg = _internal_mutable_common();
// @@protoc_insertion_point(field_mutable:substrait.ExtensionSingleRel.common)
return _msg;
}
inline void ExtensionSingleRel::set_allocated_common(::substrait::RelCommon* common) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete common_;
}
if (common) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon>::GetOwningArena(common);
if (message_arena != submessage_arena) {
common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, common, submessage_arena);
}
} else {
}
common_ = common;
// @@protoc_insertion_point(field_set_allocated:substrait.ExtensionSingleRel.common)
}
// .substrait.Rel input = 2 [json_name = "input"];
inline bool ExtensionSingleRel::_internal_has_input() const {
return this != internal_default_instance() && input_ != nullptr;
}
inline bool ExtensionSingleRel::has_input() const {
return _internal_has_input();
}
inline void ExtensionSingleRel::clear_input() {
if (GetArenaForAllocation() == nullptr && input_ != nullptr) {
delete input_;
}
input_ = nullptr;
}
inline const ::substrait::Rel& ExtensionSingleRel::_internal_input() const {
const ::substrait::Rel* p = input_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Rel&>(
::substrait::_Rel_default_instance_);
}
inline const ::substrait::Rel& ExtensionSingleRel::input() const {
// @@protoc_insertion_point(field_get:substrait.ExtensionSingleRel.input)
return _internal_input();
}
inline void ExtensionSingleRel::unsafe_arena_set_allocated_input(
::substrait::Rel* input) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(input_);
}
input_ = input;
if (input) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ExtensionSingleRel.input)
}
inline ::substrait::Rel* ExtensionSingleRel::release_input() {
::substrait::Rel* temp = input_;
input_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Rel* ExtensionSingleRel::unsafe_arena_release_input() {
// @@protoc_insertion_point(field_release:substrait.ExtensionSingleRel.input)
::substrait::Rel* temp = input_;
input_ = nullptr;
return temp;
}
inline ::substrait::Rel* ExtensionSingleRel::_internal_mutable_input() {
if (input_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Rel>(GetArenaForAllocation());
input_ = p;
}
return input_;
}
inline ::substrait::Rel* ExtensionSingleRel::mutable_input() {
::substrait::Rel* _msg = _internal_mutable_input();
// @@protoc_insertion_point(field_mutable:substrait.ExtensionSingleRel.input)
return _msg;
}
inline void ExtensionSingleRel::set_allocated_input(::substrait::Rel* input) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete input_;
}
if (input) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::Rel>::GetOwningArena(input);
if (message_arena != submessage_arena) {
input = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, input, submessage_arena);
}
} else {
}
input_ = input;
// @@protoc_insertion_point(field_set_allocated:substrait.ExtensionSingleRel.input)
}
// .google.protobuf.Any detail = 3 [json_name = "detail"];
inline bool ExtensionSingleRel::_internal_has_detail() const {
return this != internal_default_instance() && detail_ != nullptr;
}
inline bool ExtensionSingleRel::has_detail() const {
return _internal_has_detail();
}
inline const ::PROTOBUF_NAMESPACE_ID::Any& ExtensionSingleRel::_internal_detail() const {
const ::PROTOBUF_NAMESPACE_ID::Any* p = detail_;
return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Any&>(
::PROTOBUF_NAMESPACE_ID::_Any_default_instance_);
}
inline const ::PROTOBUF_NAMESPACE_ID::Any& ExtensionSingleRel::detail() const {
// @@protoc_insertion_point(field_get:substrait.ExtensionSingleRel.detail)
return _internal_detail();
}
inline void ExtensionSingleRel::unsafe_arena_set_allocated_detail(
::PROTOBUF_NAMESPACE_ID::Any* detail) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(detail_);
}
detail_ = detail;
if (detail) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ExtensionSingleRel.detail)
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ExtensionSingleRel::release_detail() {
::PROTOBUF_NAMESPACE_ID::Any* temp = detail_;
detail_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ExtensionSingleRel::unsafe_arena_release_detail() {
// @@protoc_insertion_point(field_release:substrait.ExtensionSingleRel.detail)
::PROTOBUF_NAMESPACE_ID::Any* temp = detail_;
detail_ = nullptr;
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ExtensionSingleRel::_internal_mutable_detail() {
if (detail_ == nullptr) {
auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Any>(GetArenaForAllocation());
detail_ = p;
}
return detail_;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ExtensionSingleRel::mutable_detail() {
::PROTOBUF_NAMESPACE_ID::Any* _msg = _internal_mutable_detail();
// @@protoc_insertion_point(field_mutable:substrait.ExtensionSingleRel.detail)
return _msg;
}
inline void ExtensionSingleRel::set_allocated_detail(::PROTOBUF_NAMESPACE_ID::Any* detail) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(detail_);
}
if (detail) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(detail));
if (message_arena != submessage_arena) {
detail = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, detail, submessage_arena);
}
} else {
}
detail_ = detail;
// @@protoc_insertion_point(field_set_allocated:substrait.ExtensionSingleRel.detail)
}
// -------------------------------------------------------------------
// ExtensionLeafRel
// .substrait.RelCommon common = 1 [json_name = "common"];
inline bool ExtensionLeafRel::_internal_has_common() const {
return this != internal_default_instance() && common_ != nullptr;
}
inline bool ExtensionLeafRel::has_common() const {
return _internal_has_common();
}
inline void ExtensionLeafRel::clear_common() {
if (GetArenaForAllocation() == nullptr && common_ != nullptr) {
delete common_;
}
common_ = nullptr;
}
inline const ::substrait::RelCommon& ExtensionLeafRel::_internal_common() const {
const ::substrait::RelCommon* p = common_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon&>(
::substrait::_RelCommon_default_instance_);
}
inline const ::substrait::RelCommon& ExtensionLeafRel::common() const {
// @@protoc_insertion_point(field_get:substrait.ExtensionLeafRel.common)
return _internal_common();
}
inline void ExtensionLeafRel::unsafe_arena_set_allocated_common(
::substrait::RelCommon* common) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_);
}
common_ = common;
if (common) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ExtensionLeafRel.common)
}
inline ::substrait::RelCommon* ExtensionLeafRel::release_common() {
::substrait::RelCommon* temp = common_;
common_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon* ExtensionLeafRel::unsafe_arena_release_common() {
// @@protoc_insertion_point(field_release:substrait.ExtensionLeafRel.common)
::substrait::RelCommon* temp = common_;
common_ = nullptr;
return temp;
}
inline ::substrait::RelCommon* ExtensionLeafRel::_internal_mutable_common() {
if (common_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon>(GetArenaForAllocation());
common_ = p;
}
return common_;
}
inline ::substrait::RelCommon* ExtensionLeafRel::mutable_common() {
::substrait::RelCommon* _msg = _internal_mutable_common();
// @@protoc_insertion_point(field_mutable:substrait.ExtensionLeafRel.common)
return _msg;
}
inline void ExtensionLeafRel::set_allocated_common(::substrait::RelCommon* common) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete common_;
}
if (common) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon>::GetOwningArena(common);
if (message_arena != submessage_arena) {
common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, common, submessage_arena);
}
} else {
}
common_ = common;
// @@protoc_insertion_point(field_set_allocated:substrait.ExtensionLeafRel.common)
}
// .google.protobuf.Any detail = 2 [json_name = "detail"];
inline bool ExtensionLeafRel::_internal_has_detail() const {
return this != internal_default_instance() && detail_ != nullptr;
}
inline bool ExtensionLeafRel::has_detail() const {
return _internal_has_detail();
}
inline const ::PROTOBUF_NAMESPACE_ID::Any& ExtensionLeafRel::_internal_detail() const {
const ::PROTOBUF_NAMESPACE_ID::Any* p = detail_;
return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Any&>(
::PROTOBUF_NAMESPACE_ID::_Any_default_instance_);
}
inline const ::PROTOBUF_NAMESPACE_ID::Any& ExtensionLeafRel::detail() const {
// @@protoc_insertion_point(field_get:substrait.ExtensionLeafRel.detail)
return _internal_detail();
}
inline void ExtensionLeafRel::unsafe_arena_set_allocated_detail(
::PROTOBUF_NAMESPACE_ID::Any* detail) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(detail_);
}
detail_ = detail;
if (detail) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ExtensionLeafRel.detail)
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ExtensionLeafRel::release_detail() {
::PROTOBUF_NAMESPACE_ID::Any* temp = detail_;
detail_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ExtensionLeafRel::unsafe_arena_release_detail() {
// @@protoc_insertion_point(field_release:substrait.ExtensionLeafRel.detail)
::PROTOBUF_NAMESPACE_ID::Any* temp = detail_;
detail_ = nullptr;
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ExtensionLeafRel::_internal_mutable_detail() {
if (detail_ == nullptr) {
auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Any>(GetArenaForAllocation());
detail_ = p;
}
return detail_;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ExtensionLeafRel::mutable_detail() {
::PROTOBUF_NAMESPACE_ID::Any* _msg = _internal_mutable_detail();
// @@protoc_insertion_point(field_mutable:substrait.ExtensionLeafRel.detail)
return _msg;
}
inline void ExtensionLeafRel::set_allocated_detail(::PROTOBUF_NAMESPACE_ID::Any* detail) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(detail_);
}
if (detail) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(detail));
if (message_arena != submessage_arena) {
detail = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, detail, submessage_arena);
}
} else {
}
detail_ = detail;
// @@protoc_insertion_point(field_set_allocated:substrait.ExtensionLeafRel.detail)
}
// -------------------------------------------------------------------
// ExtensionMultiRel
// .substrait.RelCommon common = 1 [json_name = "common"];
inline bool ExtensionMultiRel::_internal_has_common() const {
return this != internal_default_instance() && common_ != nullptr;
}
inline bool ExtensionMultiRel::has_common() const {
return _internal_has_common();
}
inline void ExtensionMultiRel::clear_common() {
if (GetArenaForAllocation() == nullptr && common_ != nullptr) {
delete common_;
}
common_ = nullptr;
}
inline const ::substrait::RelCommon& ExtensionMultiRel::_internal_common() const {
const ::substrait::RelCommon* p = common_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::RelCommon&>(
::substrait::_RelCommon_default_instance_);
}
inline const ::substrait::RelCommon& ExtensionMultiRel::common() const {
// @@protoc_insertion_point(field_get:substrait.ExtensionMultiRel.common)
return _internal_common();
}
inline void ExtensionMultiRel::unsafe_arena_set_allocated_common(
::substrait::RelCommon* common) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(common_);
}
common_ = common;
if (common) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ExtensionMultiRel.common)
}
inline ::substrait::RelCommon* ExtensionMultiRel::release_common() {
::substrait::RelCommon* temp = common_;
common_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::RelCommon* ExtensionMultiRel::unsafe_arena_release_common() {
// @@protoc_insertion_point(field_release:substrait.ExtensionMultiRel.common)
::substrait::RelCommon* temp = common_;
common_ = nullptr;
return temp;
}
inline ::substrait::RelCommon* ExtensionMultiRel::_internal_mutable_common() {
if (common_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::RelCommon>(GetArenaForAllocation());
common_ = p;
}
return common_;
}
inline ::substrait::RelCommon* ExtensionMultiRel::mutable_common() {
::substrait::RelCommon* _msg = _internal_mutable_common();
// @@protoc_insertion_point(field_mutable:substrait.ExtensionMultiRel.common)
return _msg;
}
inline void ExtensionMultiRel::set_allocated_common(::substrait::RelCommon* common) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete common_;
}
if (common) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::RelCommon>::GetOwningArena(common);
if (message_arena != submessage_arena) {
common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, common, submessage_arena);
}
} else {
}
common_ = common;
// @@protoc_insertion_point(field_set_allocated:substrait.ExtensionMultiRel.common)
}
// repeated .substrait.Rel inputs = 2 [json_name = "inputs"];
inline int ExtensionMultiRel::_internal_inputs_size() const {
return inputs_.size();
}
inline int ExtensionMultiRel::inputs_size() const {
return _internal_inputs_size();
}
inline void ExtensionMultiRel::clear_inputs() {
inputs_.Clear();
}
inline ::substrait::Rel* ExtensionMultiRel::mutable_inputs(int index) {
// @@protoc_insertion_point(field_mutable:substrait.ExtensionMultiRel.inputs)
return inputs_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Rel >*
ExtensionMultiRel::mutable_inputs() {
// @@protoc_insertion_point(field_mutable_list:substrait.ExtensionMultiRel.inputs)
return &inputs_;
}
inline const ::substrait::Rel& ExtensionMultiRel::_internal_inputs(int index) const {
return inputs_.Get(index);
}
inline const ::substrait::Rel& ExtensionMultiRel::inputs(int index) const {
// @@protoc_insertion_point(field_get:substrait.ExtensionMultiRel.inputs)
return _internal_inputs(index);
}
inline ::substrait::Rel* ExtensionMultiRel::_internal_add_inputs() {
return inputs_.Add();
}
inline ::substrait::Rel* ExtensionMultiRel::add_inputs() {
::substrait::Rel* _add = _internal_add_inputs();
// @@protoc_insertion_point(field_add:substrait.ExtensionMultiRel.inputs)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::substrait::Rel >&
ExtensionMultiRel::inputs() const {
// @@protoc_insertion_point(field_list:substrait.ExtensionMultiRel.inputs)
return inputs_;
}
// .google.protobuf.Any detail = 3 [json_name = "detail"];
inline bool ExtensionMultiRel::_internal_has_detail() const {
return this != internal_default_instance() && detail_ != nullptr;
}
inline bool ExtensionMultiRel::has_detail() const {
return _internal_has_detail();
}
inline const ::PROTOBUF_NAMESPACE_ID::Any& ExtensionMultiRel::_internal_detail() const {
const ::PROTOBUF_NAMESPACE_ID::Any* p = detail_;
return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Any&>(
::PROTOBUF_NAMESPACE_ID::_Any_default_instance_);
}
inline const ::PROTOBUF_NAMESPACE_ID::Any& ExtensionMultiRel::detail() const {
// @@protoc_insertion_point(field_get:substrait.ExtensionMultiRel.detail)
return _internal_detail();
}
inline void ExtensionMultiRel::unsafe_arena_set_allocated_detail(
::PROTOBUF_NAMESPACE_ID::Any* detail) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(detail_);
}
detail_ = detail;
if (detail) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.ExtensionMultiRel.detail)
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ExtensionMultiRel::release_detail() {
::PROTOBUF_NAMESPACE_ID::Any* temp = detail_;
detail_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ExtensionMultiRel::unsafe_arena_release_detail() {
// @@protoc_insertion_point(field_release:substrait.ExtensionMultiRel.detail)
::PROTOBUF_NAMESPACE_ID::Any* temp = detail_;
detail_ = nullptr;
return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ExtensionMultiRel::_internal_mutable_detail() {
if (detail_ == nullptr) {
auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Any>(GetArenaForAllocation());
detail_ = p;
}
return detail_;
}
inline ::PROTOBUF_NAMESPACE_ID::Any* ExtensionMultiRel::mutable_detail() {
::PROTOBUF_NAMESPACE_ID::Any* _msg = _internal_mutable_detail();
// @@protoc_insertion_point(field_mutable:substrait.ExtensionMultiRel.detail)
return _msg;
}
inline void ExtensionMultiRel::set_allocated_detail(::PROTOBUF_NAMESPACE_ID::Any* detail) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(detail_);
}
if (detail) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(detail));
if (message_arena != submessage_arena) {
detail = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, detail, submessage_arena);
}
} else {
}
detail_ = detail;
// @@protoc_insertion_point(field_set_allocated:substrait.ExtensionMultiRel.detail)
}
// -------------------------------------------------------------------
// RelRoot
// .substrait.Rel input = 1 [json_name = "input"];
inline bool RelRoot::_internal_has_input() const {
return this != internal_default_instance() && input_ != nullptr;
}
inline bool RelRoot::has_input() const {
return _internal_has_input();
}
inline void RelRoot::clear_input() {
if (GetArenaForAllocation() == nullptr && input_ != nullptr) {
delete input_;
}
input_ = nullptr;
}
inline const ::substrait::Rel& RelRoot::_internal_input() const {
const ::substrait::Rel* p = input_;
return p != nullptr ? *p : reinterpret_cast<const ::substrait::Rel&>(
::substrait::_Rel_default_instance_);
}
inline const ::substrait::Rel& RelRoot::input() const {
// @@protoc_insertion_point(field_get:substrait.RelRoot.input)
return _internal_input();
}
inline void RelRoot::unsafe_arena_set_allocated_input(
::substrait::Rel* input) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(input_);
}
input_ = input;
if (input) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.RelRoot.input)
}
inline ::substrait::Rel* RelRoot::release_input() {
::substrait::Rel* temp = input_;
input_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::substrait::Rel* RelRoot::unsafe_arena_release_input() {
// @@protoc_insertion_point(field_release:substrait.RelRoot.input)
::substrait::Rel* temp = input_;
input_ = nullptr;
return temp;
}
inline ::substrait::Rel* RelRoot::_internal_mutable_input() {
if (input_ == nullptr) {
auto* p = CreateMaybeMessage<::substrait::Rel>(GetArenaForAllocation());
input_ = p;
}
return input_;
}
inline ::substrait::Rel* RelRoot::mutable_input() {
::substrait::Rel* _msg = _internal_mutable_input();
// @@protoc_insertion_point(field_mutable:substrait.RelRoot.input)
return _msg;
}
inline void RelRoot::set_allocated_input(::substrait::Rel* input) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete input_;
}
if (input) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::substrait::Rel>::GetOwningArena(input);
if (message_arena != submessage_arena) {
input = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, input, submessage_arena);
}
} else {
}
input_ = input;
// @@protoc_insertion_point(field_set_allocated:substrait.RelRoot.input)
}
// repeated string names = 2 [json_name = "names"];
inline int RelRoot::_internal_names_size() const {
return names_.size();
}
inline int RelRoot::names_size() const {
return _internal_names_size();
}
inline void RelRoot::clear_names() {
names_.Clear();
}
inline std::string* RelRoot::add_names() {
std::string* _s = _internal_add_names();
// @@protoc_insertion_point(field_add_mutable:substrait.RelRoot.names)
return _s;
}
inline const std::string& RelRoot::_internal_names(int index) const {
return names_.Get(index);
}
inline const std::string& RelRoot::names(int index) const {
// @@protoc_insertion_point(field_get:substrait.RelRoot.names)
return _internal_names(index);
}
inline std::string* RelRoot::mutable_names(int index) {
// @@protoc_insertion_point(field_mutable:substrait.RelRoot.names)
return names_.Mutable(index);
}
inline void RelRoot::set_names(int index, const std::string& value) {
names_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set:substrait.RelRoot.names)
}
inline void RelRoot::set_names(int index, std::string&& value) {
names_.Mutable(index)->assign(std::move(value));
// @@protoc_insertion_point(field_set:substrait.RelRoot.names)
}
inline void RelRoot::set_names(int index, const char* value) {
GOOGLE_DCHECK(value != nullptr);
names_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:substrait.RelRoot.names)
}
inline void RelRoot::set_names(int index, const char* value, size_t size) {
names_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:substrait.RelRoot.names)
}
inline std::string* RelRoot::_internal_add_names() {
return names_.Add();
}
inline void RelRoot::add_names(const std::string& value) {
names_.Add()->assign(value);
// @@protoc_insertion_point(field_add:substrait.RelRoot.names)
}
inline void RelRoot::add_names(std::string&& value) {
names_.Add(std::move(value));
// @@protoc_insertion_point(field_add:substrait.RelRoot.names)
}
inline void RelRoot::add_names(const char* value) {
GOOGLE_DCHECK(value != nullptr);
names_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:substrait.RelRoot.names)
}
inline void RelRoot::add_names(const char* value, size_t size) {
names_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:substrait.RelRoot.names)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
RelRoot::names() const {
// @@protoc_insertion_point(field_list:substrait.RelRoot.names)
return names_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
RelRoot::mutable_names() {
// @@protoc_insertion_point(field_mutable_list:substrait.RelRoot.names)
return &names_;
}
// -------------------------------------------------------------------
// Rel
// .substrait.ReadRel read = 1 [json_name = "read"];
inline bool Rel::_internal_has_read() const {
return rel_type_case() == kRead;
}
inline bool Rel::has_read() const {
return _internal_has_read();
}
inline void Rel::set_has_read() {
_oneof_case_[0] = kRead;
}
inline void Rel::clear_read() {
if (_internal_has_read()) {
if (GetArenaForAllocation() == nullptr) {
delete rel_type_.read_;
}
clear_has_rel_type();
}
}
inline ::substrait::ReadRel* Rel::release_read() {
// @@protoc_insertion_point(field_release:substrait.Rel.read)
if (_internal_has_read()) {
clear_has_rel_type();
::substrait::ReadRel* temp = rel_type_.read_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
rel_type_.read_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::ReadRel& Rel::_internal_read() const {
return _internal_has_read()
? *rel_type_.read_
: reinterpret_cast< ::substrait::ReadRel&>(::substrait::_ReadRel_default_instance_);
}
inline const ::substrait::ReadRel& Rel::read() const {
// @@protoc_insertion_point(field_get:substrait.Rel.read)
return _internal_read();
}
inline ::substrait::ReadRel* Rel::unsafe_arena_release_read() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.Rel.read)
if (_internal_has_read()) {
clear_has_rel_type();
::substrait::ReadRel* temp = rel_type_.read_;
rel_type_.read_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Rel::unsafe_arena_set_allocated_read(::substrait::ReadRel* read) {
clear_rel_type();
if (read) {
set_has_read();
rel_type_.read_ = read;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.Rel.read)
}
inline ::substrait::ReadRel* Rel::_internal_mutable_read() {
if (!_internal_has_read()) {
clear_rel_type();
set_has_read();
rel_type_.read_ = CreateMaybeMessage< ::substrait::ReadRel >(GetArenaForAllocation());
}
return rel_type_.read_;
}
inline ::substrait::ReadRel* Rel::mutable_read() {
::substrait::ReadRel* _msg = _internal_mutable_read();
// @@protoc_insertion_point(field_mutable:substrait.Rel.read)
return _msg;
}
// .substrait.FilterRel filter = 2 [json_name = "filter"];
inline bool Rel::_internal_has_filter() const {
return rel_type_case() == kFilter;
}
inline bool Rel::has_filter() const {
return _internal_has_filter();
}
inline void Rel::set_has_filter() {
_oneof_case_[0] = kFilter;
}
inline void Rel::clear_filter() {
if (_internal_has_filter()) {
if (GetArenaForAllocation() == nullptr) {
delete rel_type_.filter_;
}
clear_has_rel_type();
}
}
inline ::substrait::FilterRel* Rel::release_filter() {
// @@protoc_insertion_point(field_release:substrait.Rel.filter)
if (_internal_has_filter()) {
clear_has_rel_type();
::substrait::FilterRel* temp = rel_type_.filter_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
rel_type_.filter_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::FilterRel& Rel::_internal_filter() const {
return _internal_has_filter()
? *rel_type_.filter_
: reinterpret_cast< ::substrait::FilterRel&>(::substrait::_FilterRel_default_instance_);
}
inline const ::substrait::FilterRel& Rel::filter() const {
// @@protoc_insertion_point(field_get:substrait.Rel.filter)
return _internal_filter();
}
inline ::substrait::FilterRel* Rel::unsafe_arena_release_filter() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.Rel.filter)
if (_internal_has_filter()) {
clear_has_rel_type();
::substrait::FilterRel* temp = rel_type_.filter_;
rel_type_.filter_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Rel::unsafe_arena_set_allocated_filter(::substrait::FilterRel* filter) {
clear_rel_type();
if (filter) {
set_has_filter();
rel_type_.filter_ = filter;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.Rel.filter)
}
inline ::substrait::FilterRel* Rel::_internal_mutable_filter() {
if (!_internal_has_filter()) {
clear_rel_type();
set_has_filter();
rel_type_.filter_ = CreateMaybeMessage< ::substrait::FilterRel >(GetArenaForAllocation());
}
return rel_type_.filter_;
}
inline ::substrait::FilterRel* Rel::mutable_filter() {
::substrait::FilterRel* _msg = _internal_mutable_filter();
// @@protoc_insertion_point(field_mutable:substrait.Rel.filter)
return _msg;
}
// .substrait.FetchRel fetch = 3 [json_name = "fetch"];
inline bool Rel::_internal_has_fetch() const {
return rel_type_case() == kFetch;
}
inline bool Rel::has_fetch() const {
return _internal_has_fetch();
}
inline void Rel::set_has_fetch() {
_oneof_case_[0] = kFetch;
}
inline void Rel::clear_fetch() {
if (_internal_has_fetch()) {
if (GetArenaForAllocation() == nullptr) {
delete rel_type_.fetch_;
}
clear_has_rel_type();
}
}
inline ::substrait::FetchRel* Rel::release_fetch() {
// @@protoc_insertion_point(field_release:substrait.Rel.fetch)
if (_internal_has_fetch()) {
clear_has_rel_type();
::substrait::FetchRel* temp = rel_type_.fetch_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
rel_type_.fetch_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::FetchRel& Rel::_internal_fetch() const {
return _internal_has_fetch()
? *rel_type_.fetch_
: reinterpret_cast< ::substrait::FetchRel&>(::substrait::_FetchRel_default_instance_);
}
inline const ::substrait::FetchRel& Rel::fetch() const {
// @@protoc_insertion_point(field_get:substrait.Rel.fetch)
return _internal_fetch();
}
inline ::substrait::FetchRel* Rel::unsafe_arena_release_fetch() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.Rel.fetch)
if (_internal_has_fetch()) {
clear_has_rel_type();
::substrait::FetchRel* temp = rel_type_.fetch_;
rel_type_.fetch_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Rel::unsafe_arena_set_allocated_fetch(::substrait::FetchRel* fetch) {
clear_rel_type();
if (fetch) {
set_has_fetch();
rel_type_.fetch_ = fetch;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.Rel.fetch)
}
inline ::substrait::FetchRel* Rel::_internal_mutable_fetch() {
if (!_internal_has_fetch()) {
clear_rel_type();
set_has_fetch();
rel_type_.fetch_ = CreateMaybeMessage< ::substrait::FetchRel >(GetArenaForAllocation());
}
return rel_type_.fetch_;
}
inline ::substrait::FetchRel* Rel::mutable_fetch() {
::substrait::FetchRel* _msg = _internal_mutable_fetch();
// @@protoc_insertion_point(field_mutable:substrait.Rel.fetch)
return _msg;
}
// .substrait.AggregateRel aggregate = 4 [json_name = "aggregate"];
inline bool Rel::_internal_has_aggregate() const {
return rel_type_case() == kAggregate;
}
inline bool Rel::has_aggregate() const {
return _internal_has_aggregate();
}
inline void Rel::set_has_aggregate() {
_oneof_case_[0] = kAggregate;
}
inline void Rel::clear_aggregate() {
if (_internal_has_aggregate()) {
if (GetArenaForAllocation() == nullptr) {
delete rel_type_.aggregate_;
}
clear_has_rel_type();
}
}
inline ::substrait::AggregateRel* Rel::release_aggregate() {
// @@protoc_insertion_point(field_release:substrait.Rel.aggregate)
if (_internal_has_aggregate()) {
clear_has_rel_type();
::substrait::AggregateRel* temp = rel_type_.aggregate_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
rel_type_.aggregate_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::AggregateRel& Rel::_internal_aggregate() const {
return _internal_has_aggregate()
? *rel_type_.aggregate_
: reinterpret_cast< ::substrait::AggregateRel&>(::substrait::_AggregateRel_default_instance_);
}
inline const ::substrait::AggregateRel& Rel::aggregate() const {
// @@protoc_insertion_point(field_get:substrait.Rel.aggregate)
return _internal_aggregate();
}
inline ::substrait::AggregateRel* Rel::unsafe_arena_release_aggregate() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.Rel.aggregate)
if (_internal_has_aggregate()) {
clear_has_rel_type();
::substrait::AggregateRel* temp = rel_type_.aggregate_;
rel_type_.aggregate_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Rel::unsafe_arena_set_allocated_aggregate(::substrait::AggregateRel* aggregate) {
clear_rel_type();
if (aggregate) {
set_has_aggregate();
rel_type_.aggregate_ = aggregate;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.Rel.aggregate)
}
inline ::substrait::AggregateRel* Rel::_internal_mutable_aggregate() {
if (!_internal_has_aggregate()) {
clear_rel_type();
set_has_aggregate();
rel_type_.aggregate_ = CreateMaybeMessage< ::substrait::AggregateRel >(GetArenaForAllocation());
}
return rel_type_.aggregate_;
}
inline ::substrait::AggregateRel* Rel::mutable_aggregate() {
::substrait::AggregateRel* _msg = _internal_mutable_aggregate();
// @@protoc_insertion_point(field_mutable:substrait.Rel.aggregate)
return _msg;
}
// .substrait.SortRel sort = 5 [json_name = "sort"];
inline bool Rel::_internal_has_sort() const {
return rel_type_case() == kSort;
}
inline bool Rel::has_sort() const {
return _internal_has_sort();
}
inline void Rel::set_has_sort() {
_oneof_case_[0] = kSort;
}
inline void Rel::clear_sort() {
if (_internal_has_sort()) {
if (GetArenaForAllocation() == nullptr) {
delete rel_type_.sort_;
}
clear_has_rel_type();
}
}
inline ::substrait::SortRel* Rel::release_sort() {
// @@protoc_insertion_point(field_release:substrait.Rel.sort)
if (_internal_has_sort()) {
clear_has_rel_type();
::substrait::SortRel* temp = rel_type_.sort_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
rel_type_.sort_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::SortRel& Rel::_internal_sort() const {
return _internal_has_sort()
? *rel_type_.sort_
: reinterpret_cast< ::substrait::SortRel&>(::substrait::_SortRel_default_instance_);
}
inline const ::substrait::SortRel& Rel::sort() const {
// @@protoc_insertion_point(field_get:substrait.Rel.sort)
return _internal_sort();
}
inline ::substrait::SortRel* Rel::unsafe_arena_release_sort() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.Rel.sort)
if (_internal_has_sort()) {
clear_has_rel_type();
::substrait::SortRel* temp = rel_type_.sort_;
rel_type_.sort_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Rel::unsafe_arena_set_allocated_sort(::substrait::SortRel* sort) {
clear_rel_type();
if (sort) {
set_has_sort();
rel_type_.sort_ = sort;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.Rel.sort)
}
inline ::substrait::SortRel* Rel::_internal_mutable_sort() {
if (!_internal_has_sort()) {
clear_rel_type();
set_has_sort();
rel_type_.sort_ = CreateMaybeMessage< ::substrait::SortRel >(GetArenaForAllocation());
}
return rel_type_.sort_;
}
inline ::substrait::SortRel* Rel::mutable_sort() {
::substrait::SortRel* _msg = _internal_mutable_sort();
// @@protoc_insertion_point(field_mutable:substrait.Rel.sort)
return _msg;
}
// .substrait.JoinRel join = 6 [json_name = "join"];
inline bool Rel::_internal_has_join() const {
return rel_type_case() == kJoin;
}
inline bool Rel::has_join() const {
return _internal_has_join();
}
inline void Rel::set_has_join() {
_oneof_case_[0] = kJoin;
}
inline void Rel::clear_join() {
if (_internal_has_join()) {
if (GetArenaForAllocation() == nullptr) {
delete rel_type_.join_;
}
clear_has_rel_type();
}
}
inline ::substrait::JoinRel* Rel::release_join() {
// @@protoc_insertion_point(field_release:substrait.Rel.join)
if (_internal_has_join()) {
clear_has_rel_type();
::substrait::JoinRel* temp = rel_type_.join_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
rel_type_.join_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::JoinRel& Rel::_internal_join() const {
return _internal_has_join()
? *rel_type_.join_
: reinterpret_cast< ::substrait::JoinRel&>(::substrait::_JoinRel_default_instance_);
}
inline const ::substrait::JoinRel& Rel::join() const {
// @@protoc_insertion_point(field_get:substrait.Rel.join)
return _internal_join();
}
inline ::substrait::JoinRel* Rel::unsafe_arena_release_join() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.Rel.join)
if (_internal_has_join()) {
clear_has_rel_type();
::substrait::JoinRel* temp = rel_type_.join_;
rel_type_.join_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Rel::unsafe_arena_set_allocated_join(::substrait::JoinRel* join) {
clear_rel_type();
if (join) {
set_has_join();
rel_type_.join_ = join;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.Rel.join)
}
inline ::substrait::JoinRel* Rel::_internal_mutable_join() {
if (!_internal_has_join()) {
clear_rel_type();
set_has_join();
rel_type_.join_ = CreateMaybeMessage< ::substrait::JoinRel >(GetArenaForAllocation());
}
return rel_type_.join_;
}
inline ::substrait::JoinRel* Rel::mutable_join() {
::substrait::JoinRel* _msg = _internal_mutable_join();
// @@protoc_insertion_point(field_mutable:substrait.Rel.join)
return _msg;
}
// .substrait.ProjectRel project = 7 [json_name = "project"];
inline bool Rel::_internal_has_project() const {
return rel_type_case() == kProject;
}
inline bool Rel::has_project() const {
return _internal_has_project();
}
inline void Rel::set_has_project() {
_oneof_case_[0] = kProject;
}
inline void Rel::clear_project() {
if (_internal_has_project()) {
if (GetArenaForAllocation() == nullptr) {
delete rel_type_.project_;
}
clear_has_rel_type();
}
}
inline ::substrait::ProjectRel* Rel::release_project() {
// @@protoc_insertion_point(field_release:substrait.Rel.project)
if (_internal_has_project()) {
clear_has_rel_type();
::substrait::ProjectRel* temp = rel_type_.project_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
rel_type_.project_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::ProjectRel& Rel::_internal_project() const {
return _internal_has_project()
? *rel_type_.project_
: reinterpret_cast< ::substrait::ProjectRel&>(::substrait::_ProjectRel_default_instance_);
}
inline const ::substrait::ProjectRel& Rel::project() const {
// @@protoc_insertion_point(field_get:substrait.Rel.project)
return _internal_project();
}
inline ::substrait::ProjectRel* Rel::unsafe_arena_release_project() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.Rel.project)
if (_internal_has_project()) {
clear_has_rel_type();
::substrait::ProjectRel* temp = rel_type_.project_;
rel_type_.project_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Rel::unsafe_arena_set_allocated_project(::substrait::ProjectRel* project) {
clear_rel_type();
if (project) {
set_has_project();
rel_type_.project_ = project;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.Rel.project)
}
inline ::substrait::ProjectRel* Rel::_internal_mutable_project() {
if (!_internal_has_project()) {
clear_rel_type();
set_has_project();
rel_type_.project_ = CreateMaybeMessage< ::substrait::ProjectRel >(GetArenaForAllocation());
}
return rel_type_.project_;
}
inline ::substrait::ProjectRel* Rel::mutable_project() {
::substrait::ProjectRel* _msg = _internal_mutable_project();
// @@protoc_insertion_point(field_mutable:substrait.Rel.project)
return _msg;
}
// .substrait.SetRel set = 8 [json_name = "set"];
inline bool Rel::_internal_has_set() const {
return rel_type_case() == kSet;
}
inline bool Rel::has_set() const {
return _internal_has_set();
}
inline void Rel::set_has_set() {
_oneof_case_[0] = kSet;
}
inline void Rel::clear_set() {
if (_internal_has_set()) {
if (GetArenaForAllocation() == nullptr) {
delete rel_type_.set_;
}
clear_has_rel_type();
}
}
inline ::substrait::SetRel* Rel::release_set() {
// @@protoc_insertion_point(field_release:substrait.Rel.set)
if (_internal_has_set()) {
clear_has_rel_type();
::substrait::SetRel* temp = rel_type_.set_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
rel_type_.set_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::SetRel& Rel::_internal_set() const {
return _internal_has_set()
? *rel_type_.set_
: reinterpret_cast< ::substrait::SetRel&>(::substrait::_SetRel_default_instance_);
}
inline const ::substrait::SetRel& Rel::set() const {
// @@protoc_insertion_point(field_get:substrait.Rel.set)
return _internal_set();
}
inline ::substrait::SetRel* Rel::unsafe_arena_release_set() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.Rel.set)
if (_internal_has_set()) {
clear_has_rel_type();
::substrait::SetRel* temp = rel_type_.set_;
rel_type_.set_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Rel::unsafe_arena_set_allocated_set(::substrait::SetRel* set) {
clear_rel_type();
if (set) {
set_has_set();
rel_type_.set_ = set;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.Rel.set)
}
inline ::substrait::SetRel* Rel::_internal_mutable_set() {
if (!_internal_has_set()) {
clear_rel_type();
set_has_set();
rel_type_.set_ = CreateMaybeMessage< ::substrait::SetRel >(GetArenaForAllocation());
}
return rel_type_.set_;
}
inline ::substrait::SetRel* Rel::mutable_set() {
::substrait::SetRel* _msg = _internal_mutable_set();
// @@protoc_insertion_point(field_mutable:substrait.Rel.set)
return _msg;
}
// .substrait.ExtensionSingleRel extension_single = 9 [json_name = "extensionSingle"];
inline bool Rel::_internal_has_extension_single() const {
return rel_type_case() == kExtensionSingle;
}
inline bool Rel::has_extension_single() const {
return _internal_has_extension_single();
}
inline void Rel::set_has_extension_single() {
_oneof_case_[0] = kExtensionSingle;
}
inline void Rel::clear_extension_single() {
if (_internal_has_extension_single()) {
if (GetArenaForAllocation() == nullptr) {
delete rel_type_.extension_single_;
}
clear_has_rel_type();
}
}
inline ::substrait::ExtensionSingleRel* Rel::release_extension_single() {
// @@protoc_insertion_point(field_release:substrait.Rel.extension_single)
if (_internal_has_extension_single()) {
clear_has_rel_type();
::substrait::ExtensionSingleRel* temp = rel_type_.extension_single_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
rel_type_.extension_single_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::ExtensionSingleRel& Rel::_internal_extension_single() const {
return _internal_has_extension_single()
? *rel_type_.extension_single_
: reinterpret_cast< ::substrait::ExtensionSingleRel&>(::substrait::_ExtensionSingleRel_default_instance_);
}
inline const ::substrait::ExtensionSingleRel& Rel::extension_single() const {
// @@protoc_insertion_point(field_get:substrait.Rel.extension_single)
return _internal_extension_single();
}
inline ::substrait::ExtensionSingleRel* Rel::unsafe_arena_release_extension_single() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.Rel.extension_single)
if (_internal_has_extension_single()) {
clear_has_rel_type();
::substrait::ExtensionSingleRel* temp = rel_type_.extension_single_;
rel_type_.extension_single_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Rel::unsafe_arena_set_allocated_extension_single(::substrait::ExtensionSingleRel* extension_single) {
clear_rel_type();
if (extension_single) {
set_has_extension_single();
rel_type_.extension_single_ = extension_single;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.Rel.extension_single)
}
inline ::substrait::ExtensionSingleRel* Rel::_internal_mutable_extension_single() {
if (!_internal_has_extension_single()) {
clear_rel_type();
set_has_extension_single();
rel_type_.extension_single_ = CreateMaybeMessage< ::substrait::ExtensionSingleRel >(GetArenaForAllocation());
}
return rel_type_.extension_single_;
}
inline ::substrait::ExtensionSingleRel* Rel::mutable_extension_single() {
::substrait::ExtensionSingleRel* _msg = _internal_mutable_extension_single();
// @@protoc_insertion_point(field_mutable:substrait.Rel.extension_single)
return _msg;
}
// .substrait.ExtensionMultiRel extension_multi = 10 [json_name = "extensionMulti"];
inline bool Rel::_internal_has_extension_multi() const {
return rel_type_case() == kExtensionMulti;
}
inline bool Rel::has_extension_multi() const {
return _internal_has_extension_multi();
}
inline void Rel::set_has_extension_multi() {
_oneof_case_[0] = kExtensionMulti;
}
inline void Rel::clear_extension_multi() {
if (_internal_has_extension_multi()) {
if (GetArenaForAllocation() == nullptr) {
delete rel_type_.extension_multi_;
}
clear_has_rel_type();
}
}
inline ::substrait::ExtensionMultiRel* Rel::release_extension_multi() {
// @@protoc_insertion_point(field_release:substrait.Rel.extension_multi)
if (_internal_has_extension_multi()) {
clear_has_rel_type();
::substrait::ExtensionMultiRel* temp = rel_type_.extension_multi_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
rel_type_.extension_multi_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::ExtensionMultiRel& Rel::_internal_extension_multi() const {
return _internal_has_extension_multi()
? *rel_type_.extension_multi_
: reinterpret_cast< ::substrait::ExtensionMultiRel&>(::substrait::_ExtensionMultiRel_default_instance_);
}
inline const ::substrait::ExtensionMultiRel& Rel::extension_multi() const {
// @@protoc_insertion_point(field_get:substrait.Rel.extension_multi)
return _internal_extension_multi();
}
inline ::substrait::ExtensionMultiRel* Rel::unsafe_arena_release_extension_multi() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.Rel.extension_multi)
if (_internal_has_extension_multi()) {
clear_has_rel_type();
::substrait::ExtensionMultiRel* temp = rel_type_.extension_multi_;
rel_type_.extension_multi_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Rel::unsafe_arena_set_allocated_extension_multi(::substrait::ExtensionMultiRel* extension_multi) {
clear_rel_type();
if (extension_multi) {
set_has_extension_multi();
rel_type_.extension_multi_ = extension_multi;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.Rel.extension_multi)
}
inline ::substrait::ExtensionMultiRel* Rel::_internal_mutable_extension_multi() {
if (!_internal_has_extension_multi()) {
clear_rel_type();
set_has_extension_multi();
rel_type_.extension_multi_ = CreateMaybeMessage< ::substrait::ExtensionMultiRel >(GetArenaForAllocation());
}
return rel_type_.extension_multi_;
}
inline ::substrait::ExtensionMultiRel* Rel::mutable_extension_multi() {
::substrait::ExtensionMultiRel* _msg = _internal_mutable_extension_multi();
// @@protoc_insertion_point(field_mutable:substrait.Rel.extension_multi)
return _msg;
}
// .substrait.ExtensionLeafRel extension_leaf = 11 [json_name = "extensionLeaf"];
inline bool Rel::_internal_has_extension_leaf() const {
return rel_type_case() == kExtensionLeaf;
}
inline bool Rel::has_extension_leaf() const {
return _internal_has_extension_leaf();
}
inline void Rel::set_has_extension_leaf() {
_oneof_case_[0] = kExtensionLeaf;
}
inline void Rel::clear_extension_leaf() {
if (_internal_has_extension_leaf()) {
if (GetArenaForAllocation() == nullptr) {
delete rel_type_.extension_leaf_;
}
clear_has_rel_type();
}
}
inline ::substrait::ExtensionLeafRel* Rel::release_extension_leaf() {
// @@protoc_insertion_point(field_release:substrait.Rel.extension_leaf)
if (_internal_has_extension_leaf()) {
clear_has_rel_type();
::substrait::ExtensionLeafRel* temp = rel_type_.extension_leaf_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
rel_type_.extension_leaf_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::ExtensionLeafRel& Rel::_internal_extension_leaf() const {
return _internal_has_extension_leaf()
? *rel_type_.extension_leaf_
: reinterpret_cast< ::substrait::ExtensionLeafRel&>(::substrait::_ExtensionLeafRel_default_instance_);
}
inline const ::substrait::ExtensionLeafRel& Rel::extension_leaf() const {
// @@protoc_insertion_point(field_get:substrait.Rel.extension_leaf)
return _internal_extension_leaf();
}
inline ::substrait::ExtensionLeafRel* Rel::unsafe_arena_release_extension_leaf() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.Rel.extension_leaf)
if (_internal_has_extension_leaf()) {
clear_has_rel_type();
::substrait::ExtensionLeafRel* temp = rel_type_.extension_leaf_;
rel_type_.extension_leaf_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Rel::unsafe_arena_set_allocated_extension_leaf(::substrait::ExtensionLeafRel* extension_leaf) {
clear_rel_type();
if (extension_leaf) {
set_has_extension_leaf();
rel_type_.extension_leaf_ = extension_leaf;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.Rel.extension_leaf)
}
inline ::substrait::ExtensionLeafRel* Rel::_internal_mutable_extension_leaf() {
if (!_internal_has_extension_leaf()) {
clear_rel_type();
set_has_extension_leaf();
rel_type_.extension_leaf_ = CreateMaybeMessage< ::substrait::ExtensionLeafRel >(GetArenaForAllocation());
}
return rel_type_.extension_leaf_;
}
inline ::substrait::ExtensionLeafRel* Rel::mutable_extension_leaf() {
::substrait::ExtensionLeafRel* _msg = _internal_mutable_extension_leaf();
// @@protoc_insertion_point(field_mutable:substrait.Rel.extension_leaf)
return _msg;
}
// .substrait.CrossRel cross = 12 [json_name = "cross"];
inline bool Rel::_internal_has_cross() const {
return rel_type_case() == kCross;
}
inline bool Rel::has_cross() const {
return _internal_has_cross();
}
inline void Rel::set_has_cross() {
_oneof_case_[0] = kCross;
}
inline void Rel::clear_cross() {
if (_internal_has_cross()) {
if (GetArenaForAllocation() == nullptr) {
delete rel_type_.cross_;
}
clear_has_rel_type();
}
}
inline ::substrait::CrossRel* Rel::release_cross() {
// @@protoc_insertion_point(field_release:substrait.Rel.cross)
if (_internal_has_cross()) {
clear_has_rel_type();
::substrait::CrossRel* temp = rel_type_.cross_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
rel_type_.cross_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::substrait::CrossRel& Rel::_internal_cross() const {
return _internal_has_cross()
? *rel_type_.cross_
: reinterpret_cast< ::substrait::CrossRel&>(::substrait::_CrossRel_default_instance_);
}
inline const ::substrait::CrossRel& Rel::cross() const {
// @@protoc_insertion_point(field_get:substrait.Rel.cross)
return _internal_cross();
}
inline ::substrait::CrossRel* Rel::unsafe_arena_release_cross() {
// @@protoc_insertion_point(field_unsafe_arena_release:substrait.Rel.cross)
if (_internal_has_cross()) {
clear_has_rel_type();
::substrait::CrossRel* temp = rel_type_.cross_;
rel_type_.cross_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Rel::unsafe_arena_set_allocated_cross(::substrait::CrossRel* cross) {
clear_rel_type();
if (cross) {
set_has_cross();
rel_type_.cross_ = cross;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:substrait.Rel.cross)
}
inline ::substrait::CrossRel* Rel::_internal_mutable_cross() {
if (!_internal_has_cross()) {
clear_rel_type();
set_has_cross();
rel_type_.cross_ = CreateMaybeMessage< ::substrait::CrossRel >(GetArenaForAllocation());
}
return rel_type_.cross_;
}
inline ::substrait::CrossRel* Rel::mutable_cross() {
::substrait::CrossRel* _msg = _internal_mutable_cross();
// @@protoc_insertion_point(field_mutable:substrait.Rel.cross)
return _msg;
}
inline bool Rel::has_rel_type() const {
return rel_type_case() != REL_TYPE_NOT_SET;
}
inline void Rel::clear_has_rel_type() {
_oneof_case_[0] = REL_TYPE_NOT_SET;
}
inline Rel::RelTypeCase Rel::rel_type_case() const {
return Rel::RelTypeCase(_oneof_case_[0]);
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace substrait
PROTOBUF_NAMESPACE_OPEN
template <> struct is_proto_enum< ::substrait::ReadRel_LocalFiles_FileOrFiles_FileFormat> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::substrait::ReadRel_LocalFiles_FileOrFiles_FileFormat>() {
return ::substrait::ReadRel_LocalFiles_FileOrFiles_FileFormat_descriptor();
}
template <> struct is_proto_enum< ::substrait::JoinRel_JoinType> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::substrait::JoinRel_JoinType>() {
return ::substrait::JoinRel_JoinType_descriptor();
}
template <> struct is_proto_enum< ::substrait::SetRel_SetOp> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::substrait::SetRel_SetOp>() {
return ::substrait::SetRel_SetOp_descriptor();
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_substrait_2frelations_2eproto
| 38.042356 | 177 | 0.736568 |
eca80c56cbdb442036fcbe50c94e4d8a08c87bf2 | 122 | h | C | src/shared/huffman/TA.h | AvaN0x/MIM-bzip2-server | 22c7469aa861db3a0e142fdd30630adeb8f88835 | [
"MIT"
] | null | null | null | src/shared/huffman/TA.h | AvaN0x/MIM-bzip2-server | 22c7469aa861db3a0e142fdd30630adeb8f88835 | [
"MIT"
] | null | null | null | src/shared/huffman/TA.h | AvaN0x/MIM-bzip2-server | 22c7469aa861db3a0e142fdd30630adeb8f88835 | [
"MIT"
] | null | null | null | #ifndef TA_H
#define TA_H
#include <stdlib.h>
typedef unsigned int symbol_t;
typedef unsigned int frequence_t;
#endif
| 11.090909 | 33 | 0.770492 |
eca991511dbb9b057deb45bb6afe2bcd71f9f4eb | 6,107 | h | C | moca/backup/sample_cali.h | Edwinzero/Fusion | 6b71ee807bc33c6d79546ce2dbca47229d663c1d | [
"Apache-2.0"
] | 2 | 2019-02-21T04:04:14.000Z | 2019-05-16T06:50:34.000Z | moca/backup/sample_cali.h | icg-moca/MOCA | 61dbb536529bb1dfd6b1972ce3bdcdaf98655acd | [
"Apache-2.0"
] | null | null | null | moca/backup/sample_cali.h | icg-moca/MOCA | 61dbb536529bb1dfd6b1972ce3bdcdaf98655acd | [
"Apache-2.0"
] | null | null | null | //
// sample.h
// Moc
//
// Created by Wei Li on 6/4/15.
//
#include "camera_calibration.h"
#include "vicon_tracker.h"
#include "freenect.h"
#include "fusion.h"
static void VRPN_CALLBACK sample_callback(void* user_data, const vrpn_TRACKERCB tData) {
VRPN_Tracker *tracker = (VRPN_Tracker*)user_data;
printf("[Sensor %d : %s]: \n", tData.sensor, tracker->m_id.c_str());
printf("time : %ld %ld\n", tData.msg_time.tv_sec, tData.msg_time.tv_usec);
printf("t : %f %f %f\n", tData.pos[0], tData.pos[1], tData.pos[2]);
printf("q : %f %f %f %f\n\n", tData.quat[0], tData.quat[1], tData.quat[2], tData.quat[3]);
}
void sample_main_vicon_track( void ) {
const char *ip = "192.168.10.1";
VRPN_Tracker vrpn_pattern, vrpn_kinect;
vrpn_pattern.Create( "PATTERN", ip, &vrpn_pattern, sample_callback );
vrpn_kinect .Create( "KINECT0", ip, &vrpn_kinect , sample_callback );
while( 1 ) {
// update vrpn
vrpn_pattern.Loop();
vrpn_kinect.Loop();
}
}
void sample_main_kinect( void ) {
//=====================
// Kinect
//=====================
Freenect kinect;
kinect.InitDevices();
//=====================
// Loop
//=====================
while( 1 ) {
// update kinect
kinect.Loop();
cv::imshow( "ir", kinect.img_ir / 2000.0f );
cv::waitKey(1);
}
}
cv::Mat vrpn_data_to_mat(vrpn_TRACKERCB data) {
return TranslateRotate(cv::Point3d(data.pos[0], data.pos[1], data.pos[2]), QuatToMat(data.quat[0], data.quat[1], data.quat[2], data.quat[3]));
}
static void VRPN_CALLBACK sample_cali_callback(void* user_data, const vrpn_TRACKERCB tData) {
cv::Mat *mat = (cv::Mat*)user_data;
*mat = vrpn_data_to_mat(tData);
}
void sample_main_calibrate_vicon_kinect( void ) {
//=====================
// Vicon
//=====================
const char *ip = "192.168.10.1";
VRPN_Tracker vrpn_pattern, vrpn_kinect;
cv::Mat mat_pattern = cv::Mat_<double>(4, 4);
cv::Mat mat_kinect = cv::Mat_<double>(4, 4);
vrpn_pattern.Create("PATTERN", ip, &mat_pattern, sample_cali_callback);
vrpn_kinect.Create("KINECT0", ip, &mat_kinect, sample_cali_callback);
//=====================
// Kinect
//=====================
Freenect kinect;
kinect.InitDevices();
//=====================
// Calibrator
//=====================
Moc::Calibrator_Kinect_To_Vicon cali;
// 1 --- 2
// | |
// 0 --- 3
// size : inner corner
// square_size : meter
// init chessboard
// FIXME : unit vsk coordinates is mm
vector< cv::Point3f > markers(4);
cv::Point3f vec_1, vec_2, norm_pattern;
markers[0].x = -306.10238647460937;
markers[0].y = -51.083488464355469;
markers[0].z = -392.67129516601562;
markers[1].x = -304.46176147460938;
markers[1].y = 78.798492431640625;
markers[1].z = 305.35824584960937;
markers[2].x = 503.78604125976562;
markers[2].y = 21.791416168212891;
markers[2].z = 314.55368041992187;
markers[3].x = 502.2266845703125;
markers[3].y = -108.68138885498047;
markers[3].z = -383.49655151367187;
//subtract the height of the marker
vec_1 = markers[0] - markers[1];
vec_2 = markers[2] - markers[1];
norm_pattern = vec_1.cross(vec_2) / (float)(cv::norm(vec_1.cross(vec_2))) * 10.0f;
for (int i = 0; i < markers.size(); i++) {
markers[i] = ( markers[i] - norm_pattern ) * 0.001f;
}
cali.SetChessboard( cv::Size( 7, 6 ), 0.1016, markers );
// reset frames
cali.ResetFrames();
//=====================
// Loop
//=====================
while( 1 ) {
// update vrpn
vrpn_pattern.Loop();
vrpn_kinect.Loop();
// update kinect
kinect.Loop();
if ( cali.isCalibrated ) {
vector<cv::Point2f> proj;
Moc::ProjectPoints( cali.board_corners, cali.cam_intr, cali.cam_extr * mat_kinect.inv() * mat_pattern, proj );
for ( int i = 0; i < proj.size(); i++ ) {
cv::Point pt( proj[i].x, proj[i].y );
cv::Scalar color( 0, 0, 255 );
cv::circle( kinect.img_ir, pt, 3, color, 1, CV_AA, 0 );
}
}
cv::imshow( "ir", kinect.img_ir / 2000.0f );
int key = cv::waitKey(1);
// capture new frame
if ( key == '0' ) {
cali.CaptureFrame( kinect.img_ir, mat_pattern, mat_kinect );
}
// calibrate kinect and save config
if ( key == '1' ) {
cali.Calibrate();
string name = vrpn_kinect.m_id + "_cali.txt";
cali.SaveCali( name.c_str() );
}
}
}
void sample_main_calibrate_kinect_kinect( void ) {
//=====================
// Kinect
//=====================
Freenect kinect;
kinect.InitDevices();
//=====================
// Calibrator
//=====================
vector< Moc::Calibrator_Kinect > cali;
cali.resize( 2 );
for ( int i = 0; i < cali.size(); i++ ) {
// init chessboard
cali[ i ].SetChessboard( cv::Size( 8, 7 ), 0.1016 );
// reset frames
cali[ i ].ResetFrames();
}
//=====================
// Loop
//=====================
while( 1 ) {
// update kinect
kinect.Loop();
cv::imshow( "ir", kinect.img_ir / 2000.0f );
int key = cv::waitKey(1);
// capture new frame
if ( key == '0' ) {
for ( int i = 0; i < cali.size(); i++ ) {
cali[ i ].CaptureFrame( kinect.img_ir );
}
}
// calibrate kinect and save config
if ( key == '1' ) {
for ( int i = 0; i < cali.size(); i++ ) {
cali[ i ].Calibrate();
}
}
}
vector< cv::Mat > extr;
extr.resize( cali.size() );
extr[0] = cv::Mat::eye( 4, 4, CV_64F );
for ( int i = 1; i < extr.size(); i++ ) {
// improve by projection error
extr[ i ] = cali[ 0 ].cam_extr[ 0 ].Mat() * cali[ 1 ].cam_extr[ 0 ].Mat().inv();
}
}
void sample_main_calibrate_vicon_velodyne( void ) {
// velodyne
vector< cv::Point3f > src;
src.push_back( cv::Point3f(344.876770, 21.191553, -8.421365) );
src.push_back( cv::Point3f(329.321472, 21.196106, 112.414787) );
src.push_back( cv::Point3f(273.297333, -54.085236, 103.468338) );
src.push_back( cv::Point3f(283.640472, -49.967205, -16.086639) );
// vicon
vector< cv::Point3f > dst;
dst.push_back( cv::Point3f( 57.7072, 108.886, 180.456 ) );
dst.push_back( cv::Point3f( 176.59, 108.459, 192.929 ) );
dst.push_back( cv::Point3f( 170.349, 38.8436, 247.97 ) );
dst.push_back( cv::Point3f( 51.4353, 40.1155, 236.71 ) );
cv::Mat M;
Moc::PairPointsRigidRegistration( src, dst, M );
}
| 25.445833 | 143 | 0.5944 |
ecaac4acabbbe45a6e32b759daa323871c93a4b3 | 1,703 | h | C | components/perfmon/include/xtensa_perfmon_masks.h | BU-EC444/esp-idf | 5963de1caf284b14ddfed11e52730a55e3783a3d | [
"Apache-2.0"
] | 4 | 2022-03-15T22:43:28.000Z | 2022-03-28T01:25:08.000Z | components/perfmon/include/xtensa_perfmon_masks.h | BU-EC444/esp-idf | 5963de1caf284b14ddfed11e52730a55e3783a3d | [
"Apache-2.0"
] | null | null | null | components/perfmon/include/xtensa_perfmon_masks.h | BU-EC444/esp-idf | 5963de1caf284b14ddfed11e52730a55e3783a3d | [
"Apache-2.0"
] | 2 | 2022-02-04T21:36:58.000Z | 2022-02-09T12:22:48.000Z |
/*
* SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _xtensa_perfmon_masks_H_
#define _xtensa_perfmon_masks_H_
#include <inttypes.h>
#include "xtensa/xt_perf_consts.h"
#ifdef __cplusplus
extern "C"
{
#endif
/**
* @brief Description for select parameter
*
* Structure defines description for different select values for performance counters
*/
typedef struct xtensa_perfmon_select {
int select; /*!< Selected counter */
const char *description; /*!< Description for selected counter */
} xtensa_perfmon_select_t;
/**
* @brief Description for mask parameter
*
* Structure defines description for different select and mask values for performance counters
*/
typedef struct xtensa_perfmon_masks {
int select; /*!< Selected counter */
int mask; /*!< Selected mask for counter */
const char *description; /*!< Description for selected mask */
} xtensa_perfmon_masks_t;
// Maximum amount of performance counter events
#define MAX_PERFMON_EVENTS 119
/**
* @brief Select value description table
*
* Table contains description for different 'select' values for performance counter
*/
extern const xtensa_perfmon_select_t xtensa_perfmon_select_table[];
/**
* @brief Mask value description table
*
* Table contains description for different 'select' and 'mask' values for performance counter
*/
extern const xtensa_perfmon_masks_t xtensa_perfmon_masks_table[];
/**
* @brief All available counters
*
* Table contains all available counters
*/
extern const uint32_t xtensa_perfmon_select_mask_all[MAX_PERFMON_EVENTS * 2];
#ifdef __cplusplus
}
#endif
#endif // _xtensa_perfmon_masks_H_
| 25.41791 | 94 | 0.758074 |
ecab32cda056de60940a43c2a45279f47dc03fc2 | 25,921 | c | C | ext/calc_moon/rise_set.c | DouglasAllen/calc_moon | b15966825ff1bfbd1b3f4881355e697321c64681 | [
"MIT"
] | null | null | null | ext/calc_moon/rise_set.c | DouglasAllen/calc_moon | b15966825ff1bfbd1b3f4881355e697321c64681 | [
"MIT"
] | null | null | null | ext/calc_moon/rise_set.c | DouglasAllen/calc_moon | b15966825ff1bfbd1b3f4881355e697321c64681 | [
"MIT"
] | null | null | null | /*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 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.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Copyright (C) 2000 - 2005 Liam Girdwood
*/
#include <math.h>
#include <libnova/rise_set.h>
#include <libnova/utility.h>
#include <libnova/dynamical_time.h>
#include <libnova/sidereal_time.h>
#include <libnova/transform.h>
// helper function to check if object can be visible
int check_coords (struct ln_lnlat_posn * observer, double H1, double horizon, struct ln_equ_posn * object)
{
double h;
/* check if body is circumpolar */
if (fabs(H1) > 1.0)
{
/* check if maximal height < horizon */
// h = asin(cos(ln_deg_to_rad(observer->lat - object->dec)))
h = 90 + object->dec - observer->lat;
// normalize to <-90;+90>
if (h > 90)
h = 180 - h;
if (h < -90)
h = -180 - h;
if (h < horizon)
return -1;
// else it must be above horizon
return 1;
}
return 0;
}
/*! \fn int ln_get_object_rst (double JD, struct ln_lnlat_posn * observer, struct ln_equ_posn * object, struct ln_rst_time * rst);
* \param JD Julian day
* \param observer Observers position
* \param object Object position
* \param rst Pointer to store Rise, Set and Transit time in JD
* \return 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
*
* Calculate the time the rise, set and transit (crosses the local meridian at upper culmination)
* time of the object for the given Julian day.
*
* Note: this functions returns 1 if the object is circumpolar, that is it remains the whole
* day above the horizon. Returns -1 when it remains the whole day bellow the horizon.
*/
int ln_get_object_rst (double JD, struct ln_lnlat_posn *observer, struct ln_equ_posn *object, struct ln_rst_time *rst)
{
return ln_get_object_rst_horizon (JD, observer, object, LN_STAR_STANDART_HORIZON, rst); /* standard altitude of stars */
}
/*! \fn int ln_get_object_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_equ_posn * object, long double horizon, struct ln_rst_time * rst);
* \param JD Julian day
* \param observer Observers position
* \param object Object position
* \param horizon Horizon height
* \param rst Pointer to store Rise, Set and Transit time in JD
* \return 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
*
* Calculate the time the rise, set and transit (crosses the local meridian at upper culmination)
* time of the object for the given Julian day and horizon.
*
* Note: this functions returns 1 if the object is circumpolar, that is it remains the whole
* day above the horizon. Returns -1 when it remains whole day bellow the horizon.
*/
int ln_get_object_rst_horizon (double JD, struct ln_lnlat_posn * observer,
struct ln_equ_posn * object, long double horizon, struct ln_rst_time * rst)
{
int jd;
long double O, JD_UT, H0, H1;
double Hat, Har, Has, altr, alts;
double mt, mr, ms, mst, msr, mss;
double dmt, dmr, dms;
int ret;
/* convert local sidereal time into degrees
for 0h of UT on day JD */
jd = (int) JD;
JD_UT = jd + 0.5;
O = ln_get_apparent_sidereal_time (JD_UT);
O *= 15.0;
/* equ 15.1 */
H0 = (sin (ln_deg_to_rad (horizon)) -
sin (ln_deg_to_rad (observer->lat)) * sin (ln_deg_to_rad (object->dec)));
H1 = (cos (ln_deg_to_rad (observer->lat)) * cos (ln_deg_to_rad (object->dec)));
H1 = H0 / H1;
ret = check_coords (observer, H1, horizon, object);
if (ret)
return ret;
H0 = acos (H1);
H0 = ln_rad_to_deg (H0);
/* equ 15.2 */
mt = (object->ra - observer->lng - O) / 360.0;
mr = mt - H0 / 360.0;
ms = mt + H0 / 360.0;
/* put in correct range */
if (mt > 1.0)
mt--;
else if (mt < 0)
mt++;
if (mr > 1.0)
mr--;
else if (mr < 0)
mr++;
if (ms > 1.0)
ms--;
else if (ms < 0)
ms++;
/* find sidereal time at Greenwich, in degrees, for each m */
mst = O + 360.985647 * mt;
msr = O + 360.985647 * mr;
mss = O + 360.985647 * ms;
/* find local hour angle */
Hat = mst + observer->lng - object->ra;
Har = msr + observer->lng - object->ra;
Has = mss + observer->lng - object->ra;
/* find altitude for rise and set */
altr = sin (ln_deg_to_rad (observer->lat)) * sin (ln_deg_to_rad (object->dec)) +
cos (ln_deg_to_rad (observer->lat)) * cos (ln_deg_to_rad (object->dec)) *
cos (ln_deg_to_rad (Har));
alts = sin (ln_deg_to_rad (observer->lat)) * sin (ln_deg_to_rad (object->dec)) +
cos (ln_deg_to_rad (observer->lat)) * cos (ln_deg_to_rad (object->dec)) *
cos (ln_deg_to_rad (Has));
/* must be in degrees */
altr = ln_rad_to_deg (altr);
alts = ln_rad_to_deg (alts);
/* corrections for m */
ln_range_degrees (Hat);
if (Hat > 180.0)
Hat -= 360;
dmt = -(Hat / 360.0);
dmr = (altr - horizon) / (360 * cos (ln_deg_to_rad (object->dec)) * cos (ln_deg_to_rad (observer->lat)) * sin (ln_deg_to_rad (Har)));
dms = (alts - horizon) / (360 * cos (ln_deg_to_rad (object->dec)) * cos (ln_deg_to_rad (observer->lat)) * sin (ln_deg_to_rad (Has)));
/* add corrections and change to JD */
mt += dmt;
mr += dmr;
ms += dms;
rst->rise = JD_UT + mr;
rst->transit = JD_UT + mt;
rst->set = JD_UT + ms;
/* not circumpolar */
return 0;
}
/*! \fn int ln_get_object_next_rst (double JD, struct ln_lnlat_posn * observer, struct ln_equ_posn * object, struct ln_rst_time * rst);
* \param JD Julian day
* \param observer Observers position
* \param object Object position
* \param rst Pointer to store Rise, Set and Transit time in JD
* \return 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
*
* Calculate the time of next rise, set and transit (crosses the local meridian at upper culmination)
* time of the object for the given Julian day and horizon.
*
* This function guarantee, that rise, set and transit will be in <JD, JD+1> range.
*
* Note: this functions returns 1 if the object is circumpolar, that is it remains the whole
* day above the horizon. Returns -1 when it remains whole day bellow the horizon.
*/
int ln_get_object_next_rst (double JD, struct ln_lnlat_posn *observer, struct ln_equ_posn *object, struct ln_rst_time *rst)
{
return ln_get_object_next_rst_horizon (JD, observer, object, LN_STAR_STANDART_HORIZON, rst);
}
//helper functions for ln_get_object_next_rst_horizon
void set_next_rst (struct ln_rst_time * rst, double diff, struct ln_rst_time * out)
{
out->rise = rst->rise + diff;
out->transit = rst->transit + diff;
out->set = rst->set + diff;
}
double find_next (double JD, double jd1, double jd2, double jd3)
{
if (JD < jd1)
return jd1;
if (JD < jd2)
return jd2;
return jd3;
}
/*! \fn int ln_get_object_next_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_equ_posn * object, double horizon, struct ln_rst_time * rst);
* \param JD Julian day
* \param observer Observers position
* \param object Object position
* \param horizon Horizon height
* \param rst Pointer to store Rise, Set and Transit time in JD
* \return 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
*
* Calculate the time of next rise, set and transit (crosses the local meridian at upper culmination)
* time of the object for the given Julian day and horizon.
*
* This function guarantee, that rise, set and transit will be in <JD, JD+1> range.
*
* Note: this functions returns 1 if the object is circumpolar, that is it remains the whole
* day above the horizon. Returns -1 when it remains whole day bellow the horizon.
*/
int ln_get_object_next_rst_horizon (double JD, struct ln_lnlat_posn *observer, struct ln_equ_posn *object,
double horizon, struct ln_rst_time *rst)
{
int ret;
struct ln_rst_time rst_1, rst_2;
ret = ln_get_object_rst_horizon (JD, observer, object, horizon, rst);
if (ret)
// circumpolar
return ret;
if (rst->rise > (JD + 0.5) || rst->transit > (JD + 0.5) || rst->set > (JD + 0.5))
ln_get_object_rst_horizon (JD - 1, observer, object, horizon, &rst_1);
else
set_next_rst (rst, -1, &rst_1);
if (rst->rise < JD || rst->transit < JD || rst->set < JD)
ln_get_object_rst_horizon (JD + 1, observer, object, horizon, &rst_2);
else
set_next_rst (rst, +1, &rst_2);
rst->rise = find_next (JD, rst_1.rise, rst->rise, rst_2.rise);
rst->transit = find_next (JD, rst_1.transit, rst->transit, rst_2.transit);
rst->set = find_next (JD, rst_1.set, rst->set, rst_2.set);
return 0;
}
/*! \fn int ln_get_body_rst_horizon (double JD, struct ln_lnlat_posn *observer, void (*get_equ_body_coords) (double, struct ln_equ_posn *), double horizon, struct ln_rst_time *rst);
* \param JD Julian day
* \param observer Observers position
* \param get_equ_body_coords Pointer to get_equ_body_coords() function
* \param horizon Horizon, see LN_XXX_HORIZON constants
* \param rst Pointer to store Rise, Set and Transit time in JD
* \return 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
*
* Calculate the time the rise, set and transit (crosses the local meridian at
* upper culmination) time of the body for the given Julian day and given
* horizon.
*
*
* Note 1: this functions returns 1 if the object is circumpolar, that is it remains the whole
* day above the horizon. Returns -1 when it remains whole day bellow the horizon.
*
* Note 2: this function will not work for body, which ra changes more
* then 180 deg in one day (get_equ_body_coords changes so much). But
* you should't use that function for any body which moves to fast..use
* some special function for such things.
*/
int ln_get_body_rst_horizon (double JD, struct ln_lnlat_posn *observer,
void (*get_equ_body_coords) (double,struct ln_equ_posn *), double horizon,
struct ln_rst_time *rst)
{
int jd;
double T, O, JD_UT, H0, H1;
double Hat, Har, Has, altr, alts;
double mt, mr, ms, mst, msr, mss, nt, nr, ns;
struct ln_equ_posn sol1, sol2, sol3, post, posr, poss;
double dmt, dmr, dms;
int ret;
/* dynamical time diff */
T = ln_get_dynamical_time_diff (JD);
/* convert local sidereal time into degrees
for 0h of UT on day JD */
jd = (int) JD;
JD_UT = jd + 0.5;
O = ln_get_apparent_sidereal_time (JD_UT);
O *= 15.0;
/* get body coords for JD_UT -1, JD_UT and JD_UT + 1 */
get_equ_body_coords (JD_UT - 1.0, &sol1);
get_equ_body_coords (JD_UT, &sol2);
get_equ_body_coords (JD_UT + 1.0, &sol3);
/* equ 15.1 */
H0 =
(sin (ln_deg_to_rad (horizon)) -
sin (ln_deg_to_rad (observer->lat)) * sin (ln_deg_to_rad (sol2.dec)));
H1 = (cos (ln_deg_to_rad (observer->lat)) * cos (ln_deg_to_rad (sol2.dec)));
H1 = H0 / H1;
ret = check_coords (observer, H1, horizon, &sol2);
if (ret)
return ret;
H0 = acos (H1);
H0 = ln_rad_to_deg (H0);
/* equ 15.2 */
mt = (sol2.ra - observer->lng - O) / 360.0;
mr = mt - H0 / 360.0;
ms = mt + H0 / 360.0;
/* put in correct range */
if (mt > 1.0)
mt--;
else if (mt < 0)
mt++;
if (mr > 1.0)
mr--;
else if (mr < 0)
mr++;
if (ms > 1.0)
ms--;
else if (ms < 0)
ms++;
/* find sidereal time at Greenwich, in degrees, for each m */
mst = O + 360.985647 * mt;
msr = O + 360.985647 * mr;
mss = O + 360.985647 * ms;
/* correct ra values for interpolation - put them to the same side of circle */
if ((sol1.ra - sol2.ra) > 180.0)
sol2.ra += 360;
if ((sol2.ra - sol3.ra) > 180.0)
sol3.ra += 360;
if ((sol3.ra - sol2.ra) > 180.0)
sol3.ra -= 360;
if ((sol2.ra - sol1.ra) > 180.0)
sol3.ra -= 360;
nt = mt + T / 86400.0;
nr = mr + T / 86400.0;
ns = ms + T / 86400.0;
/* interpolate ra and dec for each m, except for transit dec (dec2) */
posr.ra = ln_interpolate3 (nr, sol1.ra, sol2.ra, sol3.ra);
posr.dec = ln_interpolate3 (nr, sol1.dec, sol2.dec, sol3.dec);
post.ra = ln_interpolate3 (nt, sol1.ra, sol2.ra, sol3.ra);
poss.ra = ln_interpolate3 (ns, sol1.ra, sol2.ra, sol3.ra);
poss.dec = ln_interpolate3 (ns, sol1.dec, sol2.dec, sol3.dec);
/* find local hour angle */
Hat = mst + observer->lng - post.ra;
Har = msr + observer->lng - posr.ra;
Has = mss + observer->lng - poss.ra;
/* find altitude for rise and set */
altr = sin (ln_deg_to_rad (observer->lat)) * sin (ln_deg_to_rad (posr.dec)) +
cos (ln_deg_to_rad (observer->lat)) * cos (ln_deg_to_rad (posr.dec)) *
cos (ln_deg_to_rad (Har));
alts = sin (ln_deg_to_rad (observer->lat)) * sin (ln_deg_to_rad (poss.dec)) +
cos (ln_deg_to_rad (observer->lat)) * cos (ln_deg_to_rad (poss.dec)) *
cos (ln_deg_to_rad (Has));
/* must be in degrees */
altr = ln_rad_to_deg (altr);
alts = ln_rad_to_deg (alts);
/* corrections for m */
ln_range_degrees (Hat);
if (Hat > 180.0)
Hat -= 360;
dmt = -(Hat / 360.0);
dmr = (altr - horizon) / (360 * cos (ln_deg_to_rad (posr.dec)) * cos (ln_deg_to_rad (observer->lat)) * sin (ln_deg_to_rad (Har)));
dms = (alts - horizon) / (360 * cos (ln_deg_to_rad (poss.dec)) * cos (ln_deg_to_rad (observer->lat)) * sin (ln_deg_to_rad (Has)));
/* add corrections and change to JD */
mt += dmt;
mr += dmr;
ms += dms;
rst->rise = JD_UT + mr;
rst->transit = JD_UT + mt;
rst->set = JD_UT + ms;
/* not circumpolar */
return 0;
}
/*! \fn int ln_get_body_next_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_equ_posn * object, double horizon, struct ln_rst_time * rst);
* \param JD Julian day
* \param observer Observers position
* \param get_equ_body_coords Pointer to get_equ_body_coords() function
* \param horizon Horizon, see LN_XXX_HORIZON constants
* \param rst Pointer to store Rise, Set and Transit time in JD
* \return 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
*
* Calculate the time of next rise, set and transit (crosses the local meridian at
* upper culmination) time of the body for the given Julian day and given
* horizon.
*
* This function guarantee, that rise, set and transit will be in <JD, JD+1> range.
*
* Note 1: this functions returns 1 if the body is circumpolar, that is it remains
* the whole day either above or below the horizon.
*
* Note 2: This function will not work for body, which ra changes more
* then 180 deg in one day (get_equ_body_coords changes so much). But
* you should't use that function for any body which moves to fast..use
* some special function for such things.
*/
int ln_get_body_next_rst_horizon (double JD, struct ln_lnlat_posn *observer,
void (*get_equ_body_coords) (double,struct ln_equ_posn *), double horizon,
struct ln_rst_time *rst)
{
return ln_get_body_next_rst_horizon_future (JD, observer, get_equ_body_coords, horizon, 1, rst);
}
/*! \fn int ln_get_body_next_rst_horizon_future (double JD, struct ln_lnlat_posn * observer, void (*get_equ_body_coords) (double,struct ln_equ_posn *), double horizon, int day_limit, struct ln_rst_time * rst);
* \param JD Julian day
* \param observer Observers position
* \param get_equ_body_coords Pointer to get_equ_body_coords() function
* \param horizon Horizon, see LN_XXX_HORIZON constants
* \param day_limit Maximal number of days that will be searched for next rise and set
* \param rst Pointer to store Rise, Set and Transit time in JD
* \return 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
*
* Calculate the time of next rise, set and transit (crosses the local meridian at
* upper culmination) time of the body for the given Julian day and given
* horizon.
*
* This function guarantee, that rise, set and transit will be in <JD, JD + day_limit> range.
*
* Note 1: this functions returns 1 if the body is circumpolar, that is it remains
* the whole day either above or below the horizon.
*
* Note 2: This function will not work for body, which ra changes more
* than 180 deg in one day (get_equ_body_coords changes so much). But
* you should't use that function for any body which moves to fast..use
* some special function for such things.
*/
int ln_get_body_next_rst_horizon_future (double JD, struct ln_lnlat_posn * observer, void (*get_equ_body_coords) (double,struct ln_equ_posn *), double horizon, int day_limit, struct ln_rst_time * rst)
{
int ret;
struct ln_rst_time rst_1, rst_2;
ret = ln_get_body_rst_horizon (JD, observer, get_equ_body_coords, horizon, rst);
if (ret && day_limit == 1)
// circumpolar
return ret;
if (!ret && (rst->rise > (JD + 0.5) || rst->transit > (JD + 0.5) || rst->set > (JD + 0.5)))
{
ret = ln_get_body_rst_horizon (JD - 1, observer, get_equ_body_coords, horizon, &rst_1);
if (ret)
set_next_rst (rst, -1, &rst_1);
}
else
{
set_next_rst (rst, -1, &rst_1);
}
if (ret || (rst->rise < JD || rst->transit < JD || rst->set < JD))
{
// find next day when it will rise, up to day_limit days
int day = 1;
while (day <= day_limit)
{
ret = ln_get_body_rst_horizon (JD + day, observer, get_equ_body_coords, horizon, &rst_2);
if (!ret)
{
day = day_limit + 2;
break;
}
day++;
}
if (day == day_limit + 1)
// it's then really circumpolar in searched period
return ret;
}
else
{
set_next_rst (rst, +1, &rst_2);
}
rst->rise = find_next (JD, rst_1.rise, rst->rise, rst_2.rise);
rst->transit = find_next (JD, rst_1.transit, rst->transit, rst_2.transit);
rst->set = find_next (JD, rst_1.set, rst->set, rst_2.set);
return 0;
}
/*! \fn int ln_get_body_rst_horizon (double JD, struct ln_lnlat_posn *observer, void (*get_equ_body_coords) (double, struct ln_equ_posn *), double horizon, struct ln_rst_time *rst);
* \param JD Julian day
* \param observer Observers position
* \param get_motion_body_coords Pointer to ln_get_ell_body_equ_coords. ln_get_para_body_equ_coords or ln_get_hyp_body_equ_coords function
* \param horizon Horizon, see LN_XXX_HORIZON constants
* \param rst Pointer to store Rise, Set and Transit time in JD
* \return 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
*
* Calculate the time the rise, set and transit (crosses the local meridian at
* upper culmination) time of the body for the given Julian day and given
* horizon.
*
* Note 1: this functions returns 1 if the body is circumpolar, that is it remains
* the whole day either above or below the horizon.
*/
int ln_get_motion_body_rst_horizon (double JD, struct ln_lnlat_posn * observer, get_motion_body_coords_t get_motion_body_coords,
void * orbit, double horizon, struct ln_rst_time * rst)
{
int jd;
double T, O, JD_UT, H0, H1;
double Hat, Har, Has, altr, alts;
double mt, mr, ms, mst, msr, mss, nt, nr, ns;
struct ln_equ_posn sol1, sol2, sol3, post, posr, poss;
double dmt, dmr, dms;
int ret;
/* dynamical time diff */
T = ln_get_dynamical_time_diff (JD);
/* convert local sidereal time into degrees
for 0h of UT on day JD*/
jd = (int)JD;
JD_UT = jd + 0.5;
O = ln_get_apparent_sidereal_time (JD_UT);
O *= 15.0;
/* get body coords for JD_UT -1, JD_UT and JD_UT + 1 */
get_motion_body_coords (JD_UT - 1.0, orbit, &sol1);
get_motion_body_coords (JD_UT, orbit, &sol2);
get_motion_body_coords (JD_UT + 1.0, orbit, &sol3);
/* equ 15.1 */
H0 = (sin(ln_deg_to_rad (horizon)) - sin(ln_deg_to_rad(observer->lat)) * sin(ln_deg_to_rad(sol2.dec)));
H1 = (cos(ln_deg_to_rad(observer->lat)) * cos(ln_deg_to_rad(sol2.dec)));
H1 = H0 / H1;
ret = check_coords (observer, H1, horizon, &sol2);
if (ret)
return ret;
H0 = acos (H1);
H0 = ln_rad_to_deg (H0);
/* equ 15.2 */
mt = (sol2.ra - observer->lng - O) / 360.0;
mr = mt - H0 / 360.0;
ms = mt + H0 / 360.0;
/* put in correct range */
if (mt > 1.0 )
mt--;
else if (mt < 0.0)
mt++;
if (mr > 1.0 )
mr--;
else if (mr < 0.0)
mr++;
if (ms > 1.0 )
ms--;
else if (ms < 0.0)
ms++;
/* find sidereal time at Greenwich, in degrees, for each m*/
mst = O + 360.985647 * mt;
msr = O + 360.985647 * mr;
mss = O + 360.985647 * ms;
/* correct ra values for interpolation - put them to the same side of circle */
if ((sol1.ra - sol2.ra) > 180.0)
sol2.ra += 360;
if ((sol2.ra - sol3.ra) > 180.0)
sol3.ra += 360;
if ((sol3.ra - sol2.ra) > 180.0)
sol3.ra -= 360;
if ((sol2.ra - sol1.ra) > 180.0)
sol3.ra -= 360;
nt = mt + T / 86400.0;
nr = mr + T / 86400.0;
ns = ms + T / 86400.0;
/* interpolate ra and dec for each m, except for transit dec (dec2) */
posr.ra = ln_interpolate3 (nr, sol1.ra, sol2.ra, sol3.ra);
posr.dec = ln_interpolate3 (nr, sol1.dec, sol2.dec, sol3.dec);
post.ra = ln_interpolate3 (nt, sol1.ra, sol2.ra, sol3.ra);
poss.ra = ln_interpolate3 (ns, sol1.ra, sol2.ra, sol3.ra);
poss.dec = ln_interpolate3 (ns, sol1.dec, sol2.dec, sol3.dec);
/* find local hour angle */
Hat = mst + observer->lng - post.ra;
Har = msr + observer->lng - posr.ra;
Has = mss + observer->lng - poss.ra;
/* find altitude for rise and set */
altr = sin(ln_deg_to_rad(observer->lat)) * sin(ln_deg_to_rad(posr.dec)) +
cos(ln_deg_to_rad(observer->lat)) * cos(ln_deg_to_rad(posr.dec)) * cos(ln_deg_to_rad (Har));
alts = sin(ln_deg_to_rad(observer->lat)) * sin(ln_deg_to_rad(poss.dec)) +
cos(ln_deg_to_rad(observer->lat)) * cos(ln_deg_to_rad(poss.dec)) * cos(ln_deg_to_rad (Has));
/* corrections for m */
dmt = - (Hat / 360.0);
dmr = (altr - horizon) / (360 * cos(ln_deg_to_rad(posr.dec)) * cos(ln_deg_to_rad(observer->lat)) * sin(ln_deg_to_rad(Har)));
dms = (alts - horizon) / (360 * cos(ln_deg_to_rad(poss.dec)) * cos(ln_deg_to_rad(observer->lat)) * sin(ln_deg_to_rad(Has)));
/* add corrections and change to JD */
mt += dmt;
mr += dms;
ms += dms;
rst->rise = JD_UT + mr;
rst->transit = JD_UT + mt;
rst->set = JD_UT + ms;
/* not circumpolar */
return 0;
}
/*! \fn int ln_get_body_next_rst_horizon (double JD, struct ln_lnlat_posn *observer, void (*get_equ_body_coords) (double, struct ln_equ_posn *), double horizon, struct ln_rst_time *rst);
* \param JD Julian day
* \param observer Observers position
* \param get_motion_body_coords Pointer to ln_get_ell_body_equ_coords. ln_get_para_body_equ_coords or ln_get_hyp_body_equ_coords function
* \param horizon Horizon, see LN_XXX_HORIZON constants
* \param rst Pointer to store Rise, Set and Transit time in JD
* \return 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
*
* Calculate the time of next rise, set and transit (crosses the local meridian at
* upper culmination) time of the body for the given Julian day and given
* horizon.
*
* This function guarantee, that rise, set and transit will be in <JD, JD+1> range.
*
* Note 1: this functions returns 1 if the body is circumpolar, that is it remains
* the whole day either above or below the horizon.
*/
int ln_get_motion_body_next_rst_horizon (double JD, struct ln_lnlat_posn * observer, get_motion_body_coords_t get_motion_body_coords,
void * orbit, double horizon, struct ln_rst_time * rst)
{
return ln_get_motion_body_next_rst_horizon_future (JD, observer, get_motion_body_coords, orbit, horizon, 1, rst);
}
/*! \fn int ln_get_motion_body_next_rst_horizon_future (double JD, struct ln_lnlat_posn *observer, void (*get_equ_body_coords) (double, struct ln_equ_posn *), double horizon, int day_limit, struct ln_rst_time *rst);
* \param JD Julian day
* \param observer Observers position
* \param get_motion_body_coords Pointer to ln_get_ell_body_equ_coords. ln_get_para_body_equ_coords or ln_get_hyp_body_equ_coords function
* \param horizon Horizon, see LN_XXX_HORIZON constants
* \param day_limit Maximal number of days that will be searched for next rise and set
* \param rst Pointer to store Rise, Set and Transit time in JD
* \return 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
*
* Calculate the time of next rise, set and transit (crosses the local meridian at
* upper culmination) time of the body for the given Julian day and given
* horizon.
*
* This function guarantee, that rise, set and transit will be in <JD, JD + day_limit> range.
*
* Note 1: this functions returns 1 if the body is circumpolar, that is it remains
* the whole day either above or below the horizon.
*/
int ln_get_motion_body_next_rst_horizon_future (double JD, struct ln_lnlat_posn * observer, get_motion_body_coords_t get_motion_body_coords,
void * orbit, double horizon, int day_limit, struct ln_rst_time * rst)
{
int ret;
struct ln_rst_time rst_1, rst_2;
ret = ln_get_motion_body_rst_horizon (JD, observer, get_motion_body_coords, orbit, horizon, rst);
if (ret && day_limit == 1)
// circumpolar
return ret;
if (!ret && (rst->rise > (JD + 0.5) || rst->transit > (JD + 0.5) || rst->set > (JD + 0.5)))
{
ret = ln_get_motion_body_rst_horizon (JD - 1, observer, get_motion_body_coords, orbit, horizon, &rst_1);
if (ret)
set_next_rst (rst, -1, &rst_1);
}
else
{
set_next_rst (rst, -1, &rst_1);
}
if (ret || (rst->rise < JD || rst->transit < JD || rst->set < JD))
{
// find next day when it will rise, up to day_limit days
int day = 1;
while (day <= day_limit)
{
ret = ln_get_motion_body_rst_horizon (JD + day, observer, get_motion_body_coords, orbit, horizon, &rst_2);
if (!ret)
{
day = day_limit + 2;
break;
}
day++;
}
if (day == day_limit + 1)
// it's then really circumpolar in searched period
return ret;
}
else
{
set_next_rst (rst, +1, &rst_2);
}
rst->rise = find_next (JD, rst_1.rise, rst->rise, rst_2.rise);
rst->transit = find_next (JD, rst_1.transit, rst->transit, rst_2.transit);
rst->set = find_next (JD, rst_1.set, rst->set, rst_2.set);
return 0;
}
| 35.802486 | 216 | 0.696269 |
ecab72882192903ef400da94cc0d95f8b7a48d31 | 4,085 | c | C | drivers/gpu/host1x/fence.c | jainsakshi2395/linux | 7ccb860232bb83fb60cd6bcf5aaf0c008d903acb | [
"Linux-OpenIB"
] | 44 | 2022-03-16T08:32:31.000Z | 2022-03-31T16:02:35.000Z | drivers/gpu/host1x/fence.c | jainsakshi2395/linux | 7ccb860232bb83fb60cd6bcf5aaf0c008d903acb | [
"Linux-OpenIB"
] | 1 | 2022-03-29T02:30:28.000Z | 2022-03-30T03:40:46.000Z | drivers/gpu/host1x/fence.c | jainsakshi2395/linux | 7ccb860232bb83fb60cd6bcf5aaf0c008d903acb | [
"Linux-OpenIB"
] | 18 | 2022-03-19T04:41:04.000Z | 2022-03-31T03:32:12.000Z | // SPDX-License-Identifier: GPL-2.0-only
/*
* Syncpoint dma_fence implementation
*
* Copyright (c) 2020, NVIDIA Corporation.
*/
#include <linux/dma-fence.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/sync_file.h>
#include "fence.h"
#include "intr.h"
#include "syncpt.h"
static DEFINE_SPINLOCK(lock);
struct host1x_syncpt_fence {
struct dma_fence base;
atomic_t signaling;
struct host1x_syncpt *sp;
u32 threshold;
struct host1x_waitlist *waiter;
void *waiter_ref;
struct delayed_work timeout_work;
};
static const char *host1x_syncpt_fence_get_driver_name(struct dma_fence *f)
{
return "host1x";
}
static const char *host1x_syncpt_fence_get_timeline_name(struct dma_fence *f)
{
return "syncpoint";
}
static struct host1x_syncpt_fence *to_host1x_fence(struct dma_fence *f)
{
return container_of(f, struct host1x_syncpt_fence, base);
}
static bool host1x_syncpt_fence_enable_signaling(struct dma_fence *f)
{
struct host1x_syncpt_fence *sf = to_host1x_fence(f);
int err;
if (host1x_syncpt_is_expired(sf->sp, sf->threshold))
return false;
dma_fence_get(f);
/*
* The dma_fence framework requires the fence driver to keep a
* reference to any fences for which 'enable_signaling' has been
* called (and that have not been signalled).
*
* We provide a userspace API to create arbitrary syncpoint fences,
* so we cannot normally guarantee that all fences get signalled.
* As such, setup a timeout, so that long-lasting fences will get
* reaped eventually.
*/
schedule_delayed_work(&sf->timeout_work, msecs_to_jiffies(30000));
err = host1x_intr_add_action(sf->sp->host, sf->sp, sf->threshold,
HOST1X_INTR_ACTION_SIGNAL_FENCE, f,
sf->waiter, &sf->waiter_ref);
if (err) {
cancel_delayed_work_sync(&sf->timeout_work);
dma_fence_put(f);
return false;
}
/* intr framework takes ownership of waiter */
sf->waiter = NULL;
/*
* The fence may get signalled at any time after the above call,
* so we need to initialize all state used by signalling
* before it.
*/
return true;
}
static void host1x_syncpt_fence_release(struct dma_fence *f)
{
struct host1x_syncpt_fence *sf = to_host1x_fence(f);
if (sf->waiter)
kfree(sf->waiter);
dma_fence_free(f);
}
const struct dma_fence_ops host1x_syncpt_fence_ops = {
.get_driver_name = host1x_syncpt_fence_get_driver_name,
.get_timeline_name = host1x_syncpt_fence_get_timeline_name,
.enable_signaling = host1x_syncpt_fence_enable_signaling,
.release = host1x_syncpt_fence_release,
};
void host1x_fence_signal(struct host1x_syncpt_fence *f)
{
if (atomic_xchg(&f->signaling, 1))
return;
/*
* Cancel pending timeout work - if it races, it will
* not get 'f->signaling' and return.
*/
cancel_delayed_work_sync(&f->timeout_work);
host1x_intr_put_ref(f->sp->host, f->sp->id, f->waiter_ref, false);
dma_fence_signal(&f->base);
dma_fence_put(&f->base);
}
static void do_fence_timeout(struct work_struct *work)
{
struct delayed_work *dwork = (struct delayed_work *)work;
struct host1x_syncpt_fence *f =
container_of(dwork, struct host1x_syncpt_fence, timeout_work);
if (atomic_xchg(&f->signaling, 1))
return;
/*
* Cancel pending timeout work - if it races, it will
* not get 'f->signaling' and return.
*/
host1x_intr_put_ref(f->sp->host, f->sp->id, f->waiter_ref, true);
dma_fence_set_error(&f->base, -ETIMEDOUT);
dma_fence_signal(&f->base);
dma_fence_put(&f->base);
}
struct dma_fence *host1x_fence_create(struct host1x_syncpt *sp, u32 threshold)
{
struct host1x_syncpt_fence *fence;
fence = kzalloc(sizeof(*fence), GFP_KERNEL);
if (!fence)
return ERR_PTR(-ENOMEM);
fence->waiter = kzalloc(sizeof(*fence->waiter), GFP_KERNEL);
if (!fence->waiter) {
kfree(fence);
return ERR_PTR(-ENOMEM);
}
fence->sp = sp;
fence->threshold = threshold;
dma_fence_init(&fence->base, &host1x_syncpt_fence_ops, &lock,
dma_fence_context_alloc(1), 0);
INIT_DELAYED_WORK(&fence->timeout_work, do_fence_timeout);
return &fence->base;
}
EXPORT_SYMBOL(host1x_fence_create);
| 23.888889 | 78 | 0.738556 |
ecab993787ccf339964787ef9d3fa8bb883b3abf | 247,157 | h | C | src/xenia/gpu/shaders/bytecode/d3d12_5_1/texture_load_dxt1_rgba8_cs.h | EmulationChannel/xenia-1 | d58dcf71123e216e8d933751a37d45da1d16932b | [
"BSD-3-Clause"
] | 262 | 2019-08-17T08:27:30.000Z | 2022-03-29T02:36:04.000Z | src/xenia/gpu/shaders/bytecode/d3d12_5_1/texture_load_dxt1_rgba8_cs.h | EmulationChannel/xenia-1 | d58dcf71123e216e8d933751a37d45da1d16932b | [
"BSD-3-Clause"
] | 33 | 2019-08-18T09:39:40.000Z | 2022-03-31T20:47:39.000Z | src/xenia/gpu/shaders/bytecode/d3d12_5_1/texture_load_dxt1_rgba8_cs.h | EmulationChannel/xenia-1 | d58dcf71123e216e8d933751a37d45da1d16932b | [
"BSD-3-Clause"
] | 141 | 2019-09-06T01:37:01.000Z | 2022-03-23T23:39:05.000Z | #if 0
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//
// Buffer Definitions:
//
// cbuffer XeTextureLoadConstants
// {
//
// uint xe_texture_load_is_tiled_3d_endian;// Offset: 0 Size: 4
// uint xe_texture_load_guest_offset; // Offset: 4 Size: 4
// uint xe_texture_load_guest_pitch_aligned;// Offset: 8 Size: 4
// uint xe_texture_load_guest_z_stride_block_rows_aligned;// Offset: 12 Size: 4
// uint3 xe_texture_load_size_blocks; // Offset: 16 Size: 12
// uint xe_texture_load_host_offset; // Offset: 28 Size: 4
// uint xe_texture_load_host_pitch; // Offset: 32 Size: 4
// uint xe_texture_load_height_texels;// Offset: 36 Size: 4
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim ID HLSL Bind Count
// ------------------------------ ---------- ------- ----------- ------- -------------- ------
// xe_texture_load_source texture uint4 buf T0 t0 1
// xe_texture_load_dest UAV uint4 buf U0 u0 1
// XeTextureLoadConstants cbuffer NA NA CB0 cb0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// no Input
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// no Output
cs_5_1
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[0:0][3], immediateIndexed, space=0
dcl_resource_buffer (uint,uint,uint,uint) T0[0:0], space=0
dcl_uav_typed_buffer (uint,uint,uint,uint) U0[0:0], space=0
dcl_input vThreadID.xyz
dcl_temps 16
dcl_thread_group 8, 32, 1
ishl r0.x, vThreadID.x, l(2)
mov r0.yz, vThreadID.yyzy
uge r1.xyz, r0.xyzx, CB0[0][1].xyzx
or r0.z, r1.y, r1.x
or r0.z, r1.z, r0.z
if_nz r0.z
ret
endif
ishl r0.yz, r0.xxyx, l(0, 2, 2, 0)
ishl r0.y, r0.y, l(2)
imad r0.z, vThreadID.z, CB0[0][2].y, r0.z
imad r0.y, r0.z, CB0[0][2].x, r0.y
iadd r0.y, r0.y, CB0[0][1].w
ushr r0.z, CB0[0][2].x, l(4)
and r0.w, CB0[0][0].x, l(1)
if_nz r0.w
and r1.x, CB0[0][0].x, l(2)
if_nz r1.x
ishr r1.xyz, vThreadID.yzyy, l(4, 2, 3, 0)
ushr r2.xy, CB0[0][0].wzww, l(4, 5, 0, 0)
imad r1.x, r1.y, r2.x, r1.x
ibfe r2.xz, l(27, 0, 29, 0), l(3, 0, 1, 0), vThreadID.xxxx
imad r1.x, r1.x, r2.y, r2.x
ishl r1.w, vThreadID.y, l(11)
and r1.w, r1.w, l(0x00003000)
bfi r1.w, l(3), l(9), r0.x, r1.w
ishr r1.w, r1.w, l(6)
iadd r1.y, r1.y, r1.z
bfi r1.z, l(1), l(1), r1.y, l(0)
iadd r1.z, r1.z, r2.z
bfi r1.z, l(2), l(1), r1.z, l(0)
bfi r1.y, l(1), l(0), r1.y, r1.z
bfi r1.xz, l(19, 0, 19, 0), l(11, 0, 14, 0), r1.xxxx, l(0, 0, 0, 0)
imad r1.xz, r1.wwww, l(2, 0, 16, 0), r1.xxzx
bfi r1.xz, l(2, 0, 2, 0), l(9, 0, 12, 0), vThreadID.zzzz, r1.xxzx
bfi r1.w, l(1), l(4), vThreadID.y, l(0)
ubfe r2.x, l(3), l(6), r1.x
and r2.y, r1.y, l(6)
bfi r1.y, l(1), l(8), r1.y, l(0)
imad r1.y, r2.x, l(32), r1.y
imad r1.y, r2.y, l(4), r1.y
bfi r1.xz, l(6, 0, 6, 0), l(0, 0, 3, 0), r1.wwww, r1.xxzx
bfi r1.y, l(9), l(3), r1.y, r1.z
bfi r1.x, l(6), l(0), r1.x, r1.y
else
ibfe r1.yz, l(0, 27, 29, 0), l(0, 3, 1, 0), vThreadID.xxxx
ishr r2.xy, vThreadID.yyyy, l(5, 2, 0, 0)
ushr r1.w, CB0[0][0].z, l(5)
imad r1.y, r2.x, r1.w, r1.y
ishl r2.xz, vThreadID.yyyy, l(6, 0, 7, 0)
and r2.xz, r2.xxzx, l(896, 0, 2048, 0)
bfi r1.w, l(3), l(4), r0.x, r2.x
bfi r1.w, l(22), l(10), r1.y, r1.w
bfi r2.w, l(1), l(4), vThreadID.y, l(0)
iadd r1.w, r1.w, r2.w
ishl r3.xy, r2.xxxx, l(3, 2, 0, 0)
bfi r3.xy, l(3, 3, 0, 0), l(7, 6, 0, 0), r0.xxxx, r3.xyxx
bfi r3.xy, l(22, 22, 0, 0), l(13, 12, 0, 0), r1.yyyy, r3.xyxx
imad r2.xw, r2.wwww, l(8, 0, 0, 4), r3.xxxy
bfi r1.y, l(12), l(0), r2.z, r2.x
and r2.x, r2.w, l(1792)
iadd r1.y, r1.y, r2.x
and r2.x, r2.y, l(2)
iadd r1.z, r1.z, r2.x
bfi r1.z, l(2), l(6), r1.z, l(0)
iadd r1.y, r1.y, r1.z
bfi r1.x, l(6), l(0), r1.w, r1.y
endif
else
ishl r0.x, r0.x, l(3)
imad r1.y, vThreadID.z, CB0[0][0].w, vThreadID.y
imad r1.x, r1.y, CB0[0][0].z, r0.x
endif
iadd r0.x, r1.x, CB0[0][0].y
ushr r0.xy, r0.xyxx, l(4, 4, 0, 0)
ushr r1.x, CB0[0][0].x, l(2)
ld r2.xyzw, r0.xxxx, T0[0].xyzw
ieq r1.xyz, r1.xxxx, l(1, 2, 3, 0)
or r1.xy, r1.yzyy, r1.xyxx
if_nz r1.x
ishl r3.xyzw, r2.xyzw, l(8, 8, 8, 8)
and r3.xyzw, r3.xyzw, l(0xff00ff00, 0xff00ff00, 0xff00ff00, 0xff00ff00)
ushr r4.xyzw, r2.xyzw, l(8, 8, 8, 8)
and r4.xyzw, r4.xyzw, l(0x00ff00ff, 0x00ff00ff, 0x00ff00ff, 0x00ff00ff)
iadd r2.xyzw, r3.xyzw, r4.xyzw
endif
if_nz r1.y
ushr r3.xyzw, r2.xyzw, l(16, 16, 16, 16)
bfi r2.xyzw, l(16, 16, 16, 16), l(16, 16, 16, 16), r2.xyzw, r3.xyzw
mov r3.xy, r2.ywyy
else
mov r3.xy, r2.ywyy
endif
movc r0.w, r0.w, l(2), l(1)
iadd r0.x, r0.w, r0.x
ld r4.xyzw, r0.xxxx, T0[0].xyzw
if_nz r1.x
ishl r5.xyzw, r4.xyzw, l(8, 8, 8, 8)
and r5.xyzw, r5.xyzw, l(0xff00ff00, 0xff00ff00, 0xff00ff00, 0xff00ff00)
ushr r6.xyzw, r4.xyzw, l(8, 8, 8, 8)
and r6.xyzw, r6.xyzw, l(0x00ff00ff, 0x00ff00ff, 0x00ff00ff, 0x00ff00ff)
iadd r4.xyzw, r5.xyzw, r6.xyzw
endif
if_nz r1.y
ushr r1.xyzw, r4.xyzw, l(16, 16, 16, 16)
bfi r4.xyzw, l(16, 16, 16, 16), l(16, 16, 16, 16), r4.xyzw, r1.xyzw
mov r3.zw, r4.yyyw
else
mov r3.zw, r4.yyyw
endif
ishl r1.xyz, r2.xxxx, l(3, 7, 12, 0)
ushr r5.xyz, r2.xxxx, l(13, 4, 9, 0)
mov r1.w, r5.x
and r0.xw, r1.xxxw, l(248, 0, 0, 248)
mov r5.xw, r1.zzzy
and r1.xy, r5.wzww, l(0x0003f000, 0x0003f000, 0, 0)
iadd r0.xw, r0.xxxw, r1.xxxy
and r1.xy, r5.xyxx, l(0x0f800000, 0x0f800000, 0, 0)
iadd r0.xw, r0.xxxw, r1.xxxy
ushr r1.xy, r0.xwxx, l(5, 5, 0, 0)
and r1.xy, r1.xyxx, l(0x00700007, 0x00700007, 0, 0)
iadd r0.xw, r0.xxxw, r1.xxxy
ushr r1.xy, r0.xwxx, l(6, 6, 0, 0)
and r1.xy, r1.xyxx, l(3072, 3072, 0, 0)
iadd r0.xw, r0.xxxw, r1.xxxy
ishl r1.xyz, r2.zzzz, l(3, 7, 12, 0)
ushr r2.xyz, r2.zzzz, l(13, 4, 9, 0)
mov r1.w, r2.x
and r1.xw, r1.xxxw, l(248, 0, 0, 248)
mov r2.xw, r1.zzzy
and r2.zw, r2.wwwz, l(0, 0, 0x0003f000, 0x0003f000)
iadd r1.xy, r1.xwxx, r2.zwzz
and r1.zw, r2.xxxy, l(0, 0, 0x0f800000, 0x0f800000)
iadd r1.xy, r1.zwzz, r1.xyxx
ushr r1.zw, r1.xxxy, l(0, 0, 5, 5)
and r1.zw, r1.zzzw, l(0, 0, 0x00700007, 0x00700007)
iadd r1.xy, r1.zwzz, r1.xyxx
ushr r1.zw, r1.xxxy, l(0, 0, 6, 6)
and r1.zw, r1.zzzw, l(0, 0, 3072, 3072)
iadd r1.xy, r1.wzww, r1.yxyy
ishl r2.xyz, r4.xxxx, l(3, 7, 12, 0)
ushr r5.xyz, r4.xxxx, l(13, 4, 9, 0)
mov r2.w, r5.x
and r2.xw, r2.xxxw, l(248, 0, 0, 248)
mov r5.xw, r2.zzzy
and r4.xy, r5.wzww, l(0x0003f000, 0x0003f000, 0, 0)
iadd r2.xy, r2.xwxx, r4.xyxx
and r2.zw, r5.xxxy, l(0, 0, 0x0f800000, 0x0f800000)
iadd r2.xy, r2.zwzz, r2.xyxx
ushr r2.zw, r2.xxxy, l(0, 0, 5, 5)
and r2.zw, r2.zzzw, l(0, 0, 0x00700007, 0x00700007)
iadd r2.xy, r2.zwzz, r2.xyxx
ushr r2.zw, r2.xxxy, l(0, 0, 6, 6)
and r2.zw, r2.zzzw, l(0, 0, 3072, 3072)
iadd r2.xy, r2.zwzz, r2.xyxx
ishl r5.xyz, r4.zzzz, l(3, 7, 12, 0)
ushr r4.xyz, r4.zzzz, l(13, 4, 9, 0)
mov r5.w, r4.x
and r2.zw, r5.xxxw, l(0, 0, 248, 248)
mov r4.xw, r5.zzzy
and r4.zw, r4.wwwz, l(0, 0, 0x0003f000, 0x0003f000)
iadd r2.zw, r2.zzzw, r4.zzzw
and r4.xy, r4.xyxx, l(0x0f800000, 0x0f800000, 0, 0)
iadd r2.zw, r2.zzzw, r4.xxxy
ushr r4.xy, r2.zwzz, l(5, 5, 0, 0)
and r4.xy, r4.xyxx, l(0x00700007, 0x00700007, 0, 0)
iadd r2.zw, r2.zzzw, r4.xxxy
ushr r4.xy, r2.zwzz, l(6, 6, 0, 0)
and r4.xy, r4.xyxx, l(3072, 3072, 0, 0)
iadd r2.zw, r2.zzzw, r4.xxxy
mov r4.x, r0.w
mov r4.y, r1.x
mov r4.zw, r2.yyyw
mov r1.x, r0.x
mov r1.zw, r2.xxxz
uge r5.xyzw, r4.xyzw, r1.xyzw
not r6.xyzw, r3.xyzw
ishl r7.xyzw, r6.xyzw, l(1, 1, 1, 1)
and r7.xyzw, r7.xyzw, l(0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa)
xor r6.xyzw, r6.xyzw, r7.xyzw
ishl r7.xyzw, r3.xyzw, l(1, 1, 1, 1)
and r7.xyzw, r7.xyzw, l(0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa)
ushr r3.xyzw, r3.xyzw, l(1, 1, 1, 1)
and r3.xyzw, r3.xyzw, l(0x55555555, 0x55555555, 0x55555555, 0x55555555)
iadd r3.xyzw, r3.xyzw, r7.xyzw
ushr r7.xyzw, r3.xyzw, l(1, 1, 1, 1)
and r7.xyzw, r7.xyzw, l(0x55555555, 0x55555555, 0x55555555, 0x55555555)
xor r3.xyzw, r3.xyzw, r7.xyzw
movc r3.xyzw, r5.xyzw, r6.xyzw, r3.xyzw
ushr r6.xyzw, r3.xxxx, l(2, 4, 6, 1)
mov r7.x, r3.x
mov r7.yzw, r6.xxyz
and r8.xyzw, r7.xyzw, l(1, 1, 1, 1)
ubfe r9.xyzw, l(1, 1, 1, 1), l(1, 3, 5, 7), r7.xxxx
imul null, r9.xyzw, r0.wwww, r9.xyzw
imad r8.xyzw, r8.xyzw, r1.xxxx, r9.xyzw
and r9.x, r6.w, r7.x
and r10.x, r9.x, l(0x55555555)
ushr r9.yzw, r10.xxxx, l(0, 2, 4, 6)
and r11.xyzw, r9.xyzw, l(1, 1, 1, 1)
or r6.x, r6.w, r7.x
ubfe r11.xyzw, l(9, 9, 9, 9), r11.xyzw, r8.xyzw
ishl r11.xyzw, r11.xyzw, l(16, 16, 16, 16)
mov r10.yzw, r9.yyzw
bfi r9.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r10.xyzw, l(10, 10, 10, 10)
ubfe r9.xyzw, l(9, 9, 9, 9), r9.xyzw, r8.xyzw
ishl r9.xyzw, r9.xyzw, l(8, 8, 8, 8)
iadd r9.xyzw, r9.xyzw, r11.xyzw
bfi r10.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r10.xyzw, l(20, 20, 20, 20)
ushr r8.xyzw, r8.xyzw, r10.xyzw
iadd r8.xyzw, r8.xyzw, r9.xyzw
ushr r6.yzw, r6.xxxx, l(0, 2, 4, 6)
and r6.xyzw, r6.xyzw, l(1, 1, 1, 1)
imad r6.xyzw, r6.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r8.xyzw
not r8.xyzw, r3.wxyz
ushr r9.yzw, r8.yyyy, l(0, 2, 4, 6)
mov r9.x, r8.y
and r9.xyzw, r9.xyzw, l(3, 3, 3, 3)
and r10.xyzw, r7.xyzw, l(3, 3, 3, 3)
imul null, r10.xyzw, r0.wwww, r10.xyzw
imad r9.xyzw, r9.xyzw, r1.xxxx, r10.xyzw
and r10.xyzw, r9.xyzw, l(1023, 1023, 1023, 1023)
udiv r10.xyzw, null, r10.xyzw, l(3, 3, 3, 3)
ishl r10.xyzw, r10.xyzw, l(16, 16, 16, 16)
ubfe r11.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r9.xyzw
udiv r11.xyzw, null, r11.xyzw, l(3, 3, 3, 3)
bfi r10.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r11.xyzw, r10.xyzw
ushr r9.xyzw, r9.xyzw, l(20, 20, 20, 20)
udiv r9.xyzw, null, r9.xyzw, l(3, 3, 3, 3)
or r9.xyzw, r9.xyzw, r10.xyzw
or r9.xyzw, r9.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r6.xyzw, r5.xxxx, r6.xyzw, r9.xyzw
store_uav_typed U0[0].xyzw, r0.yyyy, r6.xyzw
iadd r4.xzw, r0.yyyy, l(1, 0, 2, 3)
ushr r6.xyzw, r3.yyyy, l(2, 4, 6, 1)
mov r9.x, r3.y
mov r9.yzw, r6.xxyz
and r10.xyzw, r9.xyzw, l(1, 1, 1, 1)
ubfe r11.xyzw, l(1, 1, 1, 1), l(1, 3, 5, 7), r3.yyyy
imul null, r11.xyzw, r4.yyyy, r11.xyzw
imad r10.xyzw, r10.xyzw, r1.yyyy, r11.xyzw
and r11.x, r3.y, r6.w
and r12.x, r11.x, l(0x55555555)
ushr r11.yzw, r12.xxxx, l(0, 2, 4, 6)
and r13.xyzw, r11.xyzw, l(1, 1, 1, 1)
or r6.x, r3.y, r6.w
ubfe r13.xyzw, l(9, 9, 9, 9), r13.xyzw, r10.xyzw
ishl r13.xyzw, r13.xyzw, l(16, 16, 16, 16)
mov r12.yzw, r11.yyzw
bfi r11.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r12.xyzw, l(10, 10, 10, 10)
ubfe r11.xyzw, l(9, 9, 9, 9), r11.xyzw, r10.xyzw
ishl r11.xyzw, r11.xyzw, l(8, 8, 8, 8)
iadd r11.xyzw, r11.xyzw, r13.xyzw
bfi r12.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r12.xyzw, l(20, 20, 20, 20)
ushr r10.xyzw, r10.xyzw, r12.xyzw
iadd r10.xyzw, r10.xyzw, r11.xyzw
ushr r6.yzw, r6.xxxx, l(0, 2, 4, 6)
and r6.xyzw, r6.xyzw, l(1, 1, 1, 1)
imad r6.xyzw, r6.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r10.xyzw
ushr r10.yzw, r8.zzzz, l(0, 2, 4, 6)
mov r10.x, r8.z
and r10.xyzw, r10.xyzw, l(3, 3, 3, 3)
and r9.xyzw, r9.xyzw, l(3, 3, 3, 3)
imul null, r9.xyzw, r4.yyyy, r9.xyzw
imad r9.xyzw, r10.xyzw, r1.yyyy, r9.xyzw
and r10.xyzw, r9.xyzw, l(1023, 1023, 1023, 1023)
udiv r10.xyzw, null, r10.xyzw, l(3, 3, 3, 3)
ishl r10.xyzw, r10.xyzw, l(16, 16, 16, 16)
ubfe r11.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r9.xyzw
udiv r11.xyzw, null, r11.xyzw, l(3, 3, 3, 3)
bfi r10.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r11.xyzw, r10.xyzw
ushr r9.xyzw, r9.xyzw, l(20, 20, 20, 20)
udiv r9.xyzw, null, r9.xyzw, l(3, 3, 3, 3)
or r9.xyzw, r9.xyzw, r10.xyzw
or r9.xyzw, r9.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r6.xyzw, r5.yyyy, r6.xyzw, r9.xyzw
store_uav_typed U0[0].xyzw, r4.xxxx, r6.xyzw
ushr r6.xyzw, r3.zzzz, l(2, 4, 6, 1)
mov r9.x, r3.z
mov r9.yzw, r6.xxyz
and r10.xyzw, r9.xyzw, l(1, 1, 1, 1)
ubfe r11.xyzw, l(1, 1, 1, 1), l(1, 3, 5, 7), r3.zzzz
imul null, r11.xyzw, r2.yyyy, r11.xyzw
imad r10.xyzw, r10.xyzw, r2.xxxx, r11.xyzw
and r11.x, r3.z, r6.w
and r12.x, r11.x, l(0x55555555)
ushr r11.yzw, r12.xxxx, l(0, 2, 4, 6)
and r13.xyzw, r11.xyzw, l(1, 1, 1, 1)
or r6.x, r3.z, r6.w
ubfe r13.xyzw, l(9, 9, 9, 9), r13.xyzw, r10.xyzw
ishl r13.xyzw, r13.xyzw, l(16, 16, 16, 16)
mov r12.yzw, r11.yyzw
bfi r11.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r12.xyzw, l(10, 10, 10, 10)
ubfe r11.xyzw, l(9, 9, 9, 9), r11.xyzw, r10.xyzw
ishl r11.xyzw, r11.xyzw, l(8, 8, 8, 8)
iadd r11.xyzw, r11.xyzw, r13.xyzw
bfi r12.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r12.xyzw, l(20, 20, 20, 20)
ushr r10.xyzw, r10.xyzw, r12.xyzw
iadd r10.xyzw, r10.xyzw, r11.xyzw
ushr r6.yzw, r6.xxxx, l(0, 2, 4, 6)
and r6.xyzw, r6.xyzw, l(1, 1, 1, 1)
imad r6.xyzw, r6.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r10.xyzw
ushr r10.yzw, r8.wwww, l(0, 2, 4, 6)
mov r10.x, r8.w
and r10.xyzw, r10.xyzw, l(3, 3, 3, 3)
and r9.xyzw, r9.xyzw, l(3, 3, 3, 3)
imul null, r9.xyzw, r2.yyyy, r9.xyzw
imad r9.xyzw, r10.xyzw, r2.xxxx, r9.xyzw
and r10.xyzw, r9.xyzw, l(1023, 1023, 1023, 1023)
udiv r10.xyzw, null, r10.xyzw, l(3, 3, 3, 3)
ishl r10.xyzw, r10.xyzw, l(16, 16, 16, 16)
ubfe r11.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r9.xyzw
udiv r11.xyzw, null, r11.xyzw, l(3, 3, 3, 3)
bfi r10.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r11.xyzw, r10.xyzw
ushr r9.xyzw, r9.xyzw, l(20, 20, 20, 20)
udiv r9.xyzw, null, r9.xyzw, l(3, 3, 3, 3)
or r9.xyzw, r9.xyzw, r10.xyzw
or r9.xyzw, r9.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r6.xyzw, r5.zzzz, r6.xyzw, r9.xyzw
store_uav_typed U0[0].xyzw, r4.zzzz, r6.xyzw
ushr r6.xyzw, r3.wwww, l(2, 4, 6, 1)
mov r9.x, r3.w
mov r9.yzw, r6.xxyz
and r10.xyzw, r9.xyzw, l(1, 1, 1, 1)
ubfe r11.xyzw, l(1, 1, 1, 1), l(1, 3, 5, 7), r3.wwww
imul null, r11.xyzw, r2.wwww, r11.xyzw
imad r10.xyzw, r10.xyzw, r2.zzzz, r11.xyzw
and r11.x, r3.w, r6.w
and r12.x, r11.x, l(0x55555555)
ushr r11.yzw, r12.xxxx, l(0, 2, 4, 6)
and r13.xyzw, r11.xyzw, l(1, 1, 1, 1)
or r6.x, r3.w, r6.w
ubfe r13.xyzw, l(9, 9, 9, 9), r13.xyzw, r10.xyzw
ishl r13.xyzw, r13.xyzw, l(16, 16, 16, 16)
mov r12.yzw, r11.yyzw
bfi r11.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r12.xyzw, l(10, 10, 10, 10)
ubfe r11.xyzw, l(9, 9, 9, 9), r11.xyzw, r10.xyzw
ishl r11.xyzw, r11.xyzw, l(8, 8, 8, 8)
iadd r11.xyzw, r11.xyzw, r13.xyzw
bfi r12.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r12.xyzw, l(20, 20, 20, 20)
ushr r10.xyzw, r10.xyzw, r12.xyzw
iadd r10.xyzw, r10.xyzw, r11.xyzw
ushr r6.yzw, r6.xxxx, l(0, 2, 4, 6)
and r6.xyzw, r6.xyzw, l(1, 1, 1, 1)
imad r6.xyzw, r6.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r10.xyzw
ushr r8.yzw, r8.xxxx, l(0, 2, 4, 6)
and r8.xyzw, r8.xyzw, l(3, 3, 3, 3)
and r9.xyzw, r9.xyzw, l(3, 3, 3, 3)
imul null, r9.xyzw, r2.wwww, r9.xyzw
imad r8.xyzw, r8.xyzw, r2.zzzz, r9.xyzw
and r9.xyzw, r8.xyzw, l(1023, 1023, 1023, 1023)
udiv r9.xyzw, null, r9.xyzw, l(3, 3, 3, 3)
ishl r9.xyzw, r9.xyzw, l(16, 16, 16, 16)
ubfe r10.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r8.xyzw
udiv r10.xyzw, null, r10.xyzw, l(3, 3, 3, 3)
bfi r9.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r10.xyzw, r9.xyzw
ushr r8.xyzw, r8.xyzw, l(20, 20, 20, 20)
udiv r8.xyzw, null, r8.xyzw, l(3, 3, 3, 3)
or r8.xyzw, r8.xyzw, r9.xyzw
or r8.xyzw, r8.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r6.xyzw, r5.wwww, r6.xyzw, r8.xyzw
store_uav_typed U0[0].xyzw, r4.wwww, r6.xyzw
imad r0.x, vThreadID.y, l(4), l(1)
ilt r0.x, r0.x, CB0[0][2].y
if_nz r0.x
iadd r0.y, r0.z, r0.y
ushr r6.xyzw, r3.xyzw, l(8, 8, 8, 8)
ushr r8.xyzw, r6.xxxx, l(2, 4, 6, 1)
mov r9.x, r6.x
mov r9.yzw, r8.xxyz
and r10.xyzw, r9.xyzw, l(1, 1, 1, 1)
ubfe r11.xyzw, l(1, 1, 1, 1), l(9, 11, 13, 15), r7.xxxx
imul null, r11.xyzw, r0.wwww, r11.xyzw
imad r10.xyzw, r10.xyzw, r1.xxxx, r11.xyzw
and r11.x, r8.w, r9.x
and r12.x, r11.x, l(0x00555555)
ushr r11.yzw, r12.xxxx, l(0, 2, 4, 6)
and r13.xyzw, r11.xyzw, l(1, 1, 1, 1)
or r8.x, r8.w, r9.x
ubfe r13.xyzw, l(9, 9, 9, 9), r13.xyzw, r10.xyzw
ishl r13.xyzw, r13.xyzw, l(16, 16, 16, 16)
mov r12.yzw, r11.yyzw
bfi r11.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r12.xyzw, l(10, 10, 10, 10)
ubfe r11.xyzw, l(9, 9, 9, 9), r11.xyzw, r10.xyzw
ishl r11.xyzw, r11.xyzw, l(8, 8, 8, 8)
iadd r11.xyzw, r11.xyzw, r13.xyzw
bfi r12.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r12.xyzw, l(20, 20, 20, 20)
ushr r10.xyzw, r10.xyzw, r12.xyzw
iadd r10.xyzw, r10.xyzw, r11.xyzw
ushr r8.yzw, r8.xxxx, l(0, 2, 4, 6)
and r8.xyzw, r8.xyzw, l(1, 1, 1, 1)
imad r8.xyzw, r8.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r10.xyzw
not r10.xyzw, r6.wxyz
ushr r11.yzw, r10.yyyy, l(0, 2, 4, 6)
mov r11.x, r10.y
and r11.xyzw, r11.xyzw, l(3, 3, 3, 3)
and r12.xyzw, r9.xyzw, l(3, 3, 3, 3)
imul null, r12.xyzw, r0.wwww, r12.xyzw
imad r11.xyzw, r11.xyzw, r1.xxxx, r12.xyzw
and r12.xyzw, r11.xyzw, l(1023, 1023, 1023, 1023)
udiv r12.xyzw, null, r12.xyzw, l(3, 3, 3, 3)
ishl r12.xyzw, r12.xyzw, l(16, 16, 16, 16)
ubfe r13.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r11.xyzw
udiv r13.xyzw, null, r13.xyzw, l(3, 3, 3, 3)
bfi r12.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r13.xyzw, r12.xyzw
ushr r11.xyzw, r11.xyzw, l(20, 20, 20, 20)
udiv r11.xyzw, null, r11.xyzw, l(3, 3, 3, 3)
or r11.xyzw, r11.xyzw, r12.xyzw
or r11.xyzw, r11.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r8.xyzw, r5.xxxx, r8.xyzw, r11.xyzw
store_uav_typed U0[0].xyzw, r0.yyyy, r8.xyzw
iadd r4.xzw, r0.yyyy, l(1, 0, 2, 3)
ushr r8.xyzw, r6.yyyy, l(2, 4, 6, 1)
mov r11.x, r6.y
mov r11.yzw, r8.xxyz
and r12.xyzw, r11.xyzw, l(1, 1, 1, 1)
ubfe r13.xyzw, l(1, 1, 1, 1), l(9, 11, 13, 15), r3.yyyy
imul null, r13.xyzw, r4.yyyy, r13.xyzw
imad r12.xyzw, r12.xyzw, r1.yyyy, r13.xyzw
and r13.x, r6.y, r8.w
and r14.x, r13.x, l(0x00555555)
ushr r13.yzw, r14.xxxx, l(0, 2, 4, 6)
and r15.xyzw, r13.xyzw, l(1, 1, 1, 1)
or r8.x, r6.y, r8.w
ubfe r15.xyzw, l(9, 9, 9, 9), r15.xyzw, r12.xyzw
ishl r15.xyzw, r15.xyzw, l(16, 16, 16, 16)
mov r14.yzw, r13.yyzw
bfi r13.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r14.xyzw, l(10, 10, 10, 10)
ubfe r13.xyzw, l(9, 9, 9, 9), r13.xyzw, r12.xyzw
ishl r13.xyzw, r13.xyzw, l(8, 8, 8, 8)
iadd r13.xyzw, r13.xyzw, r15.xyzw
bfi r14.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r14.xyzw, l(20, 20, 20, 20)
ushr r12.xyzw, r12.xyzw, r14.xyzw
iadd r12.xyzw, r12.xyzw, r13.xyzw
ushr r8.yzw, r8.xxxx, l(0, 2, 4, 6)
and r8.xyzw, r8.xyzw, l(1, 1, 1, 1)
imad r8.xyzw, r8.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r12.xyzw
ushr r12.yzw, r10.zzzz, l(0, 2, 4, 6)
mov r12.x, r10.z
and r12.xyzw, r12.xyzw, l(3, 3, 3, 3)
and r11.xyzw, r11.xyzw, l(3, 3, 3, 3)
imul null, r11.xyzw, r4.yyyy, r11.xyzw
imad r11.xyzw, r12.xyzw, r1.yyyy, r11.xyzw
and r12.xyzw, r11.xyzw, l(1023, 1023, 1023, 1023)
udiv r12.xyzw, null, r12.xyzw, l(3, 3, 3, 3)
ishl r12.xyzw, r12.xyzw, l(16, 16, 16, 16)
ubfe r13.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r11.xyzw
udiv r13.xyzw, null, r13.xyzw, l(3, 3, 3, 3)
bfi r12.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r13.xyzw, r12.xyzw
ushr r11.xyzw, r11.xyzw, l(20, 20, 20, 20)
udiv r11.xyzw, null, r11.xyzw, l(3, 3, 3, 3)
or r11.xyzw, r11.xyzw, r12.xyzw
or r11.xyzw, r11.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r8.xyzw, r5.yyyy, r8.xyzw, r11.xyzw
store_uav_typed U0[0].xyzw, r4.xxxx, r8.xyzw
ushr r8.xyzw, r6.zzzz, l(2, 4, 6, 1)
mov r11.x, r6.z
mov r11.yzw, r8.xxyz
and r12.xyzw, r11.xyzw, l(1, 1, 1, 1)
ubfe r13.xyzw, l(1, 1, 1, 1), l(9, 11, 13, 15), r3.zzzz
imul null, r13.xyzw, r2.yyyy, r13.xyzw
imad r12.xyzw, r12.xyzw, r2.xxxx, r13.xyzw
and r13.x, r6.z, r8.w
and r14.x, r13.x, l(0x00555555)
ushr r13.yzw, r14.xxxx, l(0, 2, 4, 6)
and r15.xyzw, r13.xyzw, l(1, 1, 1, 1)
or r8.x, r6.z, r8.w
ubfe r15.xyzw, l(9, 9, 9, 9), r15.xyzw, r12.xyzw
ishl r15.xyzw, r15.xyzw, l(16, 16, 16, 16)
mov r14.yzw, r13.yyzw
bfi r13.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r14.xyzw, l(10, 10, 10, 10)
ubfe r13.xyzw, l(9, 9, 9, 9), r13.xyzw, r12.xyzw
ishl r13.xyzw, r13.xyzw, l(8, 8, 8, 8)
iadd r13.xyzw, r13.xyzw, r15.xyzw
bfi r14.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r14.xyzw, l(20, 20, 20, 20)
ushr r12.xyzw, r12.xyzw, r14.xyzw
iadd r12.xyzw, r12.xyzw, r13.xyzw
ushr r8.yzw, r8.xxxx, l(0, 2, 4, 6)
and r8.xyzw, r8.xyzw, l(1, 1, 1, 1)
imad r8.xyzw, r8.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r12.xyzw
ushr r12.yzw, r10.wwww, l(0, 2, 4, 6)
mov r12.x, r10.w
and r12.xyzw, r12.xyzw, l(3, 3, 3, 3)
and r11.xyzw, r11.xyzw, l(3, 3, 3, 3)
imul null, r11.xyzw, r2.yyyy, r11.xyzw
imad r11.xyzw, r12.xyzw, r2.xxxx, r11.xyzw
and r12.xyzw, r11.xyzw, l(1023, 1023, 1023, 1023)
udiv r12.xyzw, null, r12.xyzw, l(3, 3, 3, 3)
ishl r12.xyzw, r12.xyzw, l(16, 16, 16, 16)
ubfe r13.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r11.xyzw
udiv r13.xyzw, null, r13.xyzw, l(3, 3, 3, 3)
bfi r12.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r13.xyzw, r12.xyzw
ushr r11.xyzw, r11.xyzw, l(20, 20, 20, 20)
udiv r11.xyzw, null, r11.xyzw, l(3, 3, 3, 3)
or r11.xyzw, r11.xyzw, r12.xyzw
or r11.xyzw, r11.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r8.xyzw, r5.zzzz, r8.xyzw, r11.xyzw
store_uav_typed U0[0].xyzw, r4.zzzz, r8.xyzw
ushr r8.xyzw, r6.wwww, l(2, 4, 6, 1)
mov r11.x, r6.w
mov r11.yzw, r8.xxyz
and r12.xyzw, r11.xyzw, l(1, 1, 1, 1)
ubfe r13.xyzw, l(1, 1, 1, 1), l(9, 11, 13, 15), r3.wwww
imul null, r13.xyzw, r2.wwww, r13.xyzw
imad r12.xyzw, r12.xyzw, r2.zzzz, r13.xyzw
and r13.x, r6.w, r8.w
and r14.x, r13.x, l(0x00555555)
ushr r13.yzw, r14.xxxx, l(0, 2, 4, 6)
and r15.xyzw, r13.xyzw, l(1, 1, 1, 1)
or r8.x, r6.w, r8.w
ubfe r15.xyzw, l(9, 9, 9, 9), r15.xyzw, r12.xyzw
ishl r15.xyzw, r15.xyzw, l(16, 16, 16, 16)
mov r14.yzw, r13.yyzw
bfi r13.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r14.xyzw, l(10, 10, 10, 10)
ubfe r13.xyzw, l(9, 9, 9, 9), r13.xyzw, r12.xyzw
ishl r13.xyzw, r13.xyzw, l(8, 8, 8, 8)
iadd r13.xyzw, r13.xyzw, r15.xyzw
bfi r14.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r14.xyzw, l(20, 20, 20, 20)
ushr r12.xyzw, r12.xyzw, r14.xyzw
iadd r12.xyzw, r12.xyzw, r13.xyzw
ushr r8.yzw, r8.xxxx, l(0, 2, 4, 6)
and r8.xyzw, r8.xyzw, l(1, 1, 1, 1)
imad r8.xyzw, r8.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r12.xyzw
ushr r10.yzw, r10.xxxx, l(0, 2, 4, 6)
and r10.xyzw, r10.xyzw, l(3, 3, 3, 3)
and r11.xyzw, r11.xyzw, l(3, 3, 3, 3)
imul null, r11.xyzw, r2.wwww, r11.xyzw
imad r10.xyzw, r10.xyzw, r2.zzzz, r11.xyzw
and r11.xyzw, r10.xyzw, l(1023, 1023, 1023, 1023)
udiv r11.xyzw, null, r11.xyzw, l(3, 3, 3, 3)
ishl r11.xyzw, r11.xyzw, l(16, 16, 16, 16)
ubfe r12.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r10.xyzw
udiv r12.xyzw, null, r12.xyzw, l(3, 3, 3, 3)
bfi r11.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r12.xyzw, r11.xyzw
ushr r10.xyzw, r10.xyzw, l(20, 20, 20, 20)
udiv r10.xyzw, null, r10.xyzw, l(3, 3, 3, 3)
or r10.xyzw, r10.xyzw, r11.xyzw
or r10.xyzw, r10.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r8.xyzw, r5.wwww, r8.xyzw, r10.xyzw
store_uav_typed U0[0].xyzw, r4.wwww, r8.xyzw
imad r0.x, vThreadID.y, l(4), l(2)
ilt r0.x, r0.x, CB0[0][2].y
not r1.z, r0.x
if_nz r0.x
iadd r0.y, r0.z, r0.y
ushr r3.xyzw, r6.xyzw, l(8, 8, 8, 8)
else
mov r3.x, r9.x
mov r3.yzw, r6.yyzw
endif
if_z r1.z
ushr r6.xyzw, r3.xxxx, l(2, 4, 6, 1)
mov r8.x, r3.x
mov r8.yzw, r6.xxyz
and r9.xyzw, r8.xyzw, l(1, 1, 1, 1)
ubfe r10.xyzw, l(1, 1, 1, 1), l(1, 3, 5, 7), r3.xxxx
imul null, r10.xyzw, r0.wwww, r10.xyzw
imad r9.xyzw, r9.xyzw, r1.xxxx, r10.xyzw
and r10.x, r3.x, r6.w
and r11.x, r10.x, l(0x00555555)
ushr r10.yzw, r11.xxxx, l(0, 2, 4, 6)
and r12.xyzw, r10.xyzw, l(1, 1, 1, 1)
or r6.x, r3.x, r6.w
ubfe r12.xyzw, l(9, 9, 9, 9), r12.xyzw, r9.xyzw
ishl r12.xyzw, r12.xyzw, l(16, 16, 16, 16)
mov r11.yzw, r10.yyzw
bfi r10.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r11.xyzw, l(10, 10, 10, 10)
ubfe r10.xyzw, l(9, 9, 9, 9), r10.xyzw, r9.xyzw
ishl r10.xyzw, r10.xyzw, l(8, 8, 8, 8)
iadd r10.xyzw, r10.xyzw, r12.xyzw
bfi r11.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r11.xyzw, l(20, 20, 20, 20)
ushr r9.xyzw, r9.xyzw, r11.xyzw
iadd r9.xyzw, r9.xyzw, r10.xyzw
ushr r6.yzw, r6.xxxx, l(0, 2, 4, 6)
and r6.xyzw, r6.xyzw, l(1, 1, 1, 1)
imad r6.xyzw, r6.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r9.xyzw
not r9.x, r3.x
ushr r9.yzw, r9.xxxx, l(0, 2, 4, 6)
and r9.xyzw, r9.xyzw, l(3, 3, 3, 3)
and r8.xyzw, r8.xyzw, l(3, 3, 3, 3)
imul null, r8.xyzw, r0.wwww, r8.xyzw
imad r8.xyzw, r9.xyzw, r1.xxxx, r8.xyzw
and r9.xyzw, r8.xyzw, l(1023, 1023, 1023, 1023)
udiv r9.xyzw, null, r9.xyzw, l(3, 3, 3, 3)
ishl r9.xyzw, r9.xyzw, l(16, 16, 16, 16)
ubfe r10.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r8.xyzw
udiv r10.xyzw, null, r10.xyzw, l(3, 3, 3, 3)
bfi r9.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r10.xyzw, r9.xyzw
ushr r8.xyzw, r8.xyzw, l(20, 20, 20, 20)
udiv r8.xyzw, null, r8.xyzw, l(3, 3, 3, 3)
or r8.xyzw, r8.xyzw, r9.xyzw
or r8.xyzw, r8.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r6.xyzw, r5.xxxx, r6.xyzw, r8.xyzw
store_uav_typed U0[0].xyzw, r0.yyyy, r6.xyzw
iadd r4.xzw, r0.yyyy, l(1, 0, 2, 3)
ushr r6.xyzw, r3.yyyy, l(2, 4, 6, 1)
mov r8.x, r3.y
mov r8.yzw, r6.xxyz
and r9.xyzw, r8.xyzw, l(1, 1, 1, 1)
ubfe r10.xyzw, l(1, 1, 1, 1), l(1, 3, 5, 7), r3.yyyy
imul null, r10.xyzw, r4.yyyy, r10.xyzw
imad r9.xyzw, r9.xyzw, r1.yyyy, r10.xyzw
and r10.x, r3.y, r6.w
and r11.x, r10.x, l(0x00555555)
ushr r10.yzw, r11.xxxx, l(0, 2, 4, 6)
and r12.xyzw, r10.xyzw, l(1, 1, 1, 1)
or r6.x, r3.y, r6.w
ubfe r12.xyzw, l(9, 9, 9, 9), r12.xyzw, r9.xyzw
ishl r12.xyzw, r12.xyzw, l(16, 16, 16, 16)
mov r11.yzw, r10.yyzw
bfi r10.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r11.xyzw, l(10, 10, 10, 10)
ubfe r10.xyzw, l(9, 9, 9, 9), r10.xyzw, r9.xyzw
ishl r10.xyzw, r10.xyzw, l(8, 8, 8, 8)
iadd r10.xyzw, r10.xyzw, r12.xyzw
bfi r11.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r11.xyzw, l(20, 20, 20, 20)
ushr r9.xyzw, r9.xyzw, r11.xyzw
iadd r9.xyzw, r9.xyzw, r10.xyzw
ushr r6.yzw, r6.xxxx, l(0, 2, 4, 6)
and r6.xyzw, r6.xyzw, l(1, 1, 1, 1)
imad r6.xyzw, r6.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r9.xyzw
not r9.x, r3.y
ushr r9.yzw, r9.xxxx, l(0, 2, 4, 6)
and r9.xyzw, r9.xyzw, l(3, 3, 3, 3)
and r8.xyzw, r8.xyzw, l(3, 3, 3, 3)
imul null, r8.xyzw, r4.yyyy, r8.xyzw
imad r8.xyzw, r9.xyzw, r1.yyyy, r8.xyzw
and r9.xyzw, r8.xyzw, l(1023, 1023, 1023, 1023)
udiv r9.xyzw, null, r9.xyzw, l(3, 3, 3, 3)
ishl r9.xyzw, r9.xyzw, l(16, 16, 16, 16)
ubfe r10.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r8.xyzw
udiv r10.xyzw, null, r10.xyzw, l(3, 3, 3, 3)
bfi r9.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r10.xyzw, r9.xyzw
ushr r8.xyzw, r8.xyzw, l(20, 20, 20, 20)
udiv r8.xyzw, null, r8.xyzw, l(3, 3, 3, 3)
or r8.xyzw, r8.xyzw, r9.xyzw
or r8.xyzw, r8.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r6.xyzw, r5.yyyy, r6.xyzw, r8.xyzw
store_uav_typed U0[0].xyzw, r4.xxxx, r6.xyzw
ushr r6.xyzw, r3.zzzz, l(2, 4, 6, 1)
mov r8.x, r3.z
mov r8.yzw, r6.xxyz
and r9.xyzw, r8.xyzw, l(1, 1, 1, 1)
ubfe r10.xyzw, l(1, 1, 1, 1), l(1, 3, 5, 7), r3.zzzz
imul null, r10.xyzw, r2.yyyy, r10.xyzw
imad r9.xyzw, r9.xyzw, r2.xxxx, r10.xyzw
and r10.x, r3.z, r6.w
and r11.x, r10.x, l(0x00555555)
ushr r10.yzw, r11.xxxx, l(0, 2, 4, 6)
and r12.xyzw, r10.xyzw, l(1, 1, 1, 1)
or r6.x, r3.z, r6.w
ubfe r12.xyzw, l(9, 9, 9, 9), r12.xyzw, r9.xyzw
ishl r12.xyzw, r12.xyzw, l(16, 16, 16, 16)
mov r11.yzw, r10.yyzw
bfi r10.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r11.xyzw, l(10, 10, 10, 10)
ubfe r10.xyzw, l(9, 9, 9, 9), r10.xyzw, r9.xyzw
ishl r10.xyzw, r10.xyzw, l(8, 8, 8, 8)
iadd r10.xyzw, r10.xyzw, r12.xyzw
bfi r11.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r11.xyzw, l(20, 20, 20, 20)
ushr r9.xyzw, r9.xyzw, r11.xyzw
iadd r9.xyzw, r9.xyzw, r10.xyzw
ushr r6.yzw, r6.xxxx, l(0, 2, 4, 6)
and r6.xyzw, r6.xyzw, l(1, 1, 1, 1)
imad r6.xyzw, r6.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r9.xyzw
not r9.x, r3.z
ushr r9.yzw, r9.xxxx, l(0, 2, 4, 6)
and r9.xyzw, r9.xyzw, l(3, 3, 3, 3)
and r8.xyzw, r8.xyzw, l(3, 3, 3, 3)
imul null, r8.xyzw, r2.yyyy, r8.xyzw
imad r8.xyzw, r9.xyzw, r2.xxxx, r8.xyzw
and r9.xyzw, r8.xyzw, l(1023, 1023, 1023, 1023)
udiv r9.xyzw, null, r9.xyzw, l(3, 3, 3, 3)
ishl r9.xyzw, r9.xyzw, l(16, 16, 16, 16)
ubfe r10.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r8.xyzw
udiv r10.xyzw, null, r10.xyzw, l(3, 3, 3, 3)
bfi r9.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r10.xyzw, r9.xyzw
ushr r8.xyzw, r8.xyzw, l(20, 20, 20, 20)
udiv r8.xyzw, null, r8.xyzw, l(3, 3, 3, 3)
or r8.xyzw, r8.xyzw, r9.xyzw
or r8.xyzw, r8.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r6.xyzw, r5.zzzz, r6.xyzw, r8.xyzw
store_uav_typed U0[0].xyzw, r4.zzzz, r6.xyzw
ushr r6.xyzw, r3.wwww, l(2, 4, 6, 1)
mov r8.x, r3.w
mov r8.yzw, r6.xxyz
and r9.xyzw, r8.xyzw, l(1, 1, 1, 1)
ubfe r10.xyzw, l(1, 1, 1, 1), l(1, 3, 5, 7), r3.wwww
imul null, r10.xyzw, r2.wwww, r10.xyzw
imad r9.xyzw, r9.xyzw, r2.zzzz, r10.xyzw
and r10.x, r3.w, r6.w
and r11.x, r10.x, l(0x00555555)
ushr r10.yzw, r11.xxxx, l(0, 2, 4, 6)
and r12.xyzw, r10.xyzw, l(1, 1, 1, 1)
or r6.x, r3.w, r6.w
ubfe r12.xyzw, l(9, 9, 9, 9), r12.xyzw, r9.xyzw
ishl r12.xyzw, r12.xyzw, l(16, 16, 16, 16)
mov r11.yzw, r10.yyzw
bfi r10.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r11.xyzw, l(10, 10, 10, 10)
ubfe r10.xyzw, l(9, 9, 9, 9), r10.xyzw, r9.xyzw
ishl r10.xyzw, r10.xyzw, l(8, 8, 8, 8)
iadd r10.xyzw, r10.xyzw, r12.xyzw
bfi r11.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r11.xyzw, l(20, 20, 20, 20)
ushr r9.xyzw, r9.xyzw, r11.xyzw
iadd r9.xyzw, r9.xyzw, r10.xyzw
ushr r6.yzw, r6.xxxx, l(0, 2, 4, 6)
and r6.xyzw, r6.xyzw, l(1, 1, 1, 1)
imad r6.xyzw, r6.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r9.xyzw
not r9.x, r3.w
ushr r9.yzw, r9.xxxx, l(0, 2, 4, 6)
and r9.xyzw, r9.xyzw, l(3, 3, 3, 3)
and r8.xyzw, r8.xyzw, l(3, 3, 3, 3)
imul null, r8.xyzw, r2.wwww, r8.xyzw
imad r8.xyzw, r9.xyzw, r2.zzzz, r8.xyzw
and r9.xyzw, r8.xyzw, l(1023, 1023, 1023, 1023)
udiv r9.xyzw, null, r9.xyzw, l(3, 3, 3, 3)
ishl r9.xyzw, r9.xyzw, l(16, 16, 16, 16)
ubfe r10.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r8.xyzw
udiv r10.xyzw, null, r10.xyzw, l(3, 3, 3, 3)
bfi r9.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r10.xyzw, r9.xyzw
ushr r8.xyzw, r8.xyzw, l(20, 20, 20, 20)
udiv r8.xyzw, null, r8.xyzw, l(3, 3, 3, 3)
or r8.xyzw, r8.xyzw, r9.xyzw
or r8.xyzw, r8.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r6.xyzw, r5.wwww, r6.xyzw, r8.xyzw
store_uav_typed U0[0].xyzw, r4.wwww, r6.xyzw
endif
else
mov r3.x, r7.x
mov r1.z, l(-1)
endif
if_z r1.z
imad r0.x, vThreadID.y, l(4), l(3)
ilt r0.x, r0.x, CB0[0][2].y
if_nz r0.x
iadd r0.x, r0.z, r0.y
ushr r6.xyzw, r3.wxyz, l(8, 8, 8, 8)
ushr r7.xyzw, r6.yyyy, l(2, 4, 6, 1)
mov r8.x, r6.y
mov r8.yzw, r7.xxyz
and r9.xyzw, r8.xyzw, l(1, 1, 1, 1)
ubfe r10.xyzw, l(1, 1, 1, 1), l(9, 11, 13, 15), r3.xxxx
imul null, r10.xyzw, r0.wwww, r10.xyzw
imad r9.xyzw, r9.xyzw, r1.xxxx, r10.xyzw
and r10.x, r7.w, r8.x
and r11.x, r10.x, l(0x00555555)
ushr r10.yzw, r11.xxxx, l(0, 2, 4, 6)
and r12.xyzw, r10.xyzw, l(1, 1, 1, 1)
or r7.x, r7.w, r8.x
ubfe r12.xyzw, l(9, 9, 9, 9), r12.xyzw, r9.xyzw
ishl r12.xyzw, r12.xyzw, l(16, 16, 16, 16)
mov r11.yzw, r10.yyzw
bfi r10.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r11.xyzw, l(10, 10, 10, 10)
ubfe r10.xyzw, l(9, 9, 9, 9), r10.xyzw, r9.xyzw
ishl r10.xyzw, r10.xyzw, l(8, 8, 8, 8)
iadd r10.xyzw, r10.xyzw, r12.xyzw
bfi r11.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r11.xyzw, l(20, 20, 20, 20)
ushr r9.xyzw, r9.xyzw, r11.xyzw
iadd r9.xyzw, r9.xyzw, r10.xyzw
ushr r7.yzw, r7.xxxx, l(0, 2, 4, 6)
and r7.xyzw, r7.xyzw, l(1, 1, 1, 1)
imad r7.xyzw, r7.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r9.xyzw
not r9.xyzw, r6.xyzw
ushr r10.yzw, r9.yyyy, l(0, 2, 4, 6)
mov r10.x, r9.y
and r10.xyzw, r10.xyzw, l(3, 3, 3, 3)
and r8.xyzw, r8.xyzw, l(3, 3, 3, 3)
imul null, r8.xyzw, r0.wwww, r8.xyzw
imad r8.xyzw, r10.xyzw, r1.xxxx, r8.xyzw
and r10.xyzw, r8.xyzw, l(1023, 1023, 1023, 1023)
udiv r10.xyzw, null, r10.xyzw, l(3, 3, 3, 3)
ishl r10.xyzw, r10.xyzw, l(16, 16, 16, 16)
ubfe r11.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r8.xyzw
udiv r11.xyzw, null, r11.xyzw, l(3, 3, 3, 3)
bfi r10.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r11.xyzw, r10.xyzw
ushr r8.xyzw, r8.xyzw, l(20, 20, 20, 20)
udiv r8.xyzw, null, r8.xyzw, l(3, 3, 3, 3)
or r8.xyzw, r8.xyzw, r10.xyzw
or r8.xyzw, r8.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r7.xyzw, r5.xxxx, r7.xyzw, r8.xyzw
store_uav_typed U0[0].xyzw, r0.xxxx, r7.xyzw
iadd r0.yzw, r0.xxxx, l(0, 1, 2, 3)
ushr r7.xyzw, r6.zzzz, l(2, 4, 6, 1)
mov r8.x, r6.z
mov r8.yzw, r7.xxyz
and r10.xyzw, r8.xyzw, l(1, 1, 1, 1)
ubfe r11.xyzw, l(1, 1, 1, 1), l(9, 11, 13, 15), r3.yyyy
imul null, r11.xyzw, r4.yyyy, r11.xyzw
imad r10.xyzw, r10.xyzw, r1.yyyy, r11.xyzw
and r11.x, r6.z, r7.w
and r12.x, r11.x, l(0x00555555)
ushr r11.yzw, r12.xxxx, l(0, 2, 4, 6)
and r13.xyzw, r11.xyzw, l(1, 1, 1, 1)
or r7.x, r6.z, r7.w
ubfe r13.xyzw, l(9, 9, 9, 9), r13.xyzw, r10.xyzw
ishl r13.xyzw, r13.xyzw, l(16, 16, 16, 16)
mov r12.yzw, r11.yyzw
bfi r11.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r12.xyzw, l(10, 10, 10, 10)
ubfe r11.xyzw, l(9, 9, 9, 9), r11.xyzw, r10.xyzw
ishl r11.xyzw, r11.xyzw, l(8, 8, 8, 8)
iadd r11.xyzw, r11.xyzw, r13.xyzw
bfi r12.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r12.xyzw, l(20, 20, 20, 20)
ushr r10.xyzw, r10.xyzw, r12.xyzw
iadd r10.xyzw, r10.xyzw, r11.xyzw
ushr r7.yzw, r7.xxxx, l(0, 2, 4, 6)
and r7.xyzw, r7.xyzw, l(1, 1, 1, 1)
imad r7.xyzw, r7.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r10.xyzw
ushr r10.yzw, r9.zzzz, l(0, 2, 4, 6)
mov r10.x, r9.z
and r10.xyzw, r10.xyzw, l(3, 3, 3, 3)
and r8.xyzw, r8.xyzw, l(3, 3, 3, 3)
imul null, r4.xyzw, r4.yyyy, r8.xyzw
imad r1.xyzw, r10.xyzw, r1.yyyy, r4.xyzw
and r4.xyzw, r1.xyzw, l(1023, 1023, 1023, 1023)
udiv r4.xyzw, null, r4.xyzw, l(3, 3, 3, 3)
ishl r4.xyzw, r4.xyzw, l(16, 16, 16, 16)
ubfe r8.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r1.xyzw
udiv r8.xyzw, null, r8.xyzw, l(3, 3, 3, 3)
bfi r4.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r8.xyzw, r4.xyzw
ushr r1.xyzw, r1.xyzw, l(20, 20, 20, 20)
udiv r1.xyzw, null, r1.xyzw, l(3, 3, 3, 3)
or r1.xyzw, r1.xyzw, r4.xyzw
or r1.xyzw, r1.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r1.xyzw, r5.yyyy, r7.xyzw, r1.xyzw
store_uav_typed U0[0].xyzw, r0.yyyy, r1.xyzw
ushr r1.xyzw, r6.wwww, l(2, 4, 6, 1)
mov r4.x, r6.w
mov r4.yzw, r1.xxyz
and r7.xyzw, r4.xyzw, l(1, 1, 1, 1)
ubfe r8.xyzw, l(1, 1, 1, 1), l(9, 11, 13, 15), r3.zzzz
imul null, r8.xyzw, r2.yyyy, r8.xyzw
imad r7.xyzw, r7.xyzw, r2.xxxx, r8.xyzw
and r8.x, r6.w, r1.w
and r10.x, r8.x, l(0x00555555)
ushr r8.yzw, r10.xxxx, l(0, 2, 4, 6)
and r11.xyzw, r8.xyzw, l(1, 1, 1, 1)
or r1.x, r1.w, r6.w
ubfe r11.xyzw, l(9, 9, 9, 9), r11.xyzw, r7.xyzw
ishl r11.xyzw, r11.xyzw, l(16, 16, 16, 16)
mov r10.yzw, r8.yyzw
bfi r8.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r10.xyzw, l(10, 10, 10, 10)
ubfe r8.xyzw, l(9, 9, 9, 9), r8.xyzw, r7.xyzw
ishl r8.xyzw, r8.xyzw, l(8, 8, 8, 8)
iadd r8.xyzw, r8.xyzw, r11.xyzw
bfi r10.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r10.xyzw, l(20, 20, 20, 20)
ushr r7.xyzw, r7.xyzw, r10.xyzw
iadd r7.xyzw, r7.xyzw, r8.xyzw
ushr r1.yzw, r1.xxxx, l(0, 2, 4, 6)
and r1.xyzw, r1.xyzw, l(1, 1, 1, 1)
imad r1.xyzw, r1.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r7.xyzw
ushr r7.yzw, r9.wwww, l(0, 2, 4, 6)
mov r7.x, r9.w
and r7.xyzw, r7.xyzw, l(3, 3, 3, 3)
and r4.xyzw, r4.xyzw, l(3, 3, 3, 3)
imul null, r4.xyzw, r2.yyyy, r4.xyzw
imad r4.xyzw, r7.xyzw, r2.xxxx, r4.xyzw
and r7.xyzw, r4.xyzw, l(1023, 1023, 1023, 1023)
udiv r7.xyzw, null, r7.xyzw, l(3, 3, 3, 3)
ishl r7.xyzw, r7.xyzw, l(16, 16, 16, 16)
ubfe r8.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r4.xyzw
udiv r8.xyzw, null, r8.xyzw, l(3, 3, 3, 3)
bfi r7.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r8.xyzw, r7.xyzw
ushr r4.xyzw, r4.xyzw, l(20, 20, 20, 20)
udiv r4.xyzw, null, r4.xyzw, l(3, 3, 3, 3)
or r4.xyzw, r4.xyzw, r7.xyzw
or r4.xyzw, r4.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r1.xyzw, r5.zzzz, r1.xyzw, r4.xyzw
store_uav_typed U0[0].xyzw, r0.zzzz, r1.xyzw
ushr r1.xyzw, r6.xxxx, l(2, 4, 6, 1)
mov r6.yzw, r1.xxyz
and r4.xyzw, r6.xyzw, l(1, 1, 1, 1)
ubfe r3.xyzw, l(1, 1, 1, 1), l(9, 11, 13, 15), r3.wwww
imul null, r3.xyzw, r2.wwww, r3.xyzw
imad r3.xyzw, r4.xyzw, r2.zzzz, r3.xyzw
and r4.x, r6.x, r1.w
and r7.x, r4.x, l(0x00555555)
ushr r4.yzw, r7.xxxx, l(0, 2, 4, 6)
and r8.xyzw, r4.xyzw, l(1, 1, 1, 1)
or r1.x, r1.w, r6.x
ubfe r8.xyzw, l(9, 9, 9, 9), r8.xyzw, r3.xyzw
ishl r8.xyzw, r8.xyzw, l(16, 16, 16, 16)
mov r7.yzw, r4.yyzw
bfi r4.xyzw, l(1, 1, 1, 1), l(0, 0, 0, 0), r7.xyzw, l(10, 10, 10, 10)
ubfe r4.xyzw, l(9, 9, 9, 9), r4.xyzw, r3.xyzw
ishl r4.xyzw, r4.xyzw, l(8, 8, 8, 8)
iadd r4.xyzw, r4.xyzw, r8.xyzw
bfi r7.xyzw, l(2, 2, 2, 2), l(0, 0, 0, 0), r7.xyzw, l(20, 20, 20, 20)
ushr r3.xyzw, r3.xyzw, r7.xyzw
iadd r3.xyzw, r3.xyzw, r4.xyzw
ushr r1.yzw, r1.xxxx, l(0, 2, 4, 6)
and r1.xyzw, r1.xyzw, l(1, 1, 1, 1)
imad r1.xyzw, r1.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000), r3.xyzw
ushr r9.yzw, r9.xxxx, l(0, 2, 4, 6)
and r3.xyzw, r9.xyzw, l(3, 3, 3, 3)
and r4.xyzw, r6.xyzw, l(3, 3, 3, 3)
imul null, r4.xyzw, r2.wwww, r4.xyzw
imad r2.xyzw, r3.xyzw, r2.zzzz, r4.xyzw
and r3.xyzw, r2.xyzw, l(1023, 1023, 1023, 1023)
udiv r3.xyzw, null, r3.xyzw, l(3, 3, 3, 3)
ishl r3.xyzw, r3.xyzw, l(16, 16, 16, 16)
ubfe r4.xyzw, l(10, 10, 10, 10), l(10, 10, 10, 10), r2.xyzw
udiv r4.xyzw, null, r4.xyzw, l(3, 3, 3, 3)
bfi r3.xyzw, l(8, 8, 8, 8), l(8, 8, 8, 8), r4.xyzw, r3.xyzw
ushr r2.xyzw, r2.xyzw, l(20, 20, 20, 20)
udiv r2.xyzw, null, r2.xyzw, l(3, 3, 3, 3)
or r2.xyzw, r2.xyzw, r3.xyzw
or r2.xyzw, r2.xyzw, l(0xff000000, 0xff000000, 0xff000000, 0xff000000)
movc r1.xyzw, r5.wwww, r1.xyzw, r2.xyzw
store_uav_typed U0[0].xyzw, r0.wwww, r1.xyzw
endif
endif
ret
// Approximately 910 instruction slots used
#endif
const BYTE texture_load_dxt1_rgba8_cs[] =
{
68, 88, 66, 67, 106, 4,
101, 88, 27, 39, 231, 104,
17, 54, 25, 35, 95, 53,
60, 90, 1, 0, 0, 0,
60, 139, 0, 0, 5, 0,
0, 0, 52, 0, 0, 0,
24, 4, 0, 0, 40, 4,
0, 0, 56, 4, 0, 0,
160, 138, 0, 0, 82, 68,
69, 70, 220, 3, 0, 0,
1, 0, 0, 0, 248, 0,
0, 0, 3, 0, 0, 0,
60, 0, 0, 0, 1, 5,
83, 67, 0, 5, 4, 0,
177, 3, 0, 0, 19, 19,
68, 37, 60, 0, 0, 0,
24, 0, 0, 0, 40, 0,
0, 0, 40, 0, 0, 0,
36, 0, 0, 0, 12, 0,
0, 0, 0, 0, 0, 0,
180, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
1, 0, 0, 0, 255, 255,
255, 255, 0, 0, 0, 0,
1, 0, 0, 0, 12, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 203, 0,
0, 0, 4, 0, 0, 0,
4, 0, 0, 0, 1, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 1, 0,
0, 0, 12, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 224, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
120, 101, 95, 116, 101, 120,
116, 117, 114, 101, 95, 108,
111, 97, 100, 95, 115, 111,
117, 114, 99, 101, 0, 120,
101, 95, 116, 101, 120, 116,
117, 114, 101, 95, 108, 111,
97, 100, 95, 100, 101, 115,
116, 0, 88, 101, 84, 101,
120, 116, 117, 114, 101, 76,
111, 97, 100, 67, 111, 110,
115, 116, 97, 110, 116, 115,
0, 171, 224, 0, 0, 0,
8, 0, 0, 0, 16, 1,
0, 0, 48, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 80, 2, 0, 0,
0, 0, 0, 0, 4, 0,
0, 0, 2, 0, 0, 0,
124, 2, 0, 0, 0, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 255, 255,
255, 255, 0, 0, 0, 0,
160, 2, 0, 0, 4, 0,
0, 0, 4, 0, 0, 0,
2, 0, 0, 0, 124, 2,
0, 0, 0, 0, 0, 0,
255, 255, 255, 255, 0, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 189, 2,
0, 0, 8, 0, 0, 0,
4, 0, 0, 0, 2, 0,
0, 0, 124, 2, 0, 0,
0, 0, 0, 0, 255, 255,
255, 255, 0, 0, 0, 0,
255, 255, 255, 255, 0, 0,
0, 0, 225, 2, 0, 0,
12, 0, 0, 0, 4, 0,
0, 0, 2, 0, 0, 0,
124, 2, 0, 0, 0, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 255, 255,
255, 255, 0, 0, 0, 0,
19, 3, 0, 0, 16, 0,
0, 0, 12, 0, 0, 0,
2, 0, 0, 0, 56, 3,
0, 0, 0, 0, 0, 0,
255, 255, 255, 255, 0, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 92, 3,
0, 0, 28, 0, 0, 0,
4, 0, 0, 0, 2, 0,
0, 0, 124, 2, 0, 0,
0, 0, 0, 0, 255, 255,
255, 255, 0, 0, 0, 0,
255, 255, 255, 255, 0, 0,
0, 0, 120, 3, 0, 0,
32, 0, 0, 0, 4, 0,
0, 0, 2, 0, 0, 0,
124, 2, 0, 0, 0, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 255, 255,
255, 255, 0, 0, 0, 0,
147, 3, 0, 0, 36, 0,
0, 0, 4, 0, 0, 0,
2, 0, 0, 0, 124, 2,
0, 0, 0, 0, 0, 0,
255, 255, 255, 255, 0, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 120, 101,
95, 116, 101, 120, 116, 117,
114, 101, 95, 108, 111, 97,
100, 95, 105, 115, 95, 116,
105, 108, 101, 100, 95, 51,
100, 95, 101, 110, 100, 105,
97, 110, 0, 100, 119, 111,
114, 100, 0, 171, 171, 171,
0, 0, 19, 0, 1, 0,
1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 115, 2, 0, 0,
120, 101, 95, 116, 101, 120,
116, 117, 114, 101, 95, 108,
111, 97, 100, 95, 103, 117,
101, 115, 116, 95, 111, 102,
102, 115, 101, 116, 0, 120,
101, 95, 116, 101, 120, 116,
117, 114, 101, 95, 108, 111,
97, 100, 95, 103, 117, 101,
115, 116, 95, 112, 105, 116,
99, 104, 95, 97, 108, 105,
103, 110, 101, 100, 0, 120,
101, 95, 116, 101, 120, 116,
117, 114, 101, 95, 108, 111,
97, 100, 95, 103, 117, 101,
115, 116, 95, 122, 95, 115,
116, 114, 105, 100, 101, 95,
98, 108, 111, 99, 107, 95,
114, 111, 119, 115, 95, 97,
108, 105, 103, 110, 101, 100,
0, 120, 101, 95, 116, 101,
120, 116, 117, 114, 101, 95,
108, 111, 97, 100, 95, 115,
105, 122, 101, 95, 98, 108,
111, 99, 107, 115, 0, 117,
105, 110, 116, 51, 0, 171,
171, 171, 1, 0, 19, 0,
1, 0, 3, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 47, 3,
0, 0, 120, 101, 95, 116,
101, 120, 116, 117, 114, 101,
95, 108, 111, 97, 100, 95,
104, 111, 115, 116, 95, 111,
102, 102, 115, 101, 116, 0,
120, 101, 95, 116, 101, 120,
116, 117, 114, 101, 95, 108,
111, 97, 100, 95, 104, 111,
115, 116, 95, 112, 105, 116,
99, 104, 0, 120, 101, 95,
116, 101, 120, 116, 117, 114,
101, 95, 108, 111, 97, 100,
95, 104, 101, 105, 103, 104,
116, 95, 116, 101, 120, 101,
108, 115, 0, 77, 105, 99,
114, 111, 115, 111, 102, 116,
32, 40, 82, 41, 32, 72,
76, 83, 76, 32, 83, 104,
97, 100, 101, 114, 32, 67,
111, 109, 112, 105, 108, 101,
114, 32, 49, 48, 46, 49,
0, 171, 171, 171, 73, 83,
71, 78, 8, 0, 0, 0,
0, 0, 0, 0, 8, 0,
0, 0, 79, 83, 71, 78,
8, 0, 0, 0, 0, 0,
0, 0, 8, 0, 0, 0,
83, 72, 69, 88, 96, 134,
0, 0, 81, 0, 5, 0,
152, 33, 0, 0, 106, 8,
0, 1, 89, 0, 0, 7,
70, 142, 48, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 3, 0,
0, 0, 0, 0, 0, 0,
88, 8, 0, 7, 70, 126,
48, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 68, 68, 0, 0,
0, 0, 0, 0, 156, 8,
0, 7, 70, 238, 49, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
68, 68, 0, 0, 0, 0,
0, 0, 95, 0, 0, 2,
114, 0, 2, 0, 104, 0,
0, 2, 16, 0, 0, 0,
155, 0, 0, 4, 8, 0,
0, 0, 32, 0, 0, 0,
1, 0, 0, 0, 41, 0,
0, 6, 18, 0, 16, 0,
0, 0, 0, 0, 10, 0,
2, 0, 1, 64, 0, 0,
2, 0, 0, 0, 54, 0,
0, 4, 98, 0, 16, 0,
0, 0, 0, 0, 86, 6,
2, 0, 80, 0, 0, 9,
114, 0, 16, 0, 1, 0,
0, 0, 70, 2, 16, 0,
0, 0, 0, 0, 70, 130,
48, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 60, 0, 0, 7,
66, 0, 16, 0, 0, 0,
0, 0, 26, 0, 16, 0,
1, 0, 0, 0, 10, 0,
16, 0, 1, 0, 0, 0,
60, 0, 0, 7, 66, 0,
16, 0, 0, 0, 0, 0,
42, 0, 16, 0, 1, 0,
0, 0, 42, 0, 16, 0,
0, 0, 0, 0, 31, 0,
4, 3, 42, 0, 16, 0,
0, 0, 0, 0, 62, 0,
0, 1, 21, 0, 0, 1,
41, 0, 0, 10, 98, 0,
16, 0, 0, 0, 0, 0,
6, 1, 16, 0, 0, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
0, 0, 0, 0, 41, 0,
0, 7, 34, 0, 16, 0,
0, 0, 0, 0, 26, 0,
16, 0, 0, 0, 0, 0,
1, 64, 0, 0, 2, 0,
0, 0, 35, 0, 0, 10,
66, 0, 16, 0, 0, 0,
0, 0, 42, 0, 2, 0,
26, 128, 48, 0, 0, 0,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 42, 0,
16, 0, 0, 0, 0, 0,
35, 0, 0, 11, 34, 0,
16, 0, 0, 0, 0, 0,
42, 0, 16, 0, 0, 0,
0, 0, 10, 128, 48, 0,
0, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
26, 0, 16, 0, 0, 0,
0, 0, 30, 0, 0, 9,
34, 0, 16, 0, 0, 0,
0, 0, 26, 0, 16, 0,
0, 0, 0, 0, 58, 128,
48, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 85, 0, 0, 9,
66, 0, 16, 0, 0, 0,
0, 0, 10, 128, 48, 0,
0, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
1, 64, 0, 0, 4, 0,
0, 0, 1, 0, 0, 9,
130, 0, 16, 0, 0, 0,
0, 0, 10, 128, 48, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 64, 0, 0, 1, 0,
0, 0, 31, 0, 4, 3,
58, 0, 16, 0, 0, 0,
0, 0, 1, 0, 0, 9,
18, 0, 16, 0, 1, 0,
0, 0, 10, 128, 48, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 64, 0, 0, 2, 0,
0, 0, 31, 0, 4, 3,
10, 0, 16, 0, 1, 0,
0, 0, 42, 0, 0, 9,
114, 0, 16, 0, 1, 0,
0, 0, 150, 5, 2, 0,
2, 64, 0, 0, 4, 0,
0, 0, 2, 0, 0, 0,
3, 0, 0, 0, 0, 0,
0, 0, 85, 0, 0, 12,
50, 0, 16, 0, 2, 0,
0, 0, 182, 143, 48, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
2, 64, 0, 0, 4, 0,
0, 0, 5, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 35, 0, 0, 9,
18, 0, 16, 0, 1, 0,
0, 0, 26, 0, 16, 0,
1, 0, 0, 0, 10, 0,
16, 0, 2, 0, 0, 0,
10, 0, 16, 0, 1, 0,
0, 0, 139, 0, 0, 14,
82, 0, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0,
27, 0, 0, 0, 0, 0,
0, 0, 29, 0, 0, 0,
0, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0,
6, 0, 2, 0, 35, 0,
0, 9, 18, 0, 16, 0,
1, 0, 0, 0, 10, 0,
16, 0, 1, 0, 0, 0,
26, 0, 16, 0, 2, 0,
0, 0, 10, 0, 16, 0,
2, 0, 0, 0, 41, 0,
0, 6, 130, 0, 16, 0,
1, 0, 0, 0, 26, 0,
2, 0, 1, 64, 0, 0,
11, 0, 0, 0, 1, 0,
0, 7, 130, 0, 16, 0,
1, 0, 0, 0, 58, 0,
16, 0, 1, 0, 0, 0,
1, 64, 0, 0, 0, 48,
0, 0, 140, 0, 0, 11,
130, 0, 16, 0, 1, 0,
0, 0, 1, 64, 0, 0,
3, 0, 0, 0, 1, 64,
0, 0, 9, 0, 0, 0,
10, 0, 16, 0, 0, 0,
0, 0, 58, 0, 16, 0,
1, 0, 0, 0, 42, 0,
0, 7, 130, 0, 16, 0,
1, 0, 0, 0, 58, 0,
16, 0, 1, 0, 0, 0,
1, 64, 0, 0, 6, 0,
0, 0, 30, 0, 0, 7,
34, 0, 16, 0, 1, 0,
0, 0, 26, 0, 16, 0,
1, 0, 0, 0, 42, 0,
16, 0, 1, 0, 0, 0,
140, 0, 0, 11, 66, 0,
16, 0, 1, 0, 0, 0,
1, 64, 0, 0, 1, 0,
0, 0, 1, 64, 0, 0,
1, 0, 0, 0, 26, 0,
16, 0, 1, 0, 0, 0,
1, 64, 0, 0, 0, 0,
0, 0, 30, 0, 0, 7,
66, 0, 16, 0, 1, 0,
0, 0, 42, 0, 16, 0,
1, 0, 0, 0, 42, 0,
16, 0, 2, 0, 0, 0,
140, 0, 0, 11, 66, 0,
16, 0, 1, 0, 0, 0,
1, 64, 0, 0, 2, 0,
0, 0, 1, 64, 0, 0,
1, 0, 0, 0, 42, 0,
16, 0, 1, 0, 0, 0,
1, 64, 0, 0, 0, 0,
0, 0, 140, 0, 0, 11,
34, 0, 16, 0, 1, 0,
0, 0, 1, 64, 0, 0,
1, 0, 0, 0, 1, 64,
0, 0, 0, 0, 0, 0,
26, 0, 16, 0, 1, 0,
0, 0, 42, 0, 16, 0,
1, 0, 0, 0, 140, 0,
0, 20, 82, 0, 16, 0,
1, 0, 0, 0, 2, 64,
0, 0, 19, 0, 0, 0,
0, 0, 0, 0, 19, 0,
0, 0, 0, 0, 0, 0,
2, 64, 0, 0, 11, 0,
0, 0, 0, 0, 0, 0,
14, 0, 0, 0, 0, 0,
0, 0, 6, 0, 16, 0,
1, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
35, 0, 0, 12, 82, 0,
16, 0, 1, 0, 0, 0,
246, 15, 16, 0, 1, 0,
0, 0, 2, 64, 0, 0,
2, 0, 0, 0, 0, 0,
0, 0, 16, 0, 0, 0,
0, 0, 0, 0, 6, 2,
16, 0, 1, 0, 0, 0,
140, 0, 0, 16, 82, 0,
16, 0, 1, 0, 0, 0,
2, 64, 0, 0, 2, 0,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 0, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 0, 0,
0, 0, 12, 0, 0, 0,
0, 0, 0, 0, 166, 10,
2, 0, 6, 2, 16, 0,
1, 0, 0, 0, 140, 0,
0, 10, 130, 0, 16, 0,
1, 0, 0, 0, 1, 64,
0, 0, 1, 0, 0, 0,
1, 64, 0, 0, 4, 0,
0, 0, 26, 0, 2, 0,
1, 64, 0, 0, 0, 0,
0, 0, 138, 0, 0, 9,
18, 0, 16, 0, 2, 0,
0, 0, 1, 64, 0, 0,
3, 0, 0, 0, 1, 64,
0, 0, 6, 0, 0, 0,
10, 0, 16, 0, 1, 0,
0, 0, 1, 0, 0, 7,
34, 0, 16, 0, 2, 0,
0, 0, 26, 0, 16, 0,
1, 0, 0, 0, 1, 64,
0, 0, 6, 0, 0, 0,
140, 0, 0, 11, 34, 0,
16, 0, 1, 0, 0, 0,
1, 64, 0, 0, 1, 0,
0, 0, 1, 64, 0, 0,
8, 0, 0, 0, 26, 0,
16, 0, 1, 0, 0, 0,
1, 64, 0, 0, 0, 0,
0, 0, 35, 0, 0, 9,
34, 0, 16, 0, 1, 0,
0, 0, 10, 0, 16, 0,
2, 0, 0, 0, 1, 64,
0, 0, 32, 0, 0, 0,
26, 0, 16, 0, 1, 0,
0, 0, 35, 0, 0, 9,
34, 0, 16, 0, 1, 0,
0, 0, 26, 0, 16, 0,
2, 0, 0, 0, 1, 64,
0, 0, 4, 0, 0, 0,
26, 0, 16, 0, 1, 0,
0, 0, 140, 0, 0, 17,
82, 0, 16, 0, 1, 0,
0, 0, 2, 64, 0, 0,
6, 0, 0, 0, 0, 0,
0, 0, 6, 0, 0, 0,
0, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 3, 0,
0, 0, 0, 0, 0, 0,
246, 15, 16, 0, 1, 0,
0, 0, 6, 2, 16, 0,
1, 0, 0, 0, 140, 0,
0, 11, 34, 0, 16, 0,
1, 0, 0, 0, 1, 64,
0, 0, 9, 0, 0, 0,
1, 64, 0, 0, 3, 0,
0, 0, 26, 0, 16, 0,
1, 0, 0, 0, 42, 0,
16, 0, 1, 0, 0, 0,
140, 0, 0, 11, 18, 0,
16, 0, 1, 0, 0, 0,
1, 64, 0, 0, 6, 0,
0, 0, 1, 64, 0, 0,
0, 0, 0, 0, 10, 0,
16, 0, 1, 0, 0, 0,
26, 0, 16, 0, 1, 0,
0, 0, 18, 0, 0, 1,
139, 0, 0, 14, 98, 0,
16, 0, 1, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 27, 0, 0, 0,
29, 0, 0, 0, 0, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 3, 0,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 6, 0,
2, 0, 42, 0, 0, 9,
50, 0, 16, 0, 2, 0,
0, 0, 86, 5, 2, 0,
2, 64, 0, 0, 5, 0,
0, 0, 2, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 85, 0, 0, 9,
130, 0, 16, 0, 1, 0,
0, 0, 42, 128, 48, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 64, 0, 0, 5, 0,
0, 0, 35, 0, 0, 9,
34, 0, 16, 0, 1, 0,
0, 0, 10, 0, 16, 0,
2, 0, 0, 0, 58, 0,
16, 0, 1, 0, 0, 0,
26, 0, 16, 0, 1, 0,
0, 0, 41, 0, 0, 9,
82, 0, 16, 0, 2, 0,
0, 0, 86, 5, 2, 0,
2, 64, 0, 0, 6, 0,
0, 0, 0, 0, 0, 0,
7, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 10,
82, 0, 16, 0, 2, 0,
0, 0, 6, 2, 16, 0,
2, 0, 0, 0, 2, 64,
0, 0, 128, 3, 0, 0,
0, 0, 0, 0, 0, 8,
0, 0, 0, 0, 0, 0,
140, 0, 0, 11, 130, 0,
16, 0, 1, 0, 0, 0,
1, 64, 0, 0, 3, 0,
0, 0, 1, 64, 0, 0,
4, 0, 0, 0, 10, 0,
16, 0, 0, 0, 0, 0,
10, 0, 16, 0, 2, 0,
0, 0, 140, 0, 0, 11,
130, 0, 16, 0, 1, 0,
0, 0, 1, 64, 0, 0,
22, 0, 0, 0, 1, 64,
0, 0, 10, 0, 0, 0,
26, 0, 16, 0, 1, 0,
0, 0, 58, 0, 16, 0,
1, 0, 0, 0, 140, 0,
0, 10, 130, 0, 16, 0,
2, 0, 0, 0, 1, 64,
0, 0, 1, 0, 0, 0,
1, 64, 0, 0, 4, 0,
0, 0, 26, 0, 2, 0,
1, 64, 0, 0, 0, 0,
0, 0, 30, 0, 0, 7,
130, 0, 16, 0, 1, 0,
0, 0, 58, 0, 16, 0,
1, 0, 0, 0, 58, 0,
16, 0, 2, 0, 0, 0,
41, 0, 0, 10, 50, 0,
16, 0, 3, 0, 0, 0,
6, 0, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 2, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 140, 0,
0, 17, 50, 0, 16, 0,
3, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
2, 64, 0, 0, 7, 0,
0, 0, 6, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 6, 0, 16, 0,
0, 0, 0, 0, 70, 0,
16, 0, 3, 0, 0, 0,
140, 0, 0, 17, 50, 0,
16, 0, 3, 0, 0, 0,
2, 64, 0, 0, 22, 0,
0, 0, 22, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 2, 64, 0, 0,
13, 0, 0, 0, 12, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 86, 5,
16, 0, 1, 0, 0, 0,
70, 0, 16, 0, 3, 0,
0, 0, 35, 0, 0, 12,
146, 0, 16, 0, 2, 0,
0, 0, 246, 15, 16, 0,
2, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 4, 0, 0, 0,
6, 4, 16, 0, 3, 0,
0, 0, 140, 0, 0, 11,
34, 0, 16, 0, 1, 0,
0, 0, 1, 64, 0, 0,
12, 0, 0, 0, 1, 64,
0, 0, 0, 0, 0, 0,
42, 0, 16, 0, 2, 0,
0, 0, 10, 0, 16, 0,
2, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
2, 0, 0, 0, 58, 0,
16, 0, 2, 0, 0, 0,
1, 64, 0, 0, 0, 7,
0, 0, 30, 0, 0, 7,
34, 0, 16, 0, 1, 0,
0, 0, 26, 0, 16, 0,
1, 0, 0, 0, 10, 0,
16, 0, 2, 0, 0, 0,
1, 0, 0, 7, 18, 0,
16, 0, 2, 0, 0, 0,
26, 0, 16, 0, 2, 0,
0, 0, 1, 64, 0, 0,
2, 0, 0, 0, 30, 0,
0, 7, 66, 0, 16, 0,
1, 0, 0, 0, 42, 0,
16, 0, 1, 0, 0, 0,
10, 0, 16, 0, 2, 0,
0, 0, 140, 0, 0, 11,
66, 0, 16, 0, 1, 0,
0, 0, 1, 64, 0, 0,
2, 0, 0, 0, 1, 64,
0, 0, 6, 0, 0, 0,
42, 0, 16, 0, 1, 0,
0, 0, 1, 64, 0, 0,
0, 0, 0, 0, 30, 0,
0, 7, 34, 0, 16, 0,
1, 0, 0, 0, 26, 0,
16, 0, 1, 0, 0, 0,
42, 0, 16, 0, 1, 0,
0, 0, 140, 0, 0, 11,
18, 0, 16, 0, 1, 0,
0, 0, 1, 64, 0, 0,
6, 0, 0, 0, 1, 64,
0, 0, 0, 0, 0, 0,
58, 0, 16, 0, 1, 0,
0, 0, 26, 0, 16, 0,
1, 0, 0, 0, 21, 0,
0, 1, 18, 0, 0, 1,
41, 0, 0, 7, 18, 0,
16, 0, 0, 0, 0, 0,
10, 0, 16, 0, 0, 0,
0, 0, 1, 64, 0, 0,
3, 0, 0, 0, 35, 0,
0, 9, 34, 0, 16, 0,
1, 0, 0, 0, 42, 0,
2, 0, 58, 128, 48, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
26, 0, 2, 0, 35, 0,
0, 11, 18, 0, 16, 0,
1, 0, 0, 0, 26, 0,
16, 0, 1, 0, 0, 0,
42, 128, 48, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 10, 0,
16, 0, 0, 0, 0, 0,
21, 0, 0, 1, 30, 0,
0, 9, 18, 0, 16, 0,
0, 0, 0, 0, 10, 0,
16, 0, 1, 0, 0, 0,
26, 128, 48, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 85, 0,
0, 10, 50, 0, 16, 0,
0, 0, 0, 0, 70, 0,
16, 0, 0, 0, 0, 0,
2, 64, 0, 0, 4, 0,
0, 0, 4, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 85, 0, 0, 9,
18, 0, 16, 0, 1, 0,
0, 0, 10, 128, 48, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 64, 0, 0, 2, 0,
0, 0, 45, 0, 0, 8,
242, 0, 16, 0, 2, 0,
0, 0, 6, 0, 16, 0,
0, 0, 0, 0, 70, 126,
32, 0, 0, 0, 0, 0,
0, 0, 0, 0, 32, 0,
0, 10, 114, 0, 16, 0,
1, 0, 0, 0, 6, 0,
16, 0, 1, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 2, 0, 0, 0,
3, 0, 0, 0, 0, 0,
0, 0, 60, 0, 0, 7,
50, 0, 16, 0, 1, 0,
0, 0, 150, 5, 16, 0,
1, 0, 0, 0, 70, 0,
16, 0, 1, 0, 0, 0,
31, 0, 4, 3, 10, 0,
16, 0, 1, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 3, 0, 0, 0,
70, 14, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
3, 0, 0, 0, 70, 14,
16, 0, 3, 0, 0, 0,
2, 64, 0, 0, 0, 255,
0, 255, 0, 255, 0, 255,
0, 255, 0, 255, 0, 255,
0, 255, 85, 0, 0, 10,
242, 0, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
2, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 4, 0, 0, 0,
70, 14, 16, 0, 4, 0,
0, 0, 2, 64, 0, 0,
255, 0, 255, 0, 255, 0,
255, 0, 255, 0, 255, 0,
255, 0, 255, 0, 30, 0,
0, 7, 242, 0, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 3, 0, 0, 0,
70, 14, 16, 0, 4, 0,
0, 0, 21, 0, 0, 1,
31, 0, 4, 3, 26, 0,
16, 0, 1, 0, 0, 0,
85, 0, 0, 10, 242, 0,
16, 0, 3, 0, 0, 0,
70, 14, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 140, 0,
0, 17, 242, 0, 16, 0,
2, 0, 0, 0, 2, 64,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
2, 64, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 70, 14, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 3, 0, 0, 0,
54, 0, 0, 5, 50, 0,
16, 0, 3, 0, 0, 0,
214, 5, 16, 0, 2, 0,
0, 0, 18, 0, 0, 1,
54, 0, 0, 5, 50, 0,
16, 0, 3, 0, 0, 0,
214, 5, 16, 0, 2, 0,
0, 0, 21, 0, 0, 1,
55, 0, 0, 9, 130, 0,
16, 0, 0, 0, 0, 0,
58, 0, 16, 0, 0, 0,
0, 0, 1, 64, 0, 0,
2, 0, 0, 0, 1, 64,
0, 0, 1, 0, 0, 0,
30, 0, 0, 7, 18, 0,
16, 0, 0, 0, 0, 0,
58, 0, 16, 0, 0, 0,
0, 0, 10, 0, 16, 0,
0, 0, 0, 0, 45, 0,
0, 8, 242, 0, 16, 0,
4, 0, 0, 0, 6, 0,
16, 0, 0, 0, 0, 0,
70, 126, 32, 0, 0, 0,
0, 0, 0, 0, 0, 0,
31, 0, 4, 3, 10, 0,
16, 0, 1, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 5, 0, 0, 0,
70, 14, 16, 0, 4, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
5, 0, 0, 0, 70, 14,
16, 0, 5, 0, 0, 0,
2, 64, 0, 0, 0, 255,
0, 255, 0, 255, 0, 255,
0, 255, 0, 255, 0, 255,
0, 255, 85, 0, 0, 10,
242, 0, 16, 0, 6, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 6, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 2, 64, 0, 0,
255, 0, 255, 0, 255, 0,
255, 0, 255, 0, 255, 0,
255, 0, 255, 0, 30, 0,
0, 7, 242, 0, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 5, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 21, 0, 0, 1,
31, 0, 4, 3, 26, 0,
16, 0, 1, 0, 0, 0,
85, 0, 0, 10, 242, 0,
16, 0, 1, 0, 0, 0,
70, 14, 16, 0, 4, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 140, 0,
0, 17, 242, 0, 16, 0,
4, 0, 0, 0, 2, 64,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
2, 64, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 1, 0, 0, 0,
54, 0, 0, 5, 194, 0,
16, 0, 3, 0, 0, 0,
86, 13, 16, 0, 4, 0,
0, 0, 18, 0, 0, 1,
54, 0, 0, 5, 194, 0,
16, 0, 3, 0, 0, 0,
86, 13, 16, 0, 4, 0,
0, 0, 21, 0, 0, 1,
41, 0, 0, 10, 114, 0,
16, 0, 1, 0, 0, 0,
6, 0, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 7, 0,
0, 0, 12, 0, 0, 0,
0, 0, 0, 0, 85, 0,
0, 10, 114, 0, 16, 0,
5, 0, 0, 0, 6, 0,
16, 0, 2, 0, 0, 0,
2, 64, 0, 0, 13, 0,
0, 0, 4, 0, 0, 0,
9, 0, 0, 0, 0, 0,
0, 0, 54, 0, 0, 5,
130, 0, 16, 0, 1, 0,
0, 0, 10, 0, 16, 0,
5, 0, 0, 0, 1, 0,
0, 10, 146, 0, 16, 0,
0, 0, 0, 0, 6, 12,
16, 0, 1, 0, 0, 0,
2, 64, 0, 0, 248, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 248, 0,
0, 0, 54, 0, 0, 5,
146, 0, 16, 0, 5, 0,
0, 0, 166, 6, 16, 0,
1, 0, 0, 0, 1, 0,
0, 10, 50, 0, 16, 0,
1, 0, 0, 0, 182, 15,
16, 0, 5, 0, 0, 0,
2, 64, 0, 0, 0, 240,
3, 0, 0, 240, 3, 0,
0, 0, 0, 0, 0, 0,
0, 0, 30, 0, 0, 7,
146, 0, 16, 0, 0, 0,
0, 0, 6, 12, 16, 0,
0, 0, 0, 0, 6, 4,
16, 0, 1, 0, 0, 0,
1, 0, 0, 10, 50, 0,
16, 0, 1, 0, 0, 0,
70, 0, 16, 0, 5, 0,
0, 0, 2, 64, 0, 0,
0, 0, 128, 15, 0, 0,
128, 15, 0, 0, 0, 0,
0, 0, 0, 0, 30, 0,
0, 7, 146, 0, 16, 0,
0, 0, 0, 0, 6, 12,
16, 0, 0, 0, 0, 0,
6, 4, 16, 0, 1, 0,
0, 0, 85, 0, 0, 10,
50, 0, 16, 0, 1, 0,
0, 0, 198, 0, 16, 0,
0, 0, 0, 0, 2, 64,
0, 0, 5, 0, 0, 0,
5, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 10, 50, 0,
16, 0, 1, 0, 0, 0,
70, 0, 16, 0, 1, 0,
0, 0, 2, 64, 0, 0,
7, 0, 112, 0, 7, 0,
112, 0, 0, 0, 0, 0,
0, 0, 0, 0, 30, 0,
0, 7, 146, 0, 16, 0,
0, 0, 0, 0, 6, 12,
16, 0, 0, 0, 0, 0,
6, 4, 16, 0, 1, 0,
0, 0, 85, 0, 0, 10,
50, 0, 16, 0, 1, 0,
0, 0, 198, 0, 16, 0,
0, 0, 0, 0, 2, 64,
0, 0, 6, 0, 0, 0,
6, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 10, 50, 0,
16, 0, 1, 0, 0, 0,
70, 0, 16, 0, 1, 0,
0, 0, 2, 64, 0, 0,
0, 12, 0, 0, 0, 12,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 30, 0,
0, 7, 146, 0, 16, 0,
0, 0, 0, 0, 6, 12,
16, 0, 0, 0, 0, 0,
6, 4, 16, 0, 1, 0,
0, 0, 41, 0, 0, 10,
114, 0, 16, 0, 1, 0,
0, 0, 166, 10, 16, 0,
2, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
7, 0, 0, 0, 12, 0,
0, 0, 0, 0, 0, 0,
85, 0, 0, 10, 114, 0,
16, 0, 2, 0, 0, 0,
166, 10, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0,
13, 0, 0, 0, 4, 0,
0, 0, 9, 0, 0, 0,
0, 0, 0, 0, 54, 0,
0, 5, 130, 0, 16, 0,
1, 0, 0, 0, 10, 0,
16, 0, 2, 0, 0, 0,
1, 0, 0, 10, 146, 0,
16, 0, 1, 0, 0, 0,
6, 12, 16, 0, 1, 0,
0, 0, 2, 64, 0, 0,
248, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
248, 0, 0, 0, 54, 0,
0, 5, 146, 0, 16, 0,
2, 0, 0, 0, 166, 6,
16, 0, 1, 0, 0, 0,
1, 0, 0, 10, 194, 0,
16, 0, 2, 0, 0, 0,
246, 11, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 240, 3, 0,
0, 240, 3, 0, 30, 0,
0, 7, 50, 0, 16, 0,
1, 0, 0, 0, 198, 0,
16, 0, 1, 0, 0, 0,
230, 10, 16, 0, 2, 0,
0, 0, 1, 0, 0, 10,
194, 0, 16, 0, 1, 0,
0, 0, 6, 4, 16, 0,
2, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
128, 15, 0, 0, 128, 15,
30, 0, 0, 7, 50, 0,
16, 0, 1, 0, 0, 0,
230, 10, 16, 0, 1, 0,
0, 0, 70, 0, 16, 0,
1, 0, 0, 0, 85, 0,
0, 10, 194, 0, 16, 0,
1, 0, 0, 0, 6, 4,
16, 0, 1, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
5, 0, 0, 0, 5, 0,
0, 0, 1, 0, 0, 10,
194, 0, 16, 0, 1, 0,
0, 0, 166, 14, 16, 0,
1, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 7, 0,
112, 0, 7, 0, 112, 0,
30, 0, 0, 7, 50, 0,
16, 0, 1, 0, 0, 0,
230, 10, 16, 0, 1, 0,
0, 0, 70, 0, 16, 0,
1, 0, 0, 0, 85, 0,
0, 10, 194, 0, 16, 0,
1, 0, 0, 0, 6, 4,
16, 0, 1, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
6, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
194, 0, 16, 0, 1, 0,
0, 0, 166, 14, 16, 0,
1, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 12,
0, 0, 0, 12, 0, 0,
30, 0, 0, 7, 50, 0,
16, 0, 1, 0, 0, 0,
182, 15, 16, 0, 1, 0,
0, 0, 22, 5, 16, 0,
1, 0, 0, 0, 41, 0,
0, 10, 114, 0, 16, 0,
2, 0, 0, 0, 6, 0,
16, 0, 4, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 7, 0, 0, 0,
12, 0, 0, 0, 0, 0,
0, 0, 85, 0, 0, 10,
114, 0, 16, 0, 5, 0,
0, 0, 6, 0, 16, 0,
4, 0, 0, 0, 2, 64,
0, 0, 13, 0, 0, 0,
4, 0, 0, 0, 9, 0,
0, 0, 0, 0, 0, 0,
54, 0, 0, 5, 130, 0,
16, 0, 2, 0, 0, 0,
10, 0, 16, 0, 5, 0,
0, 0, 1, 0, 0, 10,
146, 0, 16, 0, 2, 0,
0, 0, 6, 12, 16, 0,
2, 0, 0, 0, 2, 64,
0, 0, 248, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 248, 0, 0, 0,
54, 0, 0, 5, 146, 0,
16, 0, 5, 0, 0, 0,
166, 6, 16, 0, 2, 0,
0, 0, 1, 0, 0, 10,
50, 0, 16, 0, 4, 0,
0, 0, 182, 15, 16, 0,
5, 0, 0, 0, 2, 64,
0, 0, 0, 240, 3, 0,
0, 240, 3, 0, 0, 0,
0, 0, 0, 0, 0, 0,
30, 0, 0, 7, 50, 0,
16, 0, 2, 0, 0, 0,
198, 0, 16, 0, 2, 0,
0, 0, 70, 0, 16, 0,
4, 0, 0, 0, 1, 0,
0, 10, 194, 0, 16, 0,
2, 0, 0, 0, 6, 4,
16, 0, 5, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 128, 15, 0, 0,
128, 15, 30, 0, 0, 7,
50, 0, 16, 0, 2, 0,
0, 0, 230, 10, 16, 0,
2, 0, 0, 0, 70, 0,
16, 0, 2, 0, 0, 0,
85, 0, 0, 10, 194, 0,
16, 0, 2, 0, 0, 0,
6, 4, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 5, 0, 0, 0,
5, 0, 0, 0, 1, 0,
0, 10, 194, 0, 16, 0,
2, 0, 0, 0, 166, 14,
16, 0, 2, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
7, 0, 112, 0, 7, 0,
112, 0, 30, 0, 0, 7,
50, 0, 16, 0, 2, 0,
0, 0, 230, 10, 16, 0,
2, 0, 0, 0, 70, 0,
16, 0, 2, 0, 0, 0,
85, 0, 0, 10, 194, 0,
16, 0, 2, 0, 0, 0,
6, 4, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 6, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 194, 0, 16, 0,
2, 0, 0, 0, 166, 14,
16, 0, 2, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 12, 0, 0, 0, 12,
0, 0, 30, 0, 0, 7,
50, 0, 16, 0, 2, 0,
0, 0, 230, 10, 16, 0,
2, 0, 0, 0, 70, 0,
16, 0, 2, 0, 0, 0,
41, 0, 0, 10, 114, 0,
16, 0, 5, 0, 0, 0,
166, 10, 16, 0, 4, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 7, 0,
0, 0, 12, 0, 0, 0,
0, 0, 0, 0, 85, 0,
0, 10, 114, 0, 16, 0,
4, 0, 0, 0, 166, 10,
16, 0, 4, 0, 0, 0,
2, 64, 0, 0, 13, 0,
0, 0, 4, 0, 0, 0,
9, 0, 0, 0, 0, 0,
0, 0, 54, 0, 0, 5,
130, 0, 16, 0, 5, 0,
0, 0, 10, 0, 16, 0,
4, 0, 0, 0, 1, 0,
0, 10, 194, 0, 16, 0,
2, 0, 0, 0, 6, 12,
16, 0, 5, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
248, 0, 0, 0, 248, 0,
0, 0, 54, 0, 0, 5,
146, 0, 16, 0, 4, 0,
0, 0, 166, 6, 16, 0,
5, 0, 0, 0, 1, 0,
0, 10, 194, 0, 16, 0,
4, 0, 0, 0, 246, 11,
16, 0, 4, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 240, 3, 0, 0, 240,
3, 0, 30, 0, 0, 7,
194, 0, 16, 0, 2, 0,
0, 0, 166, 14, 16, 0,
2, 0, 0, 0, 166, 14,
16, 0, 4, 0, 0, 0,
1, 0, 0, 10, 50, 0,
16, 0, 4, 0, 0, 0,
70, 0, 16, 0, 4, 0,
0, 0, 2, 64, 0, 0,
0, 0, 128, 15, 0, 0,
128, 15, 0, 0, 0, 0,
0, 0, 0, 0, 30, 0,
0, 7, 194, 0, 16, 0,
2, 0, 0, 0, 166, 14,
16, 0, 2, 0, 0, 0,
6, 4, 16, 0, 4, 0,
0, 0, 85, 0, 0, 10,
50, 0, 16, 0, 4, 0,
0, 0, 230, 10, 16, 0,
2, 0, 0, 0, 2, 64,
0, 0, 5, 0, 0, 0,
5, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 10, 50, 0,
16, 0, 4, 0, 0, 0,
70, 0, 16, 0, 4, 0,
0, 0, 2, 64, 0, 0,
7, 0, 112, 0, 7, 0,
112, 0, 0, 0, 0, 0,
0, 0, 0, 0, 30, 0,
0, 7, 194, 0, 16, 0,
2, 0, 0, 0, 166, 14,
16, 0, 2, 0, 0, 0,
6, 4, 16, 0, 4, 0,
0, 0, 85, 0, 0, 10,
50, 0, 16, 0, 4, 0,
0, 0, 230, 10, 16, 0,
2, 0, 0, 0, 2, 64,
0, 0, 6, 0, 0, 0,
6, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 10, 50, 0,
16, 0, 4, 0, 0, 0,
70, 0, 16, 0, 4, 0,
0, 0, 2, 64, 0, 0,
0, 12, 0, 0, 0, 12,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 30, 0,
0, 7, 194, 0, 16, 0,
2, 0, 0, 0, 166, 14,
16, 0, 2, 0, 0, 0,
6, 4, 16, 0, 4, 0,
0, 0, 54, 0, 0, 5,
18, 0, 16, 0, 4, 0,
0, 0, 58, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 5, 34, 0, 16, 0,
4, 0, 0, 0, 10, 0,
16, 0, 1, 0, 0, 0,
54, 0, 0, 5, 194, 0,
16, 0, 4, 0, 0, 0,
86, 13, 16, 0, 2, 0,
0, 0, 54, 0, 0, 5,
18, 0, 16, 0, 1, 0,
0, 0, 10, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 5, 194, 0, 16, 0,
1, 0, 0, 0, 6, 8,
16, 0, 2, 0, 0, 0,
80, 0, 0, 7, 242, 0,
16, 0, 5, 0, 0, 0,
70, 14, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
1, 0, 0, 0, 59, 0,
0, 5, 242, 0, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 3, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 7, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
7, 0, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
2, 64, 0, 0, 170, 170,
170, 170, 170, 170, 170, 170,
170, 170, 170, 170, 170, 170,
170, 170, 87, 0, 0, 7,
242, 0, 16, 0, 6, 0,
0, 0, 70, 14, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 7, 0, 0, 0,
70, 14, 16, 0, 3, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
7, 0, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
2, 64, 0, 0, 170, 170,
170, 170, 170, 170, 170, 170,
170, 170, 170, 170, 170, 170,
170, 170, 85, 0, 0, 10,
242, 0, 16, 0, 3, 0,
0, 0, 70, 14, 16, 0,
3, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 3, 0, 0, 0,
70, 14, 16, 0, 3, 0,
0, 0, 2, 64, 0, 0,
85, 85, 85, 85, 85, 85,
85, 85, 85, 85, 85, 85,
85, 85, 85, 85, 30, 0,
0, 7, 242, 0, 16, 0,
3, 0, 0, 0, 70, 14,
16, 0, 3, 0, 0, 0,
70, 14, 16, 0, 7, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 7, 0,
0, 0, 70, 14, 16, 0,
3, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 7, 0, 0, 0,
70, 14, 16, 0, 7, 0,
0, 0, 2, 64, 0, 0,
85, 85, 85, 85, 85, 85,
85, 85, 85, 85, 85, 85,
85, 85, 85, 85, 87, 0,
0, 7, 242, 0, 16, 0,
3, 0, 0, 0, 70, 14,
16, 0, 3, 0, 0, 0,
70, 14, 16, 0, 7, 0,
0, 0, 55, 0, 0, 9,
242, 0, 16, 0, 3, 0,
0, 0, 70, 14, 16, 0,
5, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
70, 14, 16, 0, 3, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 6, 0,
0, 0, 6, 0, 16, 0,
3, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 0,
54, 0, 0, 5, 18, 0,
16, 0, 7, 0, 0, 0,
10, 0, 16, 0, 3, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 7, 0,
0, 0, 6, 9, 16, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
3, 0, 0, 0, 5, 0,
0, 0, 7, 0, 0, 0,
6, 0, 16, 0, 7, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 9, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
6, 0, 16, 0, 1, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
9, 0, 0, 0, 58, 0,
16, 0, 6, 0, 0, 0,
10, 0, 16, 0, 7, 0,
0, 0, 1, 0, 0, 7,
18, 0, 16, 0, 10, 0,
0, 0, 10, 0, 16, 0,
9, 0, 0, 0, 1, 64,
0, 0, 85, 85, 85, 85,
85, 0, 0, 10, 226, 0,
16, 0, 9, 0, 0, 0,
6, 0, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 60, 0, 0, 7,
18, 0, 16, 0, 6, 0,
0, 0, 58, 0, 16, 0,
6, 0, 0, 0, 10, 0,
16, 0, 7, 0, 0, 0,
138, 0, 0, 12, 242, 0,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 54, 0,
0, 5, 226, 0, 16, 0,
10, 0, 0, 0, 86, 14,
16, 0, 9, 0, 0, 0,
140, 0, 0, 20, 242, 0,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 138, 0, 0, 12,
242, 0, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
30, 0, 0, 7, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 140, 0,
0, 20, 242, 0, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
85, 0, 0, 7, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 30, 0,
0, 7, 242, 0, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 85, 0, 0, 10,
226, 0, 16, 0, 6, 0,
0, 0, 6, 0, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 6, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 35, 0,
0, 12, 242, 0, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 70, 14, 16, 0,
8, 0, 0, 0, 59, 0,
0, 5, 242, 0, 16, 0,
8, 0, 0, 0, 54, 9,
16, 0, 3, 0, 0, 0,
85, 0, 0, 10, 226, 0,
16, 0, 9, 0, 0, 0,
86, 5, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 54, 0,
0, 5, 18, 0, 16, 0,
9, 0, 0, 0, 26, 0,
16, 0, 8, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 10, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
6, 0, 16, 0, 1, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 10, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 11, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 140, 0,
0, 17, 242, 0, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
85, 0, 0, 10, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
9, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
60, 0, 0, 7, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 60, 0,
0, 10, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 55, 0, 0, 9,
242, 0, 16, 0, 6, 0,
0, 0, 6, 0, 16, 0,
5, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 164, 0, 0, 8,
242, 224, 33, 0, 0, 0,
0, 0, 0, 0, 0, 0,
86, 5, 16, 0, 0, 0,
0, 0, 70, 14, 16, 0,
6, 0, 0, 0, 30, 0,
0, 10, 210, 0, 16, 0,
4, 0, 0, 0, 86, 5,
16, 0, 0, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 3, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 6, 0,
0, 0, 86, 5, 16, 0,
3, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 0,
54, 0, 0, 5, 18, 0,
16, 0, 9, 0, 0, 0,
26, 0, 16, 0, 3, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 9, 0,
0, 0, 6, 9, 16, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
3, 0, 0, 0, 5, 0,
0, 0, 7, 0, 0, 0,
86, 5, 16, 0, 3, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 11, 0, 0, 0,
86, 5, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
86, 5, 16, 0, 1, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
11, 0, 0, 0, 26, 0,
16, 0, 3, 0, 0, 0,
58, 0, 16, 0, 6, 0,
0, 0, 1, 0, 0, 7,
18, 0, 16, 0, 12, 0,
0, 0, 10, 0, 16, 0,
11, 0, 0, 0, 1, 64,
0, 0, 85, 85, 85, 85,
85, 0, 0, 10, 226, 0,
16, 0, 11, 0, 0, 0,
6, 0, 16, 0, 12, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 60, 0, 0, 7,
18, 0, 16, 0, 6, 0,
0, 0, 26, 0, 16, 0,
3, 0, 0, 0, 58, 0,
16, 0, 6, 0, 0, 0,
138, 0, 0, 12, 242, 0,
16, 0, 13, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 13, 0, 0, 0,
70, 14, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 54, 0,
0, 5, 226, 0, 16, 0,
12, 0, 0, 0, 86, 14,
16, 0, 11, 0, 0, 0,
140, 0, 0, 20, 242, 0,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 138, 0, 0, 12,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
30, 0, 0, 7, 242, 0,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 140, 0,
0, 20, 242, 0, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
85, 0, 0, 7, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 30, 0,
0, 7, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 85, 0, 0, 10,
226, 0, 16, 0, 6, 0,
0, 0, 6, 0, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 6, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 35, 0,
0, 12, 242, 0, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 70, 14, 16, 0,
10, 0, 0, 0, 85, 0,
0, 10, 226, 0, 16, 0,
10, 0, 0, 0, 166, 10,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 54, 0, 0, 5,
18, 0, 16, 0, 10, 0,
0, 0, 42, 0, 16, 0,
8, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
38, 0, 0, 8, 0, 208,
0, 0, 242, 0, 16, 0,
9, 0, 0, 0, 86, 5,
16, 0, 4, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 35, 0, 0, 9,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 86, 5,
16, 0, 1, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 10, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
138, 0, 0, 15, 242, 0,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 11, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 140, 0, 0, 17,
242, 0, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 85, 0,
0, 10, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 9, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 60, 0,
0, 7, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 60, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
55, 0, 0, 9, 242, 0,
16, 0, 6, 0, 0, 0,
86, 5, 16, 0, 5, 0,
0, 0, 70, 14, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
164, 0, 0, 8, 242, 224,
33, 0, 0, 0, 0, 0,
0, 0, 0, 0, 6, 0,
16, 0, 4, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 6, 0,
0, 0, 166, 10, 16, 0,
3, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 0,
54, 0, 0, 5, 18, 0,
16, 0, 9, 0, 0, 0,
42, 0, 16, 0, 3, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 9, 0,
0, 0, 6, 9, 16, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
3, 0, 0, 0, 5, 0,
0, 0, 7, 0, 0, 0,
166, 10, 16, 0, 3, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 11, 0, 0, 0,
86, 5, 16, 0, 2, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
6, 0, 16, 0, 2, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
11, 0, 0, 0, 42, 0,
16, 0, 3, 0, 0, 0,
58, 0, 16, 0, 6, 0,
0, 0, 1, 0, 0, 7,
18, 0, 16, 0, 12, 0,
0, 0, 10, 0, 16, 0,
11, 0, 0, 0, 1, 64,
0, 0, 85, 85, 85, 85,
85, 0, 0, 10, 226, 0,
16, 0, 11, 0, 0, 0,
6, 0, 16, 0, 12, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 60, 0, 0, 7,
18, 0, 16, 0, 6, 0,
0, 0, 42, 0, 16, 0,
3, 0, 0, 0, 58, 0,
16, 0, 6, 0, 0, 0,
138, 0, 0, 12, 242, 0,
16, 0, 13, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 13, 0, 0, 0,
70, 14, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 54, 0,
0, 5, 226, 0, 16, 0,
12, 0, 0, 0, 86, 14,
16, 0, 11, 0, 0, 0,
140, 0, 0, 20, 242, 0,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 138, 0, 0, 12,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
30, 0, 0, 7, 242, 0,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 140, 0,
0, 20, 242, 0, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
85, 0, 0, 7, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 30, 0,
0, 7, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 85, 0, 0, 10,
226, 0, 16, 0, 6, 0,
0, 0, 6, 0, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 6, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 35, 0,
0, 12, 242, 0, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 70, 14, 16, 0,
10, 0, 0, 0, 85, 0,
0, 10, 226, 0, 16, 0,
10, 0, 0, 0, 246, 15,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 54, 0, 0, 5,
18, 0, 16, 0, 10, 0,
0, 0, 58, 0, 16, 0,
8, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
38, 0, 0, 8, 0, 208,
0, 0, 242, 0, 16, 0,
9, 0, 0, 0, 86, 5,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 35, 0, 0, 9,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 6, 0,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 10, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
138, 0, 0, 15, 242, 0,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 11, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 140, 0, 0, 17,
242, 0, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 85, 0,
0, 10, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 9, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 60, 0,
0, 7, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 60, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
55, 0, 0, 9, 242, 0,
16, 0, 6, 0, 0, 0,
166, 10, 16, 0, 5, 0,
0, 0, 70, 14, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
164, 0, 0, 8, 242, 224,
33, 0, 0, 0, 0, 0,
0, 0, 0, 0, 166, 10,
16, 0, 4, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 6, 0,
0, 0, 246, 15, 16, 0,
3, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 0,
54, 0, 0, 5, 18, 0,
16, 0, 9, 0, 0, 0,
58, 0, 16, 0, 3, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 9, 0,
0, 0, 6, 9, 16, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
3, 0, 0, 0, 5, 0,
0, 0, 7, 0, 0, 0,
246, 15, 16, 0, 3, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 11, 0, 0, 0,
246, 15, 16, 0, 2, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
166, 10, 16, 0, 2, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
11, 0, 0, 0, 58, 0,
16, 0, 3, 0, 0, 0,
58, 0, 16, 0, 6, 0,
0, 0, 1, 0, 0, 7,
18, 0, 16, 0, 12, 0,
0, 0, 10, 0, 16, 0,
11, 0, 0, 0, 1, 64,
0, 0, 85, 85, 85, 85,
85, 0, 0, 10, 226, 0,
16, 0, 11, 0, 0, 0,
6, 0, 16, 0, 12, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 60, 0, 0, 7,
18, 0, 16, 0, 6, 0,
0, 0, 58, 0, 16, 0,
3, 0, 0, 0, 58, 0,
16, 0, 6, 0, 0, 0,
138, 0, 0, 12, 242, 0,
16, 0, 13, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 13, 0, 0, 0,
70, 14, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 54, 0,
0, 5, 226, 0, 16, 0,
12, 0, 0, 0, 86, 14,
16, 0, 11, 0, 0, 0,
140, 0, 0, 20, 242, 0,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 138, 0, 0, 12,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
30, 0, 0, 7, 242, 0,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 140, 0,
0, 20, 242, 0, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
85, 0, 0, 7, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 30, 0,
0, 7, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 85, 0, 0, 10,
226, 0, 16, 0, 6, 0,
0, 0, 6, 0, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 6, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 35, 0,
0, 12, 242, 0, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 70, 14, 16, 0,
10, 0, 0, 0, 85, 0,
0, 10, 226, 0, 16, 0,
8, 0, 0, 0, 6, 0,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 38, 0,
0, 8, 0, 208, 0, 0,
242, 0, 16, 0, 9, 0,
0, 0, 246, 15, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
35, 0, 0, 9, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 166, 10, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
9, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 138, 0,
0, 15, 242, 0, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
10, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
140, 0, 0, 17, 242, 0,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 8, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 60, 0, 0, 7,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
60, 0, 0, 10, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 55, 0,
0, 9, 242, 0, 16, 0,
6, 0, 0, 0, 246, 15,
16, 0, 5, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 164, 0,
0, 8, 242, 224, 33, 0,
0, 0, 0, 0, 0, 0,
0, 0, 246, 15, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
35, 0, 0, 8, 18, 0,
16, 0, 0, 0, 0, 0,
26, 0, 2, 0, 1, 64,
0, 0, 4, 0, 0, 0,
1, 64, 0, 0, 1, 0,
0, 0, 34, 0, 0, 9,
18, 0, 16, 0, 0, 0,
0, 0, 10, 0, 16, 0,
0, 0, 0, 0, 26, 128,
48, 0, 0, 0, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 31, 0, 4, 3,
10, 0, 16, 0, 0, 0,
0, 0, 30, 0, 0, 7,
34, 0, 16, 0, 0, 0,
0, 0, 42, 0, 16, 0,
0, 0, 0, 0, 26, 0,
16, 0, 0, 0, 0, 0,
85, 0, 0, 10, 242, 0,
16, 0, 6, 0, 0, 0,
70, 14, 16, 0, 3, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 85, 0,
0, 10, 242, 0, 16, 0,
8, 0, 0, 0, 6, 0,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 0, 54, 0, 0, 5,
18, 0, 16, 0, 9, 0,
0, 0, 10, 0, 16, 0,
6, 0, 0, 0, 54, 0,
0, 5, 226, 0, 16, 0,
9, 0, 0, 0, 6, 9,
16, 0, 8, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 138, 0,
0, 15, 242, 0, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 11, 0, 0, 0,
13, 0, 0, 0, 15, 0,
0, 0, 6, 0, 16, 0,
7, 0, 0, 0, 38, 0,
0, 8, 0, 208, 0, 0,
242, 0, 16, 0, 11, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
35, 0, 0, 9, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 6, 0, 16, 0,
1, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
1, 0, 0, 7, 18, 0,
16, 0, 11, 0, 0, 0,
58, 0, 16, 0, 8, 0,
0, 0, 10, 0, 16, 0,
9, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
12, 0, 0, 0, 10, 0,
16, 0, 11, 0, 0, 0,
1, 64, 0, 0, 85, 85,
85, 0, 85, 0, 0, 10,
226, 0, 16, 0, 11, 0,
0, 0, 6, 0, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 13, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 60, 0,
0, 7, 18, 0, 16, 0,
8, 0, 0, 0, 58, 0,
16, 0, 8, 0, 0, 0,
10, 0, 16, 0, 9, 0,
0, 0, 138, 0, 0, 12,
242, 0, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 70, 14,
16, 0, 13, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 13, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 2, 64,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
54, 0, 0, 5, 226, 0,
16, 0, 12, 0, 0, 0,
86, 14, 16, 0, 11, 0,
0, 0, 140, 0, 0, 20,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 138, 0,
0, 12, 242, 0, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 30, 0, 0, 7,
242, 0, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 13, 0, 0, 0,
140, 0, 0, 20, 242, 0,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 85, 0, 0, 7,
242, 0, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
30, 0, 0, 7, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 85, 0,
0, 10, 226, 0, 16, 0,
8, 0, 0, 0, 6, 0,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
35, 0, 0, 12, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 70, 14,
16, 0, 10, 0, 0, 0,
59, 0, 0, 5, 242, 0,
16, 0, 10, 0, 0, 0,
54, 9, 16, 0, 6, 0,
0, 0, 85, 0, 0, 10,
226, 0, 16, 0, 11, 0,
0, 0, 86, 5, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
54, 0, 0, 5, 18, 0,
16, 0, 11, 0, 0, 0,
26, 0, 16, 0, 10, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 38, 0,
0, 8, 0, 208, 0, 0,
242, 0, 16, 0, 12, 0,
0, 0, 246, 15, 16, 0,
0, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
35, 0, 0, 9, 242, 0,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 6, 0, 16, 0,
1, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
12, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 138, 0,
0, 15, 242, 0, 16, 0,
13, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
13, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
140, 0, 0, 17, 242, 0,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 70, 14,
16, 0, 13, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 11, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 60, 0, 0, 7,
242, 0, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
60, 0, 0, 10, 242, 0,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 55, 0,
0, 9, 242, 0, 16, 0,
8, 0, 0, 0, 6, 0,
16, 0, 5, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 164, 0,
0, 8, 242, 224, 33, 0,
0, 0, 0, 0, 0, 0,
0, 0, 86, 5, 16, 0,
0, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
30, 0, 0, 10, 210, 0,
16, 0, 4, 0, 0, 0,
86, 5, 16, 0, 0, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
3, 0, 0, 0, 85, 0,
0, 10, 242, 0, 16, 0,
8, 0, 0, 0, 86, 5,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 0, 54, 0, 0, 5,
18, 0, 16, 0, 11, 0,
0, 0, 26, 0, 16, 0,
6, 0, 0, 0, 54, 0,
0, 5, 226, 0, 16, 0,
11, 0, 0, 0, 6, 9,
16, 0, 8, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 138, 0,
0, 15, 242, 0, 16, 0,
13, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 11, 0, 0, 0,
13, 0, 0, 0, 15, 0,
0, 0, 86, 5, 16, 0,
3, 0, 0, 0, 38, 0,
0, 8, 0, 208, 0, 0,
242, 0, 16, 0, 13, 0,
0, 0, 86, 5, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 13, 0, 0, 0,
35, 0, 0, 9, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 86, 5, 16, 0,
1, 0, 0, 0, 70, 14,
16, 0, 13, 0, 0, 0,
1, 0, 0, 7, 18, 0,
16, 0, 13, 0, 0, 0,
26, 0, 16, 0, 6, 0,
0, 0, 58, 0, 16, 0,
8, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
14, 0, 0, 0, 10, 0,
16, 0, 13, 0, 0, 0,
1, 64, 0, 0, 85, 85,
85, 0, 85, 0, 0, 10,
226, 0, 16, 0, 13, 0,
0, 0, 6, 0, 16, 0,
14, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 15, 0, 0, 0,
70, 14, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 60, 0,
0, 7, 18, 0, 16, 0,
8, 0, 0, 0, 26, 0,
16, 0, 6, 0, 0, 0,
58, 0, 16, 0, 8, 0,
0, 0, 138, 0, 0, 12,
242, 0, 16, 0, 15, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 70, 14,
16, 0, 15, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 15, 0,
0, 0, 70, 14, 16, 0,
15, 0, 0, 0, 2, 64,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
54, 0, 0, 5, 226, 0,
16, 0, 14, 0, 0, 0,
86, 14, 16, 0, 13, 0,
0, 0, 140, 0, 0, 20,
242, 0, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
70, 14, 16, 0, 14, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 138, 0,
0, 12, 242, 0, 16, 0,
13, 0, 0, 0, 2, 64,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
70, 14, 16, 0, 13, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 13, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 30, 0, 0, 7,
242, 0, 16, 0, 13, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 15, 0, 0, 0,
140, 0, 0, 20, 242, 0,
16, 0, 14, 0, 0, 0,
2, 64, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 14,
16, 0, 14, 0, 0, 0,
2, 64, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 85, 0, 0, 7,
242, 0, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 14, 0, 0, 0,
30, 0, 0, 7, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 85, 0,
0, 10, 226, 0, 16, 0,
8, 0, 0, 0, 6, 0,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
35, 0, 0, 12, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 70, 14,
16, 0, 12, 0, 0, 0,
85, 0, 0, 10, 226, 0,
16, 0, 12, 0, 0, 0,
166, 10, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 54, 0,
0, 5, 18, 0, 16, 0,
12, 0, 0, 0, 42, 0,
16, 0, 10, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 11, 0, 0, 0,
86, 5, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
86, 5, 16, 0, 1, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 12, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 13, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 140, 0,
0, 17, 242, 0, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
85, 0, 0, 10, 242, 0,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
11, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
60, 0, 0, 7, 242, 0,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 60, 0,
0, 10, 242, 0, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 55, 0, 0, 9,
242, 0, 16, 0, 8, 0,
0, 0, 86, 5, 16, 0,
5, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 164, 0, 0, 8,
242, 224, 33, 0, 0, 0,
0, 0, 0, 0, 0, 0,
6, 0, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 85, 0,
0, 10, 242, 0, 16, 0,
8, 0, 0, 0, 166, 10,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 0, 54, 0, 0, 5,
18, 0, 16, 0, 11, 0,
0, 0, 42, 0, 16, 0,
6, 0, 0, 0, 54, 0,
0, 5, 226, 0, 16, 0,
11, 0, 0, 0, 6, 9,
16, 0, 8, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 138, 0,
0, 15, 242, 0, 16, 0,
13, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 11, 0, 0, 0,
13, 0, 0, 0, 15, 0,
0, 0, 166, 10, 16, 0,
3, 0, 0, 0, 38, 0,
0, 8, 0, 208, 0, 0,
242, 0, 16, 0, 13, 0,
0, 0, 86, 5, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 13, 0, 0, 0,
35, 0, 0, 9, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 6, 0, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 13, 0, 0, 0,
1, 0, 0, 7, 18, 0,
16, 0, 13, 0, 0, 0,
42, 0, 16, 0, 6, 0,
0, 0, 58, 0, 16, 0,
8, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
14, 0, 0, 0, 10, 0,
16, 0, 13, 0, 0, 0,
1, 64, 0, 0, 85, 85,
85, 0, 85, 0, 0, 10,
226, 0, 16, 0, 13, 0,
0, 0, 6, 0, 16, 0,
14, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 15, 0, 0, 0,
70, 14, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 60, 0,
0, 7, 18, 0, 16, 0,
8, 0, 0, 0, 42, 0,
16, 0, 6, 0, 0, 0,
58, 0, 16, 0, 8, 0,
0, 0, 138, 0, 0, 12,
242, 0, 16, 0, 15, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 70, 14,
16, 0, 15, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 15, 0,
0, 0, 70, 14, 16, 0,
15, 0, 0, 0, 2, 64,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
54, 0, 0, 5, 226, 0,
16, 0, 14, 0, 0, 0,
86, 14, 16, 0, 13, 0,
0, 0, 140, 0, 0, 20,
242, 0, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
70, 14, 16, 0, 14, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 138, 0,
0, 12, 242, 0, 16, 0,
13, 0, 0, 0, 2, 64,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
70, 14, 16, 0, 13, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 13, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 30, 0, 0, 7,
242, 0, 16, 0, 13, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 15, 0, 0, 0,
140, 0, 0, 20, 242, 0,
16, 0, 14, 0, 0, 0,
2, 64, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 14,
16, 0, 14, 0, 0, 0,
2, 64, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 85, 0, 0, 7,
242, 0, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 14, 0, 0, 0,
30, 0, 0, 7, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 85, 0,
0, 10, 226, 0, 16, 0,
8, 0, 0, 0, 6, 0,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
35, 0, 0, 12, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 70, 14,
16, 0, 12, 0, 0, 0,
85, 0, 0, 10, 226, 0,
16, 0, 12, 0, 0, 0,
246, 15, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 54, 0,
0, 5, 18, 0, 16, 0,
12, 0, 0, 0, 58, 0,
16, 0, 10, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 11, 0, 0, 0,
86, 5, 16, 0, 2, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
6, 0, 16, 0, 2, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 12, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 13, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 140, 0,
0, 17, 242, 0, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
85, 0, 0, 10, 242, 0,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
11, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
60, 0, 0, 7, 242, 0,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 60, 0,
0, 10, 242, 0, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 55, 0, 0, 9,
242, 0, 16, 0, 8, 0,
0, 0, 166, 10, 16, 0,
5, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 164, 0, 0, 8,
242, 224, 33, 0, 0, 0,
0, 0, 0, 0, 0, 0,
166, 10, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 85, 0,
0, 10, 242, 0, 16, 0,
8, 0, 0, 0, 246, 15,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 0, 54, 0, 0, 5,
18, 0, 16, 0, 11, 0,
0, 0, 58, 0, 16, 0,
6, 0, 0, 0, 54, 0,
0, 5, 226, 0, 16, 0,
11, 0, 0, 0, 6, 9,
16, 0, 8, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 138, 0,
0, 15, 242, 0, 16, 0,
13, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 11, 0, 0, 0,
13, 0, 0, 0, 15, 0,
0, 0, 246, 15, 16, 0,
3, 0, 0, 0, 38, 0,
0, 8, 0, 208, 0, 0,
242, 0, 16, 0, 13, 0,
0, 0, 246, 15, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 13, 0, 0, 0,
35, 0, 0, 9, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 166, 10, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 13, 0, 0, 0,
1, 0, 0, 7, 18, 0,
16, 0, 13, 0, 0, 0,
58, 0, 16, 0, 6, 0,
0, 0, 58, 0, 16, 0,
8, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
14, 0, 0, 0, 10, 0,
16, 0, 13, 0, 0, 0,
1, 64, 0, 0, 85, 85,
85, 0, 85, 0, 0, 10,
226, 0, 16, 0, 13, 0,
0, 0, 6, 0, 16, 0,
14, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 15, 0, 0, 0,
70, 14, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 60, 0,
0, 7, 18, 0, 16, 0,
8, 0, 0, 0, 58, 0,
16, 0, 6, 0, 0, 0,
58, 0, 16, 0, 8, 0,
0, 0, 138, 0, 0, 12,
242, 0, 16, 0, 15, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 70, 14,
16, 0, 15, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 15, 0,
0, 0, 70, 14, 16, 0,
15, 0, 0, 0, 2, 64,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
54, 0, 0, 5, 226, 0,
16, 0, 14, 0, 0, 0,
86, 14, 16, 0, 13, 0,
0, 0, 140, 0, 0, 20,
242, 0, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
70, 14, 16, 0, 14, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 138, 0,
0, 12, 242, 0, 16, 0,
13, 0, 0, 0, 2, 64,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
70, 14, 16, 0, 13, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 13, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 30, 0, 0, 7,
242, 0, 16, 0, 13, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 15, 0, 0, 0,
140, 0, 0, 20, 242, 0,
16, 0, 14, 0, 0, 0,
2, 64, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 14,
16, 0, 14, 0, 0, 0,
2, 64, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 85, 0, 0, 7,
242, 0, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 14, 0, 0, 0,
30, 0, 0, 7, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 85, 0,
0, 10, 226, 0, 16, 0,
8, 0, 0, 0, 6, 0,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
35, 0, 0, 12, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 70, 14,
16, 0, 12, 0, 0, 0,
85, 0, 0, 10, 226, 0,
16, 0, 10, 0, 0, 0,
6, 0, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
38, 0, 0, 8, 0, 208,
0, 0, 242, 0, 16, 0,
11, 0, 0, 0, 246, 15,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 35, 0, 0, 9,
242, 0, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 166, 10,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 11, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
138, 0, 0, 15, 242, 0,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 12, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 140, 0, 0, 17,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 85, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 10, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 60, 0,
0, 7, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 60, 0, 0, 10,
242, 0, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
55, 0, 0, 9, 242, 0,
16, 0, 8, 0, 0, 0,
246, 15, 16, 0, 5, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
164, 0, 0, 8, 242, 224,
33, 0, 0, 0, 0, 0,
0, 0, 0, 0, 246, 15,
16, 0, 4, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 35, 0, 0, 8,
18, 0, 16, 0, 0, 0,
0, 0, 26, 0, 2, 0,
1, 64, 0, 0, 4, 0,
0, 0, 1, 64, 0, 0,
2, 0, 0, 0, 34, 0,
0, 9, 18, 0, 16, 0,
0, 0, 0, 0, 10, 0,
16, 0, 0, 0, 0, 0,
26, 128, 48, 0, 0, 0,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 59, 0,
0, 5, 66, 0, 16, 0,
1, 0, 0, 0, 10, 0,
16, 0, 0, 0, 0, 0,
31, 0, 4, 3, 10, 0,
16, 0, 0, 0, 0, 0,
30, 0, 0, 7, 34, 0,
16, 0, 0, 0, 0, 0,
42, 0, 16, 0, 0, 0,
0, 0, 26, 0, 16, 0,
0, 0, 0, 0, 85, 0,
0, 10, 242, 0, 16, 0,
3, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 18, 0, 0, 1,
54, 0, 0, 5, 18, 0,
16, 0, 3, 0, 0, 0,
10, 0, 16, 0, 9, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 3, 0,
0, 0, 86, 14, 16, 0,
6, 0, 0, 0, 21, 0,
0, 1, 31, 0, 0, 3,
42, 0, 16, 0, 1, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 6, 0,
0, 0, 6, 0, 16, 0,
3, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 0,
54, 0, 0, 5, 18, 0,
16, 0, 8, 0, 0, 0,
10, 0, 16, 0, 3, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 8, 0,
0, 0, 6, 9, 16, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
3, 0, 0, 0, 5, 0,
0, 0, 7, 0, 0, 0,
6, 0, 16, 0, 3, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 10, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
6, 0, 16, 0, 1, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
10, 0, 0, 0, 10, 0,
16, 0, 3, 0, 0, 0,
58, 0, 16, 0, 6, 0,
0, 0, 1, 0, 0, 7,
18, 0, 16, 0, 11, 0,
0, 0, 10, 0, 16, 0,
10, 0, 0, 0, 1, 64,
0, 0, 85, 85, 85, 0,
85, 0, 0, 10, 226, 0,
16, 0, 10, 0, 0, 0,
6, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 60, 0, 0, 7,
18, 0, 16, 0, 6, 0,
0, 0, 10, 0, 16, 0,
3, 0, 0, 0, 58, 0,
16, 0, 6, 0, 0, 0,
138, 0, 0, 12, 242, 0,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 54, 0,
0, 5, 226, 0, 16, 0,
11, 0, 0, 0, 86, 14,
16, 0, 10, 0, 0, 0,
140, 0, 0, 20, 242, 0,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 138, 0, 0, 12,
242, 0, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
30, 0, 0, 7, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 140, 0,
0, 20, 242, 0, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
85, 0, 0, 7, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 30, 0,
0, 7, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 85, 0, 0, 10,
226, 0, 16, 0, 6, 0,
0, 0, 6, 0, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 6, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 35, 0,
0, 12, 242, 0, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 70, 14, 16, 0,
9, 0, 0, 0, 59, 0,
0, 5, 18, 0, 16, 0,
9, 0, 0, 0, 10, 0,
16, 0, 3, 0, 0, 0,
85, 0, 0, 10, 226, 0,
16, 0, 9, 0, 0, 0,
6, 0, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
38, 0, 0, 8, 0, 208,
0, 0, 242, 0, 16, 0,
8, 0, 0, 0, 246, 15,
16, 0, 0, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 35, 0, 0, 9,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 6, 0,
16, 0, 1, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 9, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
138, 0, 0, 15, 242, 0,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 10, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 140, 0, 0, 17,
242, 0, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 85, 0,
0, 10, 242, 0, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 8, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 60, 0,
0, 7, 242, 0, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 60, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
55, 0, 0, 9, 242, 0,
16, 0, 6, 0, 0, 0,
6, 0, 16, 0, 5, 0,
0, 0, 70, 14, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
164, 0, 0, 8, 242, 224,
33, 0, 0, 0, 0, 0,
0, 0, 0, 0, 86, 5,
16, 0, 0, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 30, 0, 0, 10,
210, 0, 16, 0, 4, 0,
0, 0, 86, 5, 16, 0,
0, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 3, 0, 0, 0,
85, 0, 0, 10, 242, 0,
16, 0, 6, 0, 0, 0,
86, 5, 16, 0, 3, 0,
0, 0, 2, 64, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 0, 54, 0,
0, 5, 18, 0, 16, 0,
8, 0, 0, 0, 26, 0,
16, 0, 3, 0, 0, 0,
54, 0, 0, 5, 226, 0,
16, 0, 8, 0, 0, 0,
6, 9, 16, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
138, 0, 0, 15, 242, 0,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 3, 0,
0, 0, 5, 0, 0, 0,
7, 0, 0, 0, 86, 5,
16, 0, 3, 0, 0, 0,
38, 0, 0, 8, 0, 208,
0, 0, 242, 0, 16, 0,
10, 0, 0, 0, 86, 5,
16, 0, 4, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 35, 0, 0, 9,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 86, 5,
16, 0, 1, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 1, 0, 0, 7,
18, 0, 16, 0, 10, 0,
0, 0, 26, 0, 16, 0,
3, 0, 0, 0, 58, 0,
16, 0, 6, 0, 0, 0,
1, 0, 0, 7, 18, 0,
16, 0, 11, 0, 0, 0,
10, 0, 16, 0, 10, 0,
0, 0, 1, 64, 0, 0,
85, 85, 85, 0, 85, 0,
0, 10, 226, 0, 16, 0,
10, 0, 0, 0, 6, 0,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
60, 0, 0, 7, 18, 0,
16, 0, 6, 0, 0, 0,
26, 0, 16, 0, 3, 0,
0, 0, 58, 0, 16, 0,
6, 0, 0, 0, 138, 0,
0, 12, 242, 0, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 11, 0,
0, 0, 86, 14, 16, 0,
10, 0, 0, 0, 140, 0,
0, 20, 242, 0, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
138, 0, 0, 12, 242, 0,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 30, 0,
0, 7, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 140, 0, 0, 20,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 85, 0,
0, 7, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 30, 0, 0, 7,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
85, 0, 0, 10, 226, 0,
16, 0, 6, 0, 0, 0,
6, 0, 16, 0, 6, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 35, 0, 0, 12,
242, 0, 16, 0, 6, 0,
0, 0, 70, 14, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
70, 14, 16, 0, 9, 0,
0, 0, 59, 0, 0, 5,
18, 0, 16, 0, 9, 0,
0, 0, 26, 0, 16, 0,
3, 0, 0, 0, 85, 0,
0, 10, 226, 0, 16, 0,
9, 0, 0, 0, 6, 0,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 38, 0,
0, 8, 0, 208, 0, 0,
242, 0, 16, 0, 8, 0,
0, 0, 86, 5, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
35, 0, 0, 9, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 86, 5, 16, 0,
1, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
9, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 138, 0,
0, 15, 242, 0, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
10, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
140, 0, 0, 17, 242, 0,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 8, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 60, 0, 0, 7,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
60, 0, 0, 10, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 55, 0,
0, 9, 242, 0, 16, 0,
6, 0, 0, 0, 86, 5,
16, 0, 5, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 164, 0,
0, 8, 242, 224, 33, 0,
0, 0, 0, 0, 0, 0,
0, 0, 6, 0, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
85, 0, 0, 10, 242, 0,
16, 0, 6, 0, 0, 0,
166, 10, 16, 0, 3, 0,
0, 0, 2, 64, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 0, 54, 0,
0, 5, 18, 0, 16, 0,
8, 0, 0, 0, 42, 0,
16, 0, 3, 0, 0, 0,
54, 0, 0, 5, 226, 0,
16, 0, 8, 0, 0, 0,
6, 9, 16, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
138, 0, 0, 15, 242, 0,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 3, 0,
0, 0, 5, 0, 0, 0,
7, 0, 0, 0, 166, 10,
16, 0, 3, 0, 0, 0,
38, 0, 0, 8, 0, 208,
0, 0, 242, 0, 16, 0,
10, 0, 0, 0, 86, 5,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 35, 0, 0, 9,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 6, 0,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 1, 0, 0, 7,
18, 0, 16, 0, 10, 0,
0, 0, 42, 0, 16, 0,
3, 0, 0, 0, 58, 0,
16, 0, 6, 0, 0, 0,
1, 0, 0, 7, 18, 0,
16, 0, 11, 0, 0, 0,
10, 0, 16, 0, 10, 0,
0, 0, 1, 64, 0, 0,
85, 85, 85, 0, 85, 0,
0, 10, 226, 0, 16, 0,
10, 0, 0, 0, 6, 0,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
60, 0, 0, 7, 18, 0,
16, 0, 6, 0, 0, 0,
42, 0, 16, 0, 3, 0,
0, 0, 58, 0, 16, 0,
6, 0, 0, 0, 138, 0,
0, 12, 242, 0, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 11, 0,
0, 0, 86, 14, 16, 0,
10, 0, 0, 0, 140, 0,
0, 20, 242, 0, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
138, 0, 0, 12, 242, 0,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 30, 0,
0, 7, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 140, 0, 0, 20,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 85, 0,
0, 7, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 30, 0, 0, 7,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
85, 0, 0, 10, 226, 0,
16, 0, 6, 0, 0, 0,
6, 0, 16, 0, 6, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 35, 0, 0, 12,
242, 0, 16, 0, 6, 0,
0, 0, 70, 14, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
70, 14, 16, 0, 9, 0,
0, 0, 59, 0, 0, 5,
18, 0, 16, 0, 9, 0,
0, 0, 42, 0, 16, 0,
3, 0, 0, 0, 85, 0,
0, 10, 226, 0, 16, 0,
9, 0, 0, 0, 6, 0,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 38, 0,
0, 8, 0, 208, 0, 0,
242, 0, 16, 0, 8, 0,
0, 0, 86, 5, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
35, 0, 0, 9, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 6, 0, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
9, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 138, 0,
0, 15, 242, 0, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
10, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
140, 0, 0, 17, 242, 0,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 8, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 60, 0, 0, 7,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
60, 0, 0, 10, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 55, 0,
0, 9, 242, 0, 16, 0,
6, 0, 0, 0, 166, 10,
16, 0, 5, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 164, 0,
0, 8, 242, 224, 33, 0,
0, 0, 0, 0, 0, 0,
0, 0, 166, 10, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
85, 0, 0, 10, 242, 0,
16, 0, 6, 0, 0, 0,
246, 15, 16, 0, 3, 0,
0, 0, 2, 64, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 0, 54, 0,
0, 5, 18, 0, 16, 0,
8, 0, 0, 0, 58, 0,
16, 0, 3, 0, 0, 0,
54, 0, 0, 5, 226, 0,
16, 0, 8, 0, 0, 0,
6, 9, 16, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
138, 0, 0, 15, 242, 0,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 3, 0,
0, 0, 5, 0, 0, 0,
7, 0, 0, 0, 246, 15,
16, 0, 3, 0, 0, 0,
38, 0, 0, 8, 0, 208,
0, 0, 242, 0, 16, 0,
10, 0, 0, 0, 246, 15,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 35, 0, 0, 9,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 166, 10,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 1, 0, 0, 7,
18, 0, 16, 0, 10, 0,
0, 0, 58, 0, 16, 0,
3, 0, 0, 0, 58, 0,
16, 0, 6, 0, 0, 0,
1, 0, 0, 7, 18, 0,
16, 0, 11, 0, 0, 0,
10, 0, 16, 0, 10, 0,
0, 0, 1, 64, 0, 0,
85, 85, 85, 0, 85, 0,
0, 10, 226, 0, 16, 0,
10, 0, 0, 0, 6, 0,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
60, 0, 0, 7, 18, 0,
16, 0, 6, 0, 0, 0,
58, 0, 16, 0, 3, 0,
0, 0, 58, 0, 16, 0,
6, 0, 0, 0, 138, 0,
0, 12, 242, 0, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 11, 0,
0, 0, 86, 14, 16, 0,
10, 0, 0, 0, 140, 0,
0, 20, 242, 0, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
138, 0, 0, 12, 242, 0,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 30, 0,
0, 7, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 140, 0, 0, 20,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 85, 0,
0, 7, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 30, 0, 0, 7,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
85, 0, 0, 10, 226, 0,
16, 0, 6, 0, 0, 0,
6, 0, 16, 0, 6, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
6, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 35, 0, 0, 12,
242, 0, 16, 0, 6, 0,
0, 0, 70, 14, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
70, 14, 16, 0, 9, 0,
0, 0, 59, 0, 0, 5,
18, 0, 16, 0, 9, 0,
0, 0, 58, 0, 16, 0,
3, 0, 0, 0, 85, 0,
0, 10, 226, 0, 16, 0,
9, 0, 0, 0, 6, 0,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 38, 0,
0, 8, 0, 208, 0, 0,
242, 0, 16, 0, 8, 0,
0, 0, 246, 15, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
35, 0, 0, 9, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 166, 10, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
9, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 138, 0,
0, 15, 242, 0, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
10, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
140, 0, 0, 17, 242, 0,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 8, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 60, 0, 0, 7,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
60, 0, 0, 10, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 55, 0,
0, 9, 242, 0, 16, 0,
6, 0, 0, 0, 246, 15,
16, 0, 5, 0, 0, 0,
70, 14, 16, 0, 6, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 164, 0,
0, 8, 242, 224, 33, 0,
0, 0, 0, 0, 0, 0,
0, 0, 246, 15, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
21, 0, 0, 1, 18, 0,
0, 1, 54, 0, 0, 5,
18, 0, 16, 0, 3, 0,
0, 0, 10, 0, 16, 0,
7, 0, 0, 0, 54, 0,
0, 5, 66, 0, 16, 0,
1, 0, 0, 0, 1, 64,
0, 0, 255, 255, 255, 255,
21, 0, 0, 1, 31, 0,
0, 3, 42, 0, 16, 0,
1, 0, 0, 0, 35, 0,
0, 8, 18, 0, 16, 0,
0, 0, 0, 0, 26, 0,
2, 0, 1, 64, 0, 0,
4, 0, 0, 0, 1, 64,
0, 0, 3, 0, 0, 0,
34, 0, 0, 9, 18, 0,
16, 0, 0, 0, 0, 0,
10, 0, 16, 0, 0, 0,
0, 0, 26, 128, 48, 0,
0, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
31, 0, 4, 3, 10, 0,
16, 0, 0, 0, 0, 0,
30, 0, 0, 7, 18, 0,
16, 0, 0, 0, 0, 0,
42, 0, 16, 0, 0, 0,
0, 0, 26, 0, 16, 0,
0, 0, 0, 0, 85, 0,
0, 10, 242, 0, 16, 0,
6, 0, 0, 0, 54, 9,
16, 0, 3, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 7, 0,
0, 0, 86, 5, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 0,
54, 0, 0, 5, 18, 0,
16, 0, 8, 0, 0, 0,
26, 0, 16, 0, 6, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 8, 0,
0, 0, 6, 9, 16, 0,
7, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 64,
0, 0, 9, 0, 0, 0,
11, 0, 0, 0, 13, 0,
0, 0, 15, 0, 0, 0,
6, 0, 16, 0, 3, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 10, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
6, 0, 16, 0, 1, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
10, 0, 0, 0, 58, 0,
16, 0, 7, 0, 0, 0,
10, 0, 16, 0, 8, 0,
0, 0, 1, 0, 0, 7,
18, 0, 16, 0, 11, 0,
0, 0, 10, 0, 16, 0,
10, 0, 0, 0, 1, 64,
0, 0, 85, 85, 85, 0,
85, 0, 0, 10, 226, 0,
16, 0, 10, 0, 0, 0,
6, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 60, 0, 0, 7,
18, 0, 16, 0, 7, 0,
0, 0, 58, 0, 16, 0,
7, 0, 0, 0, 10, 0,
16, 0, 8, 0, 0, 0,
138, 0, 0, 12, 242, 0,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 12, 0, 0, 0,
70, 14, 16, 0, 12, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 54, 0,
0, 5, 226, 0, 16, 0,
11, 0, 0, 0, 86, 14,
16, 0, 10, 0, 0, 0,
140, 0, 0, 20, 242, 0,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 138, 0, 0, 12,
242, 0, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
30, 0, 0, 7, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 140, 0,
0, 20, 242, 0, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
85, 0, 0, 7, 242, 0,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 30, 0,
0, 7, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 9, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 85, 0, 0, 10,
226, 0, 16, 0, 7, 0,
0, 0, 6, 0, 16, 0,
7, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 7, 0, 0, 0,
70, 14, 16, 0, 7, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 35, 0,
0, 12, 242, 0, 16, 0,
7, 0, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 70, 14, 16, 0,
9, 0, 0, 0, 59, 0,
0, 5, 242, 0, 16, 0,
9, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
85, 0, 0, 10, 226, 0,
16, 0, 10, 0, 0, 0,
86, 5, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 54, 0,
0, 5, 18, 0, 16, 0,
10, 0, 0, 0, 26, 0,
16, 0, 9, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 8, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
6, 0, 16, 0, 1, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 10, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 11, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 140, 0,
0, 17, 242, 0, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
85, 0, 0, 10, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
8, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
60, 0, 0, 7, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 60, 0,
0, 10, 242, 0, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 55, 0, 0, 9,
242, 0, 16, 0, 7, 0,
0, 0, 6, 0, 16, 0,
5, 0, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 164, 0, 0, 8,
242, 224, 33, 0, 0, 0,
0, 0, 0, 0, 0, 0,
6, 0, 16, 0, 0, 0,
0, 0, 70, 14, 16, 0,
7, 0, 0, 0, 30, 0,
0, 10, 226, 0, 16, 0,
0, 0, 0, 0, 6, 0,
16, 0, 0, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
2, 0, 0, 0, 3, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 7, 0,
0, 0, 166, 10, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 0,
54, 0, 0, 5, 18, 0,
16, 0, 8, 0, 0, 0,
42, 0, 16, 0, 6, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 8, 0,
0, 0, 6, 9, 16, 0,
7, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 64,
0, 0, 9, 0, 0, 0,
11, 0, 0, 0, 13, 0,
0, 0, 15, 0, 0, 0,
86, 5, 16, 0, 3, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 11, 0, 0, 0,
86, 5, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
86, 5, 16, 0, 1, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
11, 0, 0, 0, 42, 0,
16, 0, 6, 0, 0, 0,
58, 0, 16, 0, 7, 0,
0, 0, 1, 0, 0, 7,
18, 0, 16, 0, 12, 0,
0, 0, 10, 0, 16, 0,
11, 0, 0, 0, 1, 64,
0, 0, 85, 85, 85, 0,
85, 0, 0, 10, 226, 0,
16, 0, 11, 0, 0, 0,
6, 0, 16, 0, 12, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 60, 0, 0, 7,
18, 0, 16, 0, 7, 0,
0, 0, 42, 0, 16, 0,
6, 0, 0, 0, 58, 0,
16, 0, 7, 0, 0, 0,
138, 0, 0, 12, 242, 0,
16, 0, 13, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 13, 0, 0, 0,
70, 14, 16, 0, 13, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 54, 0,
0, 5, 226, 0, 16, 0,
12, 0, 0, 0, 86, 14,
16, 0, 11, 0, 0, 0,
140, 0, 0, 20, 242, 0,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 14,
16, 0, 12, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 138, 0, 0, 12,
242, 0, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 70, 14,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
30, 0, 0, 7, 242, 0,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 70, 14, 16, 0,
13, 0, 0, 0, 140, 0,
0, 20, 242, 0, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
85, 0, 0, 7, 242, 0,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 10, 0,
0, 0, 70, 14, 16, 0,
12, 0, 0, 0, 30, 0,
0, 7, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 85, 0, 0, 10,
226, 0, 16, 0, 7, 0,
0, 0, 6, 0, 16, 0,
7, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 7, 0, 0, 0,
70, 14, 16, 0, 7, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 35, 0,
0, 12, 242, 0, 16, 0,
7, 0, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 70, 14, 16, 0,
10, 0, 0, 0, 85, 0,
0, 10, 226, 0, 16, 0,
10, 0, 0, 0, 166, 10,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 54, 0, 0, 5,
18, 0, 16, 0, 10, 0,
0, 0, 42, 0, 16, 0,
9, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
10, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
38, 0, 0, 8, 0, 208,
0, 0, 242, 0, 16, 0,
4, 0, 0, 0, 86, 5,
16, 0, 4, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 35, 0, 0, 9,
242, 0, 16, 0, 1, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 86, 5,
16, 0, 1, 0, 0, 0,
70, 14, 16, 0, 4, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
1, 0, 0, 0, 2, 64,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 4, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 4, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 2, 64,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
138, 0, 0, 15, 242, 0,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 70, 14,
16, 0, 1, 0, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 8, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 140, 0, 0, 17,
242, 0, 16, 0, 4, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 85, 0,
0, 10, 242, 0, 16, 0,
1, 0, 0, 0, 70, 14,
16, 0, 1, 0, 0, 0,
2, 64, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 1, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 1, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 60, 0,
0, 7, 242, 0, 16, 0,
1, 0, 0, 0, 70, 14,
16, 0, 1, 0, 0, 0,
70, 14, 16, 0, 4, 0,
0, 0, 60, 0, 0, 10,
242, 0, 16, 0, 1, 0,
0, 0, 70, 14, 16, 0,
1, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
55, 0, 0, 9, 242, 0,
16, 0, 1, 0, 0, 0,
86, 5, 16, 0, 5, 0,
0, 0, 70, 14, 16, 0,
7, 0, 0, 0, 70, 14,
16, 0, 1, 0, 0, 0,
164, 0, 0, 8, 242, 224,
33, 0, 0, 0, 0, 0,
0, 0, 0, 0, 86, 5,
16, 0, 0, 0, 0, 0,
70, 14, 16, 0, 1, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 1, 0,
0, 0, 246, 15, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 0,
54, 0, 0, 5, 18, 0,
16, 0, 4, 0, 0, 0,
58, 0, 16, 0, 6, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 4, 0,
0, 0, 6, 9, 16, 0,
1, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
7, 0, 0, 0, 70, 14,
16, 0, 4, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 64,
0, 0, 9, 0, 0, 0,
11, 0, 0, 0, 13, 0,
0, 0, 15, 0, 0, 0,
166, 10, 16, 0, 3, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 8, 0, 0, 0,
86, 5, 16, 0, 2, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
7, 0, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
6, 0, 16, 0, 2, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 1, 0,
0, 7, 18, 0, 16, 0,
8, 0, 0, 0, 58, 0,
16, 0, 6, 0, 0, 0,
58, 0, 16, 0, 1, 0,
0, 0, 1, 0, 0, 7,
18, 0, 16, 0, 10, 0,
0, 0, 10, 0, 16, 0,
8, 0, 0, 0, 1, 64,
0, 0, 85, 85, 85, 0,
85, 0, 0, 10, 226, 0,
16, 0, 8, 0, 0, 0,
6, 0, 16, 0, 10, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 60, 0, 0, 7,
18, 0, 16, 0, 1, 0,
0, 0, 58, 0, 16, 0,
1, 0, 0, 0, 58, 0,
16, 0, 6, 0, 0, 0,
138, 0, 0, 12, 242, 0,
16, 0, 11, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 11, 0, 0, 0,
70, 14, 16, 0, 11, 0,
0, 0, 2, 64, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 54, 0,
0, 5, 226, 0, 16, 0,
10, 0, 0, 0, 86, 14,
16, 0, 8, 0, 0, 0,
140, 0, 0, 20, 242, 0,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 14,
16, 0, 10, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 138, 0, 0, 12,
242, 0, 16, 0, 8, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 7, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
30, 0, 0, 7, 242, 0,
16, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
11, 0, 0, 0, 140, 0,
0, 20, 242, 0, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 2, 64,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
85, 0, 0, 7, 242, 0,
16, 0, 7, 0, 0, 0,
70, 14, 16, 0, 7, 0,
0, 0, 70, 14, 16, 0,
10, 0, 0, 0, 30, 0,
0, 7, 242, 0, 16, 0,
7, 0, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 85, 0, 0, 10,
226, 0, 16, 0, 1, 0,
0, 0, 6, 0, 16, 0,
1, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 1, 0, 0, 0,
70, 14, 16, 0, 1, 0,
0, 0, 2, 64, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 35, 0,
0, 12, 242, 0, 16, 0,
1, 0, 0, 0, 70, 14,
16, 0, 1, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 70, 14, 16, 0,
7, 0, 0, 0, 85, 0,
0, 10, 226, 0, 16, 0,
7, 0, 0, 0, 246, 15,
16, 0, 9, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 54, 0, 0, 5,
18, 0, 16, 0, 7, 0,
0, 0, 58, 0, 16, 0,
9, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
7, 0, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
38, 0, 0, 8, 0, 208,
0, 0, 242, 0, 16, 0,
4, 0, 0, 0, 86, 5,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 4, 0,
0, 0, 35, 0, 0, 9,
242, 0, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
7, 0, 0, 0, 6, 0,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 4, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 7, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 2, 64,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 7, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 7, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 41, 0, 0, 10,
242, 0, 16, 0, 7, 0,
0, 0, 70, 14, 16, 0,
7, 0, 0, 0, 2, 64,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
138, 0, 0, 15, 242, 0,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 70, 14,
16, 0, 4, 0, 0, 0,
78, 0, 0, 11, 242, 0,
16, 0, 8, 0, 0, 0,
0, 208, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 140, 0, 0, 17,
242, 0, 16, 0, 7, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
7, 0, 0, 0, 85, 0,
0, 10, 242, 0, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 4, 0, 0, 0,
2, 64, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 4, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 4, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 60, 0,
0, 7, 242, 0, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 4, 0, 0, 0,
70, 14, 16, 0, 7, 0,
0, 0, 60, 0, 0, 10,
242, 0, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
55, 0, 0, 9, 242, 0,
16, 0, 1, 0, 0, 0,
166, 10, 16, 0, 5, 0,
0, 0, 70, 14, 16, 0,
1, 0, 0, 0, 70, 14,
16, 0, 4, 0, 0, 0,
164, 0, 0, 8, 242, 224,
33, 0, 0, 0, 0, 0,
0, 0, 0, 0, 166, 10,
16, 0, 0, 0, 0, 0,
70, 14, 16, 0, 1, 0,
0, 0, 85, 0, 0, 10,
242, 0, 16, 0, 1, 0,
0, 0, 6, 0, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 0,
54, 0, 0, 5, 226, 0,
16, 0, 6, 0, 0, 0,
6, 9, 16, 0, 1, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 4, 0,
0, 0, 70, 14, 16, 0,
6, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
138, 0, 0, 15, 242, 0,
16, 0, 3, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 2, 64, 0, 0,
9, 0, 0, 0, 11, 0,
0, 0, 13, 0, 0, 0,
15, 0, 0, 0, 246, 15,
16, 0, 3, 0, 0, 0,
38, 0, 0, 8, 0, 208,
0, 0, 242, 0, 16, 0,
3, 0, 0, 0, 246, 15,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 3, 0,
0, 0, 35, 0, 0, 9,
242, 0, 16, 0, 3, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 166, 10,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 3, 0,
0, 0, 1, 0, 0, 7,
18, 0, 16, 0, 4, 0,
0, 0, 10, 0, 16, 0,
6, 0, 0, 0, 58, 0,
16, 0, 1, 0, 0, 0,
1, 0, 0, 7, 18, 0,
16, 0, 7, 0, 0, 0,
10, 0, 16, 0, 4, 0,
0, 0, 1, 64, 0, 0,
85, 85, 85, 0, 85, 0,
0, 10, 226, 0, 16, 0,
4, 0, 0, 0, 6, 0,
16, 0, 7, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 6, 0,
0, 0, 1, 0, 0, 10,
242, 0, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
60, 0, 0, 7, 18, 0,
16, 0, 1, 0, 0, 0,
58, 0, 16, 0, 1, 0,
0, 0, 10, 0, 16, 0,
6, 0, 0, 0, 138, 0,
0, 12, 242, 0, 16, 0,
8, 0, 0, 0, 2, 64,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 70, 14, 16, 0,
3, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
8, 0, 0, 0, 70, 14,
16, 0, 8, 0, 0, 0,
2, 64, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 54, 0, 0, 5,
226, 0, 16, 0, 7, 0,
0, 0, 86, 14, 16, 0,
4, 0, 0, 0, 140, 0,
0, 20, 242, 0, 16, 0,
4, 0, 0, 0, 2, 64,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 70, 14, 16, 0,
7, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
138, 0, 0, 12, 242, 0,
16, 0, 4, 0, 0, 0,
2, 64, 0, 0, 9, 0,
0, 0, 9, 0, 0, 0,
9, 0, 0, 0, 9, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 3, 0, 0, 0,
41, 0, 0, 10, 242, 0,
16, 0, 4, 0, 0, 0,
70, 14, 16, 0, 4, 0,
0, 0, 2, 64, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 30, 0,
0, 7, 242, 0, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 4, 0, 0, 0,
70, 14, 16, 0, 8, 0,
0, 0, 140, 0, 0, 20,
242, 0, 16, 0, 7, 0,
0, 0, 2, 64, 0, 0,
2, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0,
2, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
70, 14, 16, 0, 7, 0,
0, 0, 2, 64, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 85, 0,
0, 7, 242, 0, 16, 0,
3, 0, 0, 0, 70, 14,
16, 0, 3, 0, 0, 0,
70, 14, 16, 0, 7, 0,
0, 0, 30, 0, 0, 7,
242, 0, 16, 0, 3, 0,
0, 0, 70, 14, 16, 0,
3, 0, 0, 0, 70, 14,
16, 0, 4, 0, 0, 0,
85, 0, 0, 10, 226, 0,
16, 0, 1, 0, 0, 0,
6, 0, 16, 0, 1, 0,
0, 0, 2, 64, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 4, 0, 0, 0,
6, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
1, 0, 0, 0, 70, 14,
16, 0, 1, 0, 0, 0,
2, 64, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 35, 0, 0, 12,
242, 0, 16, 0, 1, 0,
0, 0, 70, 14, 16, 0,
1, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 0, 0, 0, 255,
70, 14, 16, 0, 3, 0,
0, 0, 85, 0, 0, 10,
226, 0, 16, 0, 9, 0,
0, 0, 6, 0, 16, 0,
9, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 4, 0,
0, 0, 6, 0, 0, 0,
1, 0, 0, 10, 242, 0,
16, 0, 3, 0, 0, 0,
70, 14, 16, 0, 9, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 6, 0, 0, 0,
2, 64, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 38, 0, 0, 8,
0, 208, 0, 0, 242, 0,
16, 0, 4, 0, 0, 0,
246, 15, 16, 0, 2, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 35, 0,
0, 9, 242, 0, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 3, 0, 0, 0,
166, 10, 16, 0, 2, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 1, 0,
0, 10, 242, 0, 16, 0,
3, 0, 0, 0, 70, 14,
16, 0, 2, 0, 0, 0,
2, 64, 0, 0, 255, 3,
0, 0, 255, 3, 0, 0,
255, 3, 0, 0, 255, 3,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 3, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 3, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 41, 0,
0, 10, 242, 0, 16, 0,
3, 0, 0, 0, 70, 14,
16, 0, 3, 0, 0, 0,
2, 64, 0, 0, 16, 0,
0, 0, 16, 0, 0, 0,
16, 0, 0, 0, 16, 0,
0, 0, 138, 0, 0, 15,
242, 0, 16, 0, 4, 0,
0, 0, 2, 64, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 2, 64,
0, 0, 10, 0, 0, 0,
10, 0, 0, 0, 10, 0,
0, 0, 10, 0, 0, 0,
70, 14, 16, 0, 2, 0,
0, 0, 78, 0, 0, 11,
242, 0, 16, 0, 4, 0,
0, 0, 0, 208, 0, 0,
70, 14, 16, 0, 4, 0,
0, 0, 2, 64, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 140, 0,
0, 17, 242, 0, 16, 0,
3, 0, 0, 0, 2, 64,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
2, 64, 0, 0, 8, 0,
0, 0, 8, 0, 0, 0,
8, 0, 0, 0, 8, 0,
0, 0, 70, 14, 16, 0,
4, 0, 0, 0, 70, 14,
16, 0, 3, 0, 0, 0,
85, 0, 0, 10, 242, 0,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 2, 0,
0, 0, 2, 64, 0, 0,
20, 0, 0, 0, 20, 0,
0, 0, 20, 0, 0, 0,
20, 0, 0, 0, 78, 0,
0, 11, 242, 0, 16, 0,
2, 0, 0, 0, 0, 208,
0, 0, 70, 14, 16, 0,
2, 0, 0, 0, 2, 64,
0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0,
60, 0, 0, 7, 242, 0,
16, 0, 2, 0, 0, 0,
70, 14, 16, 0, 2, 0,
0, 0, 70, 14, 16, 0,
3, 0, 0, 0, 60, 0,
0, 10, 242, 0, 16, 0,
2, 0, 0, 0, 70, 14,
16, 0, 2, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 255, 0, 0, 0, 255,
0, 0, 0, 255, 0, 0,
0, 255, 55, 0, 0, 9,
242, 0, 16, 0, 1, 0,
0, 0, 246, 15, 16, 0,
5, 0, 0, 0, 70, 14,
16, 0, 1, 0, 0, 0,
70, 14, 16, 0, 2, 0,
0, 0, 164, 0, 0, 8,
242, 224, 33, 0, 0, 0,
0, 0, 0, 0, 0, 0,
246, 15, 16, 0, 0, 0,
0, 0, 70, 14, 16, 0,
1, 0, 0, 0, 21, 0,
0, 1, 21, 0, 0, 1,
62, 0, 0, 1, 83, 84,
65, 84, 148, 0, 0, 0,
142, 3, 0, 0, 16, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 231, 0, 0, 0,
141, 1, 0, 0, 8, 0,
0, 0, 12, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 78, 0,
0, 0, 18, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
16, 0, 0, 0
};
| 35.773194 | 95 | 0.282278 |
ecacfdfeea2f658d6e9f02c8347313f3b32a4d46 | 88,757 | h | C | resources/abrev.h | shakfu/minima | 803c79fc56b66fdb13faf8a14a9bee34dafa58d4 | [
"Unlicense"
] | null | null | null | resources/abrev.h | shakfu/minima | 803c79fc56b66fdb13faf8a14a9bee34dafa58d4 | [
"Unlicense"
] | null | null | null | resources/abrev.h | shakfu/minima | 803c79fc56b66fdb13faf8a14a9bee34dafa58d4 | [
"Unlicense"
] | null | null | null |
typedef signed char ma_int8;
typedef unsigned char ma_uint8;
typedef signed short ma_int16;
typedef unsigned short ma_uint16;
typedef signed int ma_int32;
typedef unsigned int ma_uint32;
typedef signed long long ma_int64;
typedef unsigned long long ma_uint64;
typedef ma_uint64 ma_uintptr;
typedef ma_uint8 ma_bool8;
typedef ma_uint32 ma_bool32;
typedef void *ma_handle;
typedef void *ma_ptr;
typedef void (*ma_proc)(void);
typedef struct ma_context ma_context;
typedef struct ma_device ma_device;
typedef ma_uint8 ma_channel;
typedef int ma_result;
typedef enum { ma_stream_format_pcm = 0 } ma_stream_format;
typedef enum {
ma_stream_layout_interleaved = 0,
ma_stream_layout_deinterleaved
} ma_stream_layout;
typedef enum {
ma_dither_mode_none = 0,
ma_dither_mode_rectangle,
ma_dither_mode_triangle
} ma_dither_mode;
typedef enum {
ma_format_unknown = 0,
ma_format_u8 = 1,
ma_format_s16 = 2,
ma_format_s24 = 3,
ma_format_s32 = 4,
ma_format_f32 = 5,
ma_format_count
} ma_format;
typedef enum {
ma_standard_sample_rate_48000 = 48000,
ma_standard_sample_rate_44100 = 44100,
ma_standard_sample_rate_32000 = 32000,
ma_standard_sample_rate_24000 = 24000,
ma_standard_sample_rate_22050 = 22050,
ma_standard_sample_rate_88200 = 88200,
ma_standard_sample_rate_96000 = 96000,
ma_standard_sample_rate_176400 = 176400,
ma_standard_sample_rate_192000 = 192000,
ma_standard_sample_rate_16000 = 16000,
ma_standard_sample_rate_11025 = 11250,
ma_standard_sample_rate_8000 = 8000,
ma_standard_sample_rate_352800 = 352800,
ma_standard_sample_rate_384000 = 384000,
ma_standard_sample_rate_min = ma_standard_sample_rate_8000,
ma_standard_sample_rate_max = ma_standard_sample_rate_384000,
ma_standard_sample_rate_count = 14
} ma_standard_sample_rate;
typedef enum {
ma_channel_mix_mode_rectangular = 0,
ma_channel_mix_mode_simple,
ma_channel_mix_mode_custom_weights,
ma_channel_mix_mode_planar_blend = ma_channel_mix_mode_rectangular,
ma_channel_mix_mode_default = ma_channel_mix_mode_planar_blend
} ma_channel_mix_mode;
typedef enum {
ma_standard_channel_map_microsoft,
ma_standard_channel_map_alsa,
ma_standard_channel_map_rfc3551,
ma_standard_channel_map_flac,
ma_standard_channel_map_vorbis,
ma_standard_channel_map_sound4,
ma_standard_channel_map_sndio,
ma_standard_channel_map_webaudio = ma_standard_channel_map_flac,
ma_standard_channel_map_default = ma_standard_channel_map_microsoft
} ma_standard_channel_map;
typedef enum {
ma_performance_profile_low_latency = 0,
ma_performance_profile_conservative
} ma_performance_profile;
typedef struct {
void *pUserData;
void *(*onMalloc)(size_t sz, void *pUserData);
void *(*onRealloc)(void *p, size_t sz, void *pUserData);
void (*onFree)(void *p, void *pUserData);
} ma_allocation_callbacks;
typedef struct {
ma_int32 state;
} ma_lcg;
typedef enum {
ma_thread_priority_idle = -5,
ma_thread_priority_lowest = -4,
ma_thread_priority_low = -3,
ma_thread_priority_normal = -2,
ma_thread_priority_high = -1,
ma_thread_priority_highest = 0,
ma_thread_priority_realtime = 1,
ma_thread_priority_default = 0
} ma_thread_priority;
typedef ma_uint32 ma_spinlock;
typedef pthread_t ma_thread;
typedef pthread_mutex_t ma_mutex;
typedef struct {
ma_uint32 value;
pthread_mutex_t lock;
pthread_cond_t cond;
} ma_event;
typedef struct {
int value;
pthread_mutex_t lock;
pthread_cond_t cond;
} ma_semaphore;
extern void ma_version(ma_uint32 *pMajor, ma_uint32 *pMinor,
ma_uint32 *pRevision);
extern const char *ma_version_string(void);
typedef union {
float f32;
ma_int32 s32;
} ma_biquad_coefficient;
typedef struct {
ma_format format;
ma_uint32 channels;
double b0;
double b1;
double b2;
double a0;
double a1;
double a2;
} ma_biquad_config;
extern ma_biquad_config ma_biquad_config_init(ma_format format,
ma_uint32 channels, double b0,
double b1, double b2, double a0,
double a1, double a2);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_biquad_coefficient b0;
ma_biquad_coefficient b1;
ma_biquad_coefficient b2;
ma_biquad_coefficient a1;
ma_biquad_coefficient a2;
ma_biquad_coefficient r1[32];
ma_biquad_coefficient r2[32];
} ma_biquad;
extern ma_result ma_biquad_init(const ma_biquad_config *pConfig,
ma_biquad *pBQ);
extern ma_result ma_biquad_reinit(const ma_biquad_config *pConfig,
ma_biquad *pBQ);
extern ma_result ma_biquad_process_pcm_frames(ma_biquad *pBQ, void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_biquad_get_latency(const ma_biquad *pBQ);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
double cutoffFrequency;
double q;
} ma_lpf1_config, ma_lpf2_config;
extern ma_lpf1_config ma_lpf1_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRate,
double cutoffFrequency);
extern ma_lpf2_config ma_lpf2_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRate,
double cutoffFrequency, double q);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_biquad_coefficient a;
ma_biquad_coefficient r1[32];
} ma_lpf1;
extern ma_result ma_lpf1_init(const ma_lpf1_config *pConfig, ma_lpf1 *pLPF);
extern ma_result ma_lpf1_reinit(const ma_lpf1_config *pConfig, ma_lpf1 *pLPF);
extern ma_result ma_lpf1_process_pcm_frames(ma_lpf1 *pLPF, void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_lpf1_get_latency(const ma_lpf1 *pLPF);
typedef struct {
ma_biquad bq;
} ma_lpf2;
extern ma_result ma_lpf2_init(const ma_lpf2_config *pConfig, ma_lpf2 *pLPF);
extern ma_result ma_lpf2_reinit(const ma_lpf2_config *pConfig, ma_lpf2 *pLPF);
extern ma_result ma_lpf2_process_pcm_frames(ma_lpf2 *pLPF, void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_lpf2_get_latency(const ma_lpf2 *pLPF);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
double cutoffFrequency;
ma_uint32 order;
} ma_lpf_config;
extern ma_lpf_config ma_lpf_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRate,
double cutoffFrequency,
ma_uint32 order);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
ma_uint32 lpf1Count;
ma_uint32 lpf2Count;
ma_lpf1 lpf1[1];
ma_lpf2 lpf2[8 / 2];
} ma_lpf;
extern ma_result ma_lpf_init(const ma_lpf_config *pConfig, ma_lpf *pLPF);
extern ma_result ma_lpf_reinit(const ma_lpf_config *pConfig, ma_lpf *pLPF);
extern ma_result ma_lpf_process_pcm_frames(ma_lpf *pLPF, void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_lpf_get_latency(const ma_lpf *pLPF);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
double cutoffFrequency;
double q;
} ma_hpf1_config, ma_hpf2_config;
extern ma_hpf1_config ma_hpf1_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRate,
double cutoffFrequency);
extern ma_hpf2_config ma_hpf2_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRate,
double cutoffFrequency, double q);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_biquad_coefficient a;
ma_biquad_coefficient r1[32];
} ma_hpf1;
extern ma_result ma_hpf1_init(const ma_hpf1_config *pConfig, ma_hpf1 *pHPF);
extern ma_result ma_hpf1_reinit(const ma_hpf1_config *pConfig, ma_hpf1 *pHPF);
extern ma_result ma_hpf1_process_pcm_frames(ma_hpf1 *pHPF, void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_hpf1_get_latency(const ma_hpf1 *pHPF);
typedef struct {
ma_biquad bq;
} ma_hpf2;
extern ma_result ma_hpf2_init(const ma_hpf2_config *pConfig, ma_hpf2 *pHPF);
extern ma_result ma_hpf2_reinit(const ma_hpf2_config *pConfig, ma_hpf2 *pHPF);
extern ma_result ma_hpf2_process_pcm_frames(ma_hpf2 *pHPF, void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_hpf2_get_latency(const ma_hpf2 *pHPF);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
double cutoffFrequency;
ma_uint32 order;
} ma_hpf_config;
extern ma_hpf_config ma_hpf_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRate,
double cutoffFrequency,
ma_uint32 order);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
ma_uint32 hpf1Count;
ma_uint32 hpf2Count;
ma_hpf1 hpf1[1];
ma_hpf2 hpf2[8 / 2];
} ma_hpf;
extern ma_result ma_hpf_init(const ma_hpf_config *pConfig, ma_hpf *pHPF);
extern ma_result ma_hpf_reinit(const ma_hpf_config *pConfig, ma_hpf *pHPF);
extern ma_result ma_hpf_process_pcm_frames(ma_hpf *pHPF, void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_hpf_get_latency(const ma_hpf *pHPF);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
double cutoffFrequency;
double q;
} ma_bpf2_config;
extern ma_bpf2_config ma_bpf2_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRate,
double cutoffFrequency, double q);
typedef struct {
ma_biquad bq;
} ma_bpf2;
extern ma_result ma_bpf2_init(const ma_bpf2_config *pConfig, ma_bpf2 *pBPF);
extern ma_result ma_bpf2_reinit(const ma_bpf2_config *pConfig, ma_bpf2 *pBPF);
extern ma_result ma_bpf2_process_pcm_frames(ma_bpf2 *pBPF, void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_bpf2_get_latency(const ma_bpf2 *pBPF);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
double cutoffFrequency;
ma_uint32 order;
} ma_bpf_config;
extern ma_bpf_config ma_bpf_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRate,
double cutoffFrequency,
ma_uint32 order);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 bpf2Count;
ma_bpf2 bpf2[8 / 2];
} ma_bpf;
extern ma_result ma_bpf_init(const ma_bpf_config *pConfig, ma_bpf *pBPF);
extern ma_result ma_bpf_reinit(const ma_bpf_config *pConfig, ma_bpf *pBPF);
extern ma_result ma_bpf_process_pcm_frames(ma_bpf *pBPF, void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_bpf_get_latency(const ma_bpf *pBPF);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
double q;
double frequency;
} ma_notch2_config;
extern ma_notch2_config ma_notch2_config_init(ma_format format,
ma_uint32 channels,
ma_uint32 sampleRate, double q,
double frequency);
typedef struct {
ma_biquad bq;
} ma_notch2;
extern ma_result ma_notch2_init(const ma_notch2_config *pConfig,
ma_notch2 *pFilter);
extern ma_result ma_notch2_reinit(const ma_notch2_config *pConfig,
ma_notch2 *pFilter);
extern ma_result ma_notch2_process_pcm_frames(ma_notch2 *pFilter,
void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_notch2_get_latency(const ma_notch2 *pFilter);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
double gainDB;
double q;
double frequency;
} ma_peak2_config;
extern ma_peak2_config ma_peak2_config_init(ma_format format,
ma_uint32 channels,
ma_uint32 sampleRate, double gainDB,
double q, double frequency);
typedef struct {
ma_biquad bq;
} ma_peak2;
extern ma_result ma_peak2_init(const ma_peak2_config *pConfig,
ma_peak2 *pFilter);
extern ma_result ma_peak2_reinit(const ma_peak2_config *pConfig,
ma_peak2 *pFilter);
extern ma_result ma_peak2_process_pcm_frames(ma_peak2 *pFilter,
void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_peak2_get_latency(const ma_peak2 *pFilter);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
double gainDB;
double shelfSlope;
double frequency;
} ma_loshelf2_config;
extern ma_loshelf2_config
ma_loshelf2_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRate, double gainDB, double shelfSlope,
double frequency);
typedef struct {
ma_biquad bq;
} ma_loshelf2;
extern ma_result ma_loshelf2_init(const ma_loshelf2_config *pConfig,
ma_loshelf2 *pFilter);
extern ma_result ma_loshelf2_reinit(const ma_loshelf2_config *pConfig,
ma_loshelf2 *pFilter);
extern ma_result ma_loshelf2_process_pcm_frames(ma_loshelf2 *pFilter,
void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_loshelf2_get_latency(const ma_loshelf2 *pFilter);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
double gainDB;
double shelfSlope;
double frequency;
} ma_hishelf2_config;
extern ma_hishelf2_config
ma_hishelf2_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRate, double gainDB, double shelfSlope,
double frequency);
typedef struct {
ma_biquad bq;
} ma_hishelf2;
extern ma_result ma_hishelf2_init(const ma_hishelf2_config *pConfig,
ma_hishelf2 *pFilter);
extern ma_result ma_hishelf2_reinit(const ma_hishelf2_config *pConfig,
ma_hishelf2 *pFilter);
extern ma_result ma_hishelf2_process_pcm_frames(ma_hishelf2 *pFilter,
void *pFramesOut,
const void *pFramesIn,
ma_uint64 frameCount);
extern ma_uint32 ma_hishelf2_get_latency(const ma_hishelf2 *pFilter);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRateIn;
ma_uint32 sampleRateOut;
ma_uint32 lpfOrder;
double lpfNyquistFactor;
} ma_linear_resampler_config;
extern ma_linear_resampler_config
ma_linear_resampler_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRateIn,
ma_uint32 sampleRateOut);
typedef struct {
ma_linear_resampler_config config;
ma_uint32 inAdvanceInt;
ma_uint32 inAdvanceFrac;
ma_uint32 inTimeInt;
ma_uint32 inTimeFrac;
union {
float f32[32];
ma_int16 s16[32];
} x0;
union {
float f32[32];
ma_int16 s16[32];
} x1;
ma_lpf lpf;
} ma_linear_resampler;
extern ma_result
ma_linear_resampler_init(const ma_linear_resampler_config *pConfig,
ma_linear_resampler *pResampler);
extern void ma_linear_resampler_uninit(ma_linear_resampler *pResampler);
extern ma_result ma_linear_resampler_process_pcm_frames(
ma_linear_resampler *pResampler, const void *pFramesIn,
ma_uint64 *pFrameCountIn, void *pFramesOut, ma_uint64 *pFrameCountOut);
extern ma_result ma_linear_resampler_set_rate(ma_linear_resampler *pResampler,
ma_uint32 sampleRateIn,
ma_uint32 sampleRateOut);
extern ma_result
ma_linear_resampler_set_rate_ratio(ma_linear_resampler *pResampler,
float ratioInOut);
extern ma_uint64 ma_linear_resampler_get_required_input_frame_count(
const ma_linear_resampler *pResampler, ma_uint64 outputFrameCount);
extern ma_uint64 ma_linear_resampler_get_expected_output_frame_count(
const ma_linear_resampler *pResampler, ma_uint64 inputFrameCount);
extern ma_uint64
ma_linear_resampler_get_input_latency(const ma_linear_resampler *pResampler);
extern ma_uint64
ma_linear_resampler_get_output_latency(const ma_linear_resampler *pResampler);
typedef enum {
ma_resample_algorithm_linear = 0,
ma_resample_algorithm_speex
} ma_resample_algorithm;
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRateIn;
ma_uint32 sampleRateOut;
ma_resample_algorithm algorithm;
struct {
ma_uint32 lpfOrder;
double lpfNyquistFactor;
} linear;
struct {
int quality;
} speex;
} ma_resampler_config;
extern ma_resampler_config
ma_resampler_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRateIn, ma_uint32 sampleRateOut,
ma_resample_algorithm algorithm);
typedef struct {
ma_resampler_config config;
union {
ma_linear_resampler linear;
struct {
void *pSpeexResamplerState;
} speex;
} state;
} ma_resampler;
extern ma_result ma_resampler_init(const ma_resampler_config *pConfig,
ma_resampler *pResampler);
extern void ma_resampler_uninit(ma_resampler *pResampler);
extern ma_result ma_resampler_process_pcm_frames(ma_resampler *pResampler,
const void *pFramesIn,
ma_uint64 *pFrameCountIn,
void *pFramesOut,
ma_uint64 *pFrameCountOut);
extern ma_result ma_resampler_set_rate(ma_resampler *pResampler,
ma_uint32 sampleRateIn,
ma_uint32 sampleRateOut);
extern ma_result ma_resampler_set_rate_ratio(ma_resampler *pResampler,
float ratio);
extern ma_uint64
ma_resampler_get_required_input_frame_count(const ma_resampler *pResampler,
ma_uint64 outputFrameCount);
extern ma_uint64
ma_resampler_get_expected_output_frame_count(const ma_resampler *pResampler,
ma_uint64 inputFrameCount);
extern ma_uint64 ma_resampler_get_input_latency(const ma_resampler *pResampler);
extern ma_uint64
ma_resampler_get_output_latency(const ma_resampler *pResampler);
typedef struct {
ma_format format;
ma_uint32 channelsIn;
ma_uint32 channelsOut;
ma_channel channelMapIn[32];
ma_channel channelMapOut[32];
ma_channel_mix_mode mixingMode;
float weights[32][32];
} ma_channel_converter_config;
extern ma_channel_converter_config ma_channel_converter_config_init(
ma_format format, ma_uint32 channelsIn, const ma_channel *pChannelMapIn,
ma_uint32 channelsOut, const ma_channel *pChannelMapOut,
ma_channel_mix_mode mixingMode);
typedef struct {
ma_format format;
ma_uint32 channelsIn;
ma_uint32 channelsOut;
ma_channel channelMapIn[32];
ma_channel channelMapOut[32];
ma_channel_mix_mode mixingMode;
union {
float f32[32][32];
ma_int32 s16[32][32];
} weights;
ma_bool8 isPassthrough;
ma_bool8 isSimpleShuffle;
ma_bool8 isSimpleMonoExpansion;
ma_bool8 isStereoToMono;
ma_uint8 shuffleTable[32];
} ma_channel_converter;
extern ma_result
ma_channel_converter_init(const ma_channel_converter_config *pConfig,
ma_channel_converter *pConverter);
extern void ma_channel_converter_uninit(ma_channel_converter *pConverter);
extern ma_result
ma_channel_converter_process_pcm_frames(ma_channel_converter *pConverter,
void *pFramesOut, const void *pFramesIn,
ma_uint64 frameCount);
typedef struct {
ma_format formatIn;
ma_format formatOut;
ma_uint32 channelsIn;
ma_uint32 channelsOut;
ma_uint32 sampleRateIn;
ma_uint32 sampleRateOut;
ma_channel channelMapIn[32];
ma_channel channelMapOut[32];
ma_dither_mode ditherMode;
ma_channel_mix_mode channelMixMode;
float channelWeights[32][32];
struct {
ma_resample_algorithm algorithm;
ma_bool32 allowDynamicSampleRate;
struct {
ma_uint32 lpfOrder;
double lpfNyquistFactor;
} linear;
struct {
int quality;
} speex;
} resampling;
} ma_data_converter_config;
extern ma_data_converter_config ma_data_converter_config_init_default(void);
extern ma_data_converter_config
ma_data_converter_config_init(ma_format formatIn, ma_format formatOut,
ma_uint32 channelsIn, ma_uint32 channelsOut,
ma_uint32 sampleRateIn, ma_uint32 sampleRateOut);
typedef struct {
ma_data_converter_config config;
ma_channel_converter channelConverter;
ma_resampler resampler;
ma_bool8 hasPreFormatConversion;
ma_bool8 hasPostFormatConversion;
ma_bool8 hasChannelConverter;
ma_bool8 hasResampler;
ma_bool8 isPassthrough;
} ma_data_converter;
extern ma_result ma_data_converter_init(const ma_data_converter_config *pConfig,
ma_data_converter *pConverter);
extern void ma_data_converter_uninit(ma_data_converter *pConverter);
extern ma_result ma_data_converter_process_pcm_frames(
ma_data_converter *pConverter, const void *pFramesIn,
ma_uint64 *pFrameCountIn, void *pFramesOut, ma_uint64 *pFrameCountOut);
extern ma_result ma_data_converter_set_rate(ma_data_converter *pConverter,
ma_uint32 sampleRateIn,
ma_uint32 sampleRateOut);
extern ma_result ma_data_converter_set_rate_ratio(ma_data_converter *pConverter,
float ratioInOut);
extern ma_uint64 ma_data_converter_get_required_input_frame_count(
const ma_data_converter *pConverter, ma_uint64 outputFrameCount);
extern ma_uint64 ma_data_converter_get_expected_output_frame_count(
const ma_data_converter *pConverter, ma_uint64 inputFrameCount);
extern ma_uint64
ma_data_converter_get_input_latency(const ma_data_converter *pConverter);
extern ma_uint64
ma_data_converter_get_output_latency(const ma_data_converter *pConverter);
extern void ma_pcm_u8_to_s16(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_u8_to_s24(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_u8_to_s32(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_u8_to_f32(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_s16_to_u8(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_s16_to_s24(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_s16_to_s32(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_s16_to_f32(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_s24_to_u8(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_s24_to_s16(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_s24_to_s32(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_s24_to_f32(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_s32_to_u8(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_s32_to_s16(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_s32_to_s24(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_s32_to_f32(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_f32_to_u8(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_f32_to_s16(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_f32_to_s24(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_f32_to_s32(void *pOut, const void *pIn, ma_uint64 count,
ma_dither_mode ditherMode);
extern void ma_pcm_convert(void *pOut, ma_format formatOut, const void *pIn,
ma_format formatIn, ma_uint64 sampleCount,
ma_dither_mode ditherMode);
extern void ma_convert_pcm_frames_format(void *pOut, ma_format formatOut,
const void *pIn, ma_format formatIn,
ma_uint64 frameCount,
ma_uint32 channels,
ma_dither_mode ditherMode);
extern void ma_deinterleave_pcm_frames(ma_format format, ma_uint32 channels,
ma_uint64 frameCount,
const void *pInterleavedPCMFrames,
void **ppDeinterleavedPCMFrames);
extern void ma_interleave_pcm_frames(ma_format format, ma_uint32 channels,
ma_uint64 frameCount,
const void **ppDeinterleavedPCMFrames,
void *pInterleavedPCMFrames);
extern void ma_channel_map_init_blank(ma_uint32 channels,
ma_channel *pChannelMap);
extern void
ma_get_standard_channel_map(ma_standard_channel_map standardChannelMap,
ma_uint32 channels, ma_channel *pChannelMap);
extern void ma_channel_map_copy(ma_channel *pOut, const ma_channel *pIn,
ma_uint32 channels);
extern void ma_channel_map_copy_or_default(ma_channel *pOut,
const ma_channel *pIn,
ma_uint32 channels);
extern ma_bool32 ma_channel_map_valid(ma_uint32 channels,
const ma_channel *pChannelMap);
extern ma_bool32 ma_channel_map_equal(ma_uint32 channels,
const ma_channel *pChannelMapA,
const ma_channel *pChannelMapB);
extern ma_bool32 ma_channel_map_blank(ma_uint32 channels,
const ma_channel *pChannelMap);
extern ma_bool32
ma_channel_map_contains_channel_position(ma_uint32 channels,
const ma_channel *pChannelMap,
ma_channel channelPosition);
extern ma_uint64 ma_convert_frames(void *pOut, ma_uint64 frameCountOut,
ma_format formatOut, ma_uint32 channelsOut,
ma_uint32 sampleRateOut, const void *pIn,
ma_uint64 frameCountIn, ma_format formatIn,
ma_uint32 channelsIn,
ma_uint32 sampleRateIn);
extern ma_uint64 ma_convert_frames_ex(void *pOut, ma_uint64 frameCountOut,
const void *pIn, ma_uint64 frameCountIn,
const ma_data_converter_config *pConfig);
typedef struct {
void *pBuffer;
ma_uint32 subbufferSizeInBytes;
ma_uint32 subbufferCount;
ma_uint32 subbufferStrideInBytes;
ma_uint32 encodedReadOffset;
ma_uint32 encodedWriteOffset;
ma_bool8 ownsBuffer;
ma_bool8 clearOnWriteAcquire;
ma_allocation_callbacks allocationCallbacks;
} ma_rb;
extern ma_result
ma_rb_init_ex(size_t subbufferSizeInBytes, size_t subbufferCount,
size_t subbufferStrideInBytes, void *pOptionalPreallocatedBuffer,
const ma_allocation_callbacks *pAllocationCallbacks, ma_rb *pRB);
extern ma_result ma_rb_init(size_t bufferSizeInBytes,
void *pOptionalPreallocatedBuffer,
const ma_allocation_callbacks *pAllocationCallbacks,
ma_rb *pRB);
extern void ma_rb_uninit(ma_rb *pRB);
extern void ma_rb_reset(ma_rb *pRB);
extern ma_result ma_rb_acquire_read(ma_rb *pRB, size_t *pSizeInBytes,
void **ppBufferOut);
extern ma_result ma_rb_commit_read(ma_rb *pRB, size_t sizeInBytes,
void *pBufferOut);
extern ma_result ma_rb_acquire_write(ma_rb *pRB, size_t *pSizeInBytes,
void **ppBufferOut);
extern ma_result ma_rb_commit_write(ma_rb *pRB, size_t sizeInBytes,
void *pBufferOut);
extern ma_result ma_rb_seek_read(ma_rb *pRB, size_t offsetInBytes);
extern ma_result ma_rb_seek_write(ma_rb *pRB, size_t offsetInBytes);
extern ma_int32 ma_rb_pointer_distance(ma_rb *pRB);
extern ma_uint32 ma_rb_available_read(ma_rb *pRB);
extern ma_uint32 ma_rb_available_write(ma_rb *pRB);
extern size_t ma_rb_get_subbuffer_size(ma_rb *pRB);
extern size_t ma_rb_get_subbuffer_stride(ma_rb *pRB);
extern size_t ma_rb_get_subbuffer_offset(ma_rb *pRB, size_t subbufferIndex);
extern void *ma_rb_get_subbuffer_ptr(ma_rb *pRB, size_t subbufferIndex,
void *pBuffer);
typedef struct {
ma_rb rb;
ma_format format;
ma_uint32 channels;
} ma_pcm_rb;
extern ma_result ma_pcm_rb_init_ex(
ma_format format, ma_uint32 channels, ma_uint32 subbufferSizeInFrames,
ma_uint32 subbufferCount, ma_uint32 subbufferStrideInFrames,
void *pOptionalPreallocatedBuffer,
const ma_allocation_callbacks *pAllocationCallbacks, ma_pcm_rb *pRB);
extern ma_result
ma_pcm_rb_init(ma_format format, ma_uint32 channels,
ma_uint32 bufferSizeInFrames, void *pOptionalPreallocatedBuffer,
const ma_allocation_callbacks *pAllocationCallbacks,
ma_pcm_rb *pRB);
extern void ma_pcm_rb_uninit(ma_pcm_rb *pRB);
extern void ma_pcm_rb_reset(ma_pcm_rb *pRB);
extern ma_result ma_pcm_rb_acquire_read(ma_pcm_rb *pRB,
ma_uint32 *pSizeInFrames,
void **ppBufferOut);
extern ma_result ma_pcm_rb_commit_read(ma_pcm_rb *pRB, ma_uint32 sizeInFrames,
void *pBufferOut);
extern ma_result ma_pcm_rb_acquire_write(ma_pcm_rb *pRB,
ma_uint32 *pSizeInFrames,
void **ppBufferOut);
extern ma_result ma_pcm_rb_commit_write(ma_pcm_rb *pRB, ma_uint32 sizeInFrames,
void *pBufferOut);
extern ma_result ma_pcm_rb_seek_read(ma_pcm_rb *pRB, ma_uint32 offsetInFrames);
extern ma_result ma_pcm_rb_seek_write(ma_pcm_rb *pRB, ma_uint32 offsetInFrames);
extern ma_int32 ma_pcm_rb_pointer_distance(ma_pcm_rb *pRB);
extern ma_uint32 ma_pcm_rb_available_read(ma_pcm_rb *pRB);
extern ma_uint32 ma_pcm_rb_available_write(ma_pcm_rb *pRB);
extern ma_uint32 ma_pcm_rb_get_subbuffer_size(ma_pcm_rb *pRB);
extern ma_uint32 ma_pcm_rb_get_subbuffer_stride(ma_pcm_rb *pRB);
extern ma_uint32 ma_pcm_rb_get_subbuffer_offset(ma_pcm_rb *pRB,
ma_uint32 subbufferIndex);
extern void *ma_pcm_rb_get_subbuffer_ptr(ma_pcm_rb *pRB,
ma_uint32 subbufferIndex,
void *pBuffer);
typedef struct {
ma_pcm_rb rb;
} ma_duplex_rb;
extern ma_result
ma_duplex_rb_init(ma_format captureFormat, ma_uint32 captureChannels,
ma_uint32 sampleRate, ma_uint32 captureInternalSampleRate,
ma_uint32 captureInternalPeriodSizeInFrames,
const ma_allocation_callbacks *pAllocationCallbacks,
ma_duplex_rb *pRB);
extern ma_result ma_duplex_rb_uninit(ma_duplex_rb *pRB);
extern const char *ma_result_description(ma_result result);
extern void *ma_malloc(size_t sz,
const ma_allocation_callbacks *pAllocationCallbacks);
extern void *ma_realloc(void *p, size_t sz,
const ma_allocation_callbacks *pAllocationCallbacks);
extern void ma_free(void *p,
const ma_allocation_callbacks *pAllocationCallbacks);
extern void *
ma_aligned_malloc(size_t sz, size_t alignment,
const ma_allocation_callbacks *pAllocationCallbacks);
extern void
ma_aligned_free(void *p, const ma_allocation_callbacks *pAllocationCallbacks);
extern const char *ma_get_format_name(ma_format format);
extern void ma_blend_f32(float *pOut, float *pInA, float *pInB, float factor,
ma_uint32 channels);
extern ma_uint32 ma_get_bytes_per_sample(ma_format format);
static inline __attribute__((always_inline)) ma_uint32
ma_get_bytes_per_frame(ma_format format, ma_uint32 channels) {
return ma_get_bytes_per_sample(format) * channels;
}
extern const char *ma_log_level_to_string(ma_uint32 logLevel);
typedef enum {
ma_backend_wasapi,
ma_backend_dsound,
ma_backend_winmm,
ma_backend_coreaudio,
ma_backend_sndio,
ma_backend_audio4,
ma_backend_oss,
ma_backend_pulseaudio,
ma_backend_alsa,
ma_backend_jack,
ma_backend_aaudio,
ma_backend_opensl,
ma_backend_webaudio,
ma_backend_custom,
ma_backend_null
} ma_backend;
typedef void (*ma_device_callback_proc)(ma_device *pDevice, void *pOutput,
const void *pInput,
ma_uint32 frameCount);
typedef void (*ma_stop_proc)(ma_device *pDevice);
typedef void (*ma_log_proc)(ma_context *pContext, ma_device *pDevice,
ma_uint32 logLevel, const char *message);
typedef enum {
ma_device_type_playback = 1,
ma_device_type_capture = 2,
ma_device_type_duplex = ma_device_type_playback | ma_device_type_capture,
ma_device_type_loopback = 4
} ma_device_type;
typedef enum {
ma_share_mode_shared = 0,
ma_share_mode_exclusive
} ma_share_mode;
typedef enum {
ma_ios_session_category_default = 0,
ma_ios_session_category_none,
ma_ios_session_category_ambient,
ma_ios_session_category_solo_ambient,
ma_ios_session_category_playback,
ma_ios_session_category_record,
ma_ios_session_category_play_and_record,
ma_ios_session_category_multi_route
} ma_ios_session_category;
typedef enum {
ma_ios_session_category_option_mix_with_others = 0x01,
ma_ios_session_category_option_duck_others = 0x02,
ma_ios_session_category_option_allow_bluetooth = 0x04,
ma_ios_session_category_option_default_to_speaker = 0x08,
ma_ios_session_category_option_interrupt_spoken_audio_and_mix_with_others =
0x11,
ma_ios_session_category_option_allow_bluetooth_a2dp = 0x20,
ma_ios_session_category_option_allow_air_play = 0x40,
} ma_ios_session_category_option;
typedef enum {
ma_opensl_stream_type_default = 0,
ma_opensl_stream_type_voice,
ma_opensl_stream_type_system,
ma_opensl_stream_type_ring,
ma_opensl_stream_type_media,
ma_opensl_stream_type_alarm,
ma_opensl_stream_type_notification
} ma_opensl_stream_type;
typedef enum {
ma_opensl_recording_preset_default = 0,
ma_opensl_recording_preset_generic,
ma_opensl_recording_preset_camcorder,
ma_opensl_recording_preset_voice_recognition,
ma_opensl_recording_preset_voice_communication,
ma_opensl_recording_preset_voice_unprocessed
} ma_opensl_recording_preset;
typedef enum {
ma_aaudio_usage_default = 0,
ma_aaudio_usage_announcement,
ma_aaudio_usage_emergency,
ma_aaudio_usage_safety,
ma_aaudio_usage_vehicle_status,
ma_aaudio_usage_alarm,
ma_aaudio_usage_assistance_accessibility,
ma_aaudio_usage_assistance_navigation_guidance,
ma_aaudio_usage_assistance_sonification,
ma_aaudio_usage_assitant,
ma_aaudio_usage_game,
ma_aaudio_usage_media,
ma_aaudio_usage_notification,
ma_aaudio_usage_notification_event,
ma_aaudio_usage_notification_ringtone,
ma_aaudio_usage_voice_communication,
ma_aaudio_usage_voice_communication_signalling
} ma_aaudio_usage;
typedef enum {
ma_aaudio_content_type_default = 0,
ma_aaudio_content_type_movie,
ma_aaudio_content_type_music,
ma_aaudio_content_type_sonification,
ma_aaudio_content_type_speech
} ma_aaudio_content_type;
typedef enum {
ma_aaudio_input_preset_default = 0,
ma_aaudio_input_preset_generic,
ma_aaudio_input_preset_camcorder,
ma_aaudio_input_preset_unprocessed,
ma_aaudio_input_preset_voice_recognition,
ma_aaudio_input_preset_voice_communication,
ma_aaudio_input_preset_voice_performance
} ma_aaudio_input_preset;
typedef union {
ma_int64 counter;
double counterD;
} ma_timer;
typedef union {
wchar_t wasapi[64];
ma_uint8 dsound[16];
ma_uint32 winmm;
char alsa[256];
char pulse[256];
int jack;
char coreaudio[256];
char sndio[256];
char audio4[256];
char oss[64];
ma_int32 aaudio;
ma_uint32 opensl;
char webaudio[32];
union {
int i;
char s[256];
void *p;
} custom;
int nullbackend;
} ma_device_id;
typedef struct ma_context_config ma_context_config;
typedef struct ma_device_config ma_device_config;
typedef struct ma_backend_callbacks ma_backend_callbacks;
typedef struct {
ma_device_id id;
char name[256];
ma_bool32 isDefault;
ma_uint32 formatCount;
ma_format formats[ma_format_count];
ma_uint32 minChannels;
ma_uint32 maxChannels;
ma_uint32 minSampleRate;
ma_uint32 maxSampleRate;
ma_uint32 nativeDataFormatCount;
struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
ma_uint32 flags;
} nativeDataFormats[64];
} ma_device_info;
struct ma_device_config {
ma_device_type deviceType;
ma_uint32 sampleRate;
ma_uint32 periodSizeInFrames;
ma_uint32 periodSizeInMilliseconds;
ma_uint32 periods;
ma_performance_profile performanceProfile;
ma_bool8 noPreZeroedOutputBuffer;
ma_bool8 noClip;
ma_device_callback_proc dataCallback;
ma_stop_proc stopCallback;
void *pUserData;
struct {
ma_resample_algorithm algorithm;
struct {
ma_uint32 lpfOrder;
} linear;
struct {
int quality;
} speex;
} resampling;
struct {
const ma_device_id *pDeviceID;
ma_format format;
ma_uint32 channels;
ma_channel channelMap[32];
ma_channel_mix_mode channelMixMode;
ma_share_mode shareMode;
} playback;
struct {
const ma_device_id *pDeviceID;
ma_format format;
ma_uint32 channels;
ma_channel channelMap[32];
ma_channel_mix_mode channelMixMode;
ma_share_mode shareMode;
} capture;
struct {
ma_bool8 noAutoConvertSRC;
ma_bool8 noDefaultQualitySRC;
ma_bool8 noAutoStreamRouting;
ma_bool8 noHardwareOffloading;
} wasapi;
struct {
ma_bool32 noMMap;
ma_bool32 noAutoFormat;
ma_bool32 noAutoChannels;
ma_bool32 noAutoResample;
} alsa;
struct {
const char *pStreamNamePlayback;
const char *pStreamNameCapture;
} pulse;
struct {
ma_bool32 allowNominalSampleRateChange;
} coreaudio;
struct {
ma_opensl_stream_type streamType;
ma_opensl_recording_preset recordingPreset;
} opensl;
struct {
ma_aaudio_usage usage;
ma_aaudio_content_type contentType;
ma_aaudio_input_preset inputPreset;
} aaudio;
};
typedef ma_bool32 (*ma_enum_devices_callback_proc)(ma_context *pContext,
ma_device_type deviceType,
const ma_device_info *pInfo,
void *pUserData);
typedef struct {
const ma_device_id *pDeviceID;
ma_share_mode shareMode;
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
ma_channel channelMap[32];
ma_uint32 periodSizeInFrames;
ma_uint32 periodSizeInMilliseconds;
ma_uint32 periodCount;
} ma_device_descriptor;
struct ma_backend_callbacks {
ma_result (*onContextInit)(ma_context *pContext,
const ma_context_config *pConfig,
ma_backend_callbacks *pCallbacks);
ma_result (*onContextUninit)(ma_context *pContext);
ma_result (*onContextEnumerateDevices)(
ma_context *pContext, ma_enum_devices_callback_proc callback,
void *pUserData);
ma_result (*onContextGetDeviceInfo)(ma_context *pContext,
ma_device_type deviceType,
const ma_device_id *pDeviceID,
ma_device_info *pDeviceInfo);
ma_result (*onDeviceInit)(ma_device *pDevice,
const ma_device_config *pConfig,
ma_device_descriptor *pDescriptorPlayback,
ma_device_descriptor *pDescriptorCapture);
ma_result (*onDeviceUninit)(ma_device *pDevice);
ma_result (*onDeviceStart)(ma_device *pDevice);
ma_result (*onDeviceStop)(ma_device *pDevice);
ma_result (*onDeviceRead)(ma_device *pDevice, void *pFrames,
ma_uint32 frameCount, ma_uint32 *pFramesRead);
ma_result (*onDeviceWrite)(ma_device *pDevice, const void *pFrames,
ma_uint32 frameCount, ma_uint32 *pFramesWritten);
ma_result (*onDeviceDataLoop)(ma_device *pDevice);
ma_result (*onDeviceDataLoopWakeup)(ma_device *pDevice);
};
struct ma_context_config {
ma_log_proc logCallback;
ma_thread_priority threadPriority;
size_t threadStackSize;
void *pUserData;
ma_allocation_callbacks allocationCallbacks;
struct {
ma_bool32 useVerboseDeviceEnumeration;
} alsa;
struct {
const char *pApplicationName;
const char *pServerName;
ma_bool32 tryAutoSpawn;
} pulse;
struct {
ma_ios_session_category sessionCategory;
ma_uint32 sessionCategoryOptions;
ma_bool32 noAudioSessionActivate;
ma_bool32 noAudioSessionDeactivate;
} coreaudio;
struct {
const char *pClientName;
ma_bool32 tryStartServer;
} jack;
ma_backend_callbacks custom;
};
typedef struct {
int code;
ma_event *pEvent;
union {
struct {
int _unused;
} quit;
struct {
ma_device_type deviceType;
void *pAudioClient;
void **ppAudioClientService;
ma_result *pResult;
} createAudioClient;
struct {
ma_device *pDevice;
ma_device_type deviceType;
} releaseAudioClient;
} data;
} ma_context_command__wasapi;
struct ma_context {
ma_backend_callbacks callbacks;
ma_backend backend;
ma_log_proc logCallback;
ma_thread_priority threadPriority;
size_t threadStackSize;
void *pUserData;
ma_allocation_callbacks allocationCallbacks;
ma_mutex deviceEnumLock;
ma_mutex deviceInfoLock;
ma_uint32 deviceInfoCapacity;
ma_uint32 playbackDeviceInfoCount;
ma_uint32 captureDeviceInfoCount;
ma_device_info *pDeviceInfos;
union {
struct {
ma_handle hCoreFoundation;
ma_proc CFStringGetCString;
ma_proc CFRelease;
ma_handle hCoreAudio;
ma_proc AudioObjectGetPropertyData;
ma_proc AudioObjectGetPropertyDataSize;
ma_proc AudioObjectSetPropertyData;
ma_proc AudioObjectAddPropertyListener;
ma_proc AudioObjectRemovePropertyListener;
ma_handle hAudioUnit;
ma_proc AudioComponentFindNext;
ma_proc AudioComponentInstanceDispose;
ma_proc AudioComponentInstanceNew;
ma_proc AudioOutputUnitStart;
ma_proc AudioOutputUnitStop;
ma_proc AudioUnitAddPropertyListener;
ma_proc AudioUnitGetPropertyInfo;
ma_proc AudioUnitGetProperty;
ma_proc AudioUnitSetProperty;
ma_proc AudioUnitInitialize;
ma_proc AudioUnitRender;
ma_ptr component;
ma_bool32 noAudioSessionDeactivate;
} coreaudio;
struct {
int _unused;
} null_backend;
};
union {
struct {
ma_handle pthreadSO;
ma_proc pthread_create;
ma_proc pthread_join;
ma_proc pthread_mutex_init;
ma_proc pthread_mutex_destroy;
ma_proc pthread_mutex_lock;
ma_proc pthread_mutex_unlock;
ma_proc pthread_cond_init;
ma_proc pthread_cond_destroy;
ma_proc pthread_cond_wait;
ma_proc pthread_cond_signal;
ma_proc pthread_attr_init;
ma_proc pthread_attr_destroy;
ma_proc pthread_attr_setschedpolicy;
ma_proc pthread_attr_getschedparam;
ma_proc pthread_attr_setschedparam;
} posix;
int _unused;
};
};
struct ma_device {
ma_context *pContext;
ma_device_type type;
ma_uint32 sampleRate;
ma_uint32 state;
ma_device_callback_proc onData;
ma_stop_proc onStop;
void *pUserData;
ma_mutex startStopLock;
ma_event wakeupEvent;
ma_event startEvent;
ma_event stopEvent;
ma_thread thread;
ma_result workResult;
ma_bool8 isOwnerOfContext;
ma_bool8 noPreZeroedOutputBuffer;
ma_bool8 noClip;
float masterVolumeFactor;
ma_duplex_rb duplexRB;
struct {
ma_resample_algorithm algorithm;
struct {
ma_uint32 lpfOrder;
} linear;
struct {
int quality;
} speex;
} resampling;
struct {
ma_device_id id;
char name[256];
ma_share_mode shareMode;
ma_format format;
ma_uint32 channels;
ma_channel channelMap[32];
ma_format internalFormat;
ma_uint32 internalChannels;
ma_uint32 internalSampleRate;
ma_channel internalChannelMap[32];
ma_uint32 internalPeriodSizeInFrames;
ma_uint32 internalPeriods;
ma_channel_mix_mode channelMixMode;
ma_data_converter converter;
} playback;
struct {
ma_device_id id;
char name[256];
ma_share_mode shareMode;
ma_format format;
ma_uint32 channels;
ma_channel channelMap[32];
ma_format internalFormat;
ma_uint32 internalChannels;
ma_uint32 internalSampleRate;
ma_channel internalChannelMap[32];
ma_uint32 internalPeriodSizeInFrames;
ma_uint32 internalPeriods;
ma_channel_mix_mode channelMixMode;
ma_data_converter converter;
} capture;
union {
struct {
ma_uint32 deviceObjectIDPlayback;
ma_uint32 deviceObjectIDCapture;
ma_ptr audioUnitPlayback;
ma_ptr audioUnitCapture;
ma_ptr pAudioBufferList;
ma_uint32 audioBufferCapInFrames;
ma_event stopEvent;
ma_uint32 originalPeriodSizeInFrames;
ma_uint32 originalPeriodSizeInMilliseconds;
ma_uint32 originalPeriods;
ma_performance_profile originalPerformanceProfile;
ma_bool32 isDefaultPlaybackDevice;
ma_bool32 isDefaultCaptureDevice;
ma_bool32 isSwitchingPlaybackDevice;
ma_bool32 isSwitchingCaptureDevice;
void *pRouteChangeHandler;
} coreaudio;
struct {
ma_thread deviceThread;
ma_event operationEvent;
ma_event operationCompletionEvent;
ma_semaphore operationSemaphore;
ma_uint32 operation;
ma_result operationResult;
ma_timer timer;
double priorRunTime;
ma_uint32 currentPeriodFramesRemainingPlayback;
ma_uint32 currentPeriodFramesRemainingCapture;
ma_uint64 lastProcessedFramePlayback;
ma_uint64 lastProcessedFrameCapture;
ma_bool32 isStarted;
} null_device;
};
};
extern ma_context_config ma_context_config_init(void);
extern ma_result ma_context_init(const ma_backend backends[],
ma_uint32 backendCount,
const ma_context_config *pConfig,
ma_context *pContext);
extern ma_result ma_context_uninit(ma_context *pContext);
extern size_t ma_context_sizeof(void);
extern ma_result
ma_context_enumerate_devices(ma_context *pContext,
ma_enum_devices_callback_proc callback,
void *pUserData);
extern ma_result ma_context_get_devices(ma_context *pContext,
ma_device_info **ppPlaybackDeviceInfos,
ma_uint32 *pPlaybackDeviceCount,
ma_device_info **ppCaptureDeviceInfos,
ma_uint32 *pCaptureDeviceCount);
extern ma_result ma_context_get_device_info(ma_context *pContext,
ma_device_type deviceType,
const ma_device_id *pDeviceID,
ma_share_mode shareMode,
ma_device_info *pDeviceInfo);
extern ma_bool32 ma_context_is_loopback_supported(ma_context *pContext);
extern ma_device_config ma_device_config_init(ma_device_type deviceType);
extern ma_result ma_device_init(ma_context *pContext,
const ma_device_config *pConfig,
ma_device *pDevice);
extern ma_result ma_device_init_ex(const ma_backend backends[],
ma_uint32 backendCount,
const ma_context_config *pContextConfig,
const ma_device_config *pConfig,
ma_device *pDevice);
extern void ma_device_uninit(ma_device *pDevice);
extern ma_result ma_device_start(ma_device *pDevice);
extern ma_result ma_device_stop(ma_device *pDevice);
extern ma_bool32 ma_device_is_started(const ma_device *pDevice);
extern ma_uint32 ma_device_get_state(const ma_device *pDevice);
extern ma_result ma_device_set_master_volume(ma_device *pDevice, float volume);
extern ma_result ma_device_get_master_volume(ma_device *pDevice,
float *pVolume);
extern ma_result ma_device_set_master_gain_db(ma_device *pDevice, float gainDB);
extern ma_result ma_device_get_master_gain_db(ma_device *pDevice,
float *pGainDB);
extern ma_result ma_device_handle_backend_data_callback(ma_device *pDevice,
void *pOutput,
const void *pInput,
ma_uint32 frameCount);
extern ma_uint32 ma_calculate_buffer_size_in_frames_from_descriptor(
const ma_device_descriptor *pDescriptor, ma_uint32 nativeSampleRate,
ma_performance_profile performanceProfile);
extern const char *ma_get_backend_name(ma_backend backend);
extern ma_bool32 ma_is_backend_enabled(ma_backend backend);
extern ma_result ma_get_enabled_backends(ma_backend *pBackends,
size_t backendCap,
size_t *pBackendCount);
extern ma_bool32 ma_is_loopback_supported(ma_backend backend);
extern ma_result ma_spinlock_lock(volatile ma_spinlock *pSpinlock);
extern ma_result ma_spinlock_lock_noyield(volatile ma_spinlock *pSpinlock);
extern ma_result ma_spinlock_unlock(volatile ma_spinlock *pSpinlock);
extern ma_result ma_mutex_init(ma_mutex *pMutex);
extern void ma_mutex_uninit(ma_mutex *pMutex);
extern void ma_mutex_lock(ma_mutex *pMutex);
extern void ma_mutex_unlock(ma_mutex *pMutex);
extern ma_result ma_event_init(ma_event *pEvent);
extern void ma_event_uninit(ma_event *pEvent);
extern ma_result ma_event_wait(ma_event *pEvent);
extern ma_result ma_event_signal(ma_event *pEvent);
extern ma_uint32 ma_scale_buffer_size(ma_uint32 baseBufferSize, float scale);
extern ma_uint32 ma_calculate_buffer_size_in_milliseconds_from_frames(
ma_uint32 bufferSizeInFrames, ma_uint32 sampleRate);
extern ma_uint32 ma_calculate_buffer_size_in_frames_from_milliseconds(
ma_uint32 bufferSizeInMilliseconds, ma_uint32 sampleRate);
extern void ma_copy_pcm_frames(void *dst, const void *src, ma_uint64 frameCount,
ma_format format, ma_uint32 channels);
extern void ma_silence_pcm_frames(void *p, ma_uint64 frameCount,
ma_format format, ma_uint32 channels);
static inline __attribute__((always_inline)) void
ma_zero_pcm_frames(void *p, ma_uint64 frameCount, ma_format format,
ma_uint32 channels) {
ma_silence_pcm_frames(p, frameCount, format, channels);
}
extern void *ma_offset_pcm_frames_ptr(void *p, ma_uint64 offsetInFrames,
ma_format format, ma_uint32 channels);
extern const void *ma_offset_pcm_frames_const_ptr(const void *p,
ma_uint64 offsetInFrames,
ma_format format,
ma_uint32 channels);
static inline __attribute__((always_inline)) float *
ma_offset_pcm_frames_ptr_f32(float *p, ma_uint64 offsetInFrames,
ma_uint32 channels) {
return (float *)ma_offset_pcm_frames_ptr((void *)p, offsetInFrames,
ma_format_f32, channels);
}
static inline __attribute__((always_inline)) const float *
ma_offset_pcm_frames_const_ptr_f32(const float *p, ma_uint64 offsetInFrames,
ma_uint32 channels) {
return (const float *)ma_offset_pcm_frames_const_ptr(
(const void *)p, offsetInFrames, ma_format_f32, channels);
}
extern void ma_clip_samples_f32(float *p, ma_uint64 sampleCount);
static inline __attribute__((always_inline)) void
ma_clip_pcm_frames_f32(float *p, ma_uint64 frameCount, ma_uint32 channels) {
ma_clip_samples_f32(p, frameCount * channels);
}
extern void ma_copy_and_apply_volume_factor_u8(ma_uint8 *pSamplesOut,
const ma_uint8 *pSamplesIn,
ma_uint64 sampleCount,
float factor);
extern void ma_copy_and_apply_volume_factor_s16(ma_int16 *pSamplesOut,
const ma_int16 *pSamplesIn,
ma_uint64 sampleCount,
float factor);
extern void ma_copy_and_apply_volume_factor_s24(void *pSamplesOut,
const void *pSamplesIn,
ma_uint64 sampleCount,
float factor);
extern void ma_copy_and_apply_volume_factor_s32(ma_int32 *pSamplesOut,
const ma_int32 *pSamplesIn,
ma_uint64 sampleCount,
float factor);
extern void ma_copy_and_apply_volume_factor_f32(float *pSamplesOut,
const float *pSamplesIn,
ma_uint64 sampleCount,
float factor);
extern void ma_apply_volume_factor_u8(ma_uint8 *pSamples, ma_uint64 sampleCount,
float factor);
extern void ma_apply_volume_factor_s16(ma_int16 *pSamples,
ma_uint64 sampleCount, float factor);
extern void ma_apply_volume_factor_s24(void *pSamples, ma_uint64 sampleCount,
float factor);
extern void ma_apply_volume_factor_s32(ma_int32 *pSamples,
ma_uint64 sampleCount, float factor);
extern void ma_apply_volume_factor_f32(float *pSamples, ma_uint64 sampleCount,
float factor);
extern void ma_copy_and_apply_volume_factor_pcm_frames_u8(
ma_uint8 *pPCMFramesOut, const ma_uint8 *pPCMFramesIn, ma_uint64 frameCount,
ma_uint32 channels, float factor);
extern void ma_copy_and_apply_volume_factor_pcm_frames_s16(
ma_int16 *pPCMFramesOut, const ma_int16 *pPCMFramesIn, ma_uint64 frameCount,
ma_uint32 channels, float factor);
extern void ma_copy_and_apply_volume_factor_pcm_frames_s24(
void *pPCMFramesOut, const void *pPCMFramesIn, ma_uint64 frameCount,
ma_uint32 channels, float factor);
extern void ma_copy_and_apply_volume_factor_pcm_frames_s32(
ma_int32 *pPCMFramesOut, const ma_int32 *pPCMFramesIn, ma_uint64 frameCount,
ma_uint32 channels, float factor);
extern void ma_copy_and_apply_volume_factor_pcm_frames_f32(
float *pPCMFramesOut, const float *pPCMFramesIn, ma_uint64 frameCount,
ma_uint32 channels, float factor);
extern void ma_copy_and_apply_volume_factor_pcm_frames(
void *pFramesOut, const void *pFramesIn, ma_uint64 frameCount,
ma_format format, ma_uint32 channels, float factor);
extern void ma_apply_volume_factor_pcm_frames_u8(ma_uint8 *pFrames,
ma_uint64 frameCount,
ma_uint32 channels,
float factor);
extern void ma_apply_volume_factor_pcm_frames_s16(ma_int16 *pFrames,
ma_uint64 frameCount,
ma_uint32 channels,
float factor);
extern void ma_apply_volume_factor_pcm_frames_s24(void *pFrames,
ma_uint64 frameCount,
ma_uint32 channels,
float factor);
extern void ma_apply_volume_factor_pcm_frames_s32(ma_int32 *pFrames,
ma_uint64 frameCount,
ma_uint32 channels,
float factor);
extern void ma_apply_volume_factor_pcm_frames_f32(float *pFrames,
ma_uint64 frameCount,
ma_uint32 channels,
float factor);
extern void ma_apply_volume_factor_pcm_frames(void *pFrames,
ma_uint64 frameCount,
ma_format format,
ma_uint32 channels, float factor);
extern float ma_factor_to_gain_db(float factor);
extern float ma_gain_db_to_factor(float gain);
typedef void ma_data_source;
typedef struct {
ma_result (*onRead)(ma_data_source *pDataSource, void *pFramesOut,
ma_uint64 frameCount, ma_uint64 *pFramesRead);
ma_result (*onSeek)(ma_data_source *pDataSource, ma_uint64 frameIndex);
ma_result (*onMap)(ma_data_source *pDataSource, void **ppFramesOut,
ma_uint64 *pFrameCount);
ma_result (*onUnmap)(ma_data_source *pDataSource, ma_uint64 frameCount);
ma_result (*onGetDataFormat)(ma_data_source *pDataSource,
ma_format *pFormat, ma_uint32 *pChannels,
ma_uint32 *pSampleRate);
ma_result (*onGetCursor)(ma_data_source *pDataSource, ma_uint64 *pCursor);
ma_result (*onGetLength)(ma_data_source *pDataSource, ma_uint64 *pLength);
} ma_data_source_callbacks;
extern ma_result ma_data_source_read_pcm_frames(ma_data_source *pDataSource,
void *pFramesOut,
ma_uint64 frameCount,
ma_uint64 *pFramesRead,
ma_bool32 loop);
extern ma_result ma_data_source_seek_pcm_frames(ma_data_source *pDataSource,
ma_uint64 frameCount,
ma_uint64 *pFramesSeeked,
ma_bool32 loop);
extern ma_result ma_data_source_seek_to_pcm_frame(ma_data_source *pDataSource,
ma_uint64 frameIndex);
extern ma_result ma_data_source_map(ma_data_source *pDataSource,
void **ppFramesOut, ma_uint64 *pFrameCount);
extern ma_result ma_data_source_unmap(ma_data_source *pDataSource,
ma_uint64 frameCount);
extern ma_result ma_data_source_get_data_format(ma_data_source *pDataSource,
ma_format *pFormat,
ma_uint32 *pChannels,
ma_uint32 *pSampleRate);
extern ma_result
ma_data_source_get_cursor_in_pcm_frames(ma_data_source *pDataSource,
ma_uint64 *pCursor);
extern ma_result
ma_data_source_get_length_in_pcm_frames(ma_data_source *pDataSource,
ma_uint64 *pLength);
typedef struct {
ma_data_source_callbacks ds;
ma_format format;
ma_uint32 channels;
ma_uint64 cursor;
ma_uint64 sizeInFrames;
const void *pData;
} ma_audio_buffer_ref;
extern ma_result ma_audio_buffer_ref_init(ma_format format, ma_uint32 channels,
const void *pData,
ma_uint64 sizeInFrames,
ma_audio_buffer_ref *pAudioBufferRef);
extern ma_result
ma_audio_buffer_ref_set_data(ma_audio_buffer_ref *pAudioBufferRef,
const void *pData, ma_uint64 sizeInFrames);
extern ma_uint64
ma_audio_buffer_ref_read_pcm_frames(ma_audio_buffer_ref *pAudioBufferRef,
void *pFramesOut, ma_uint64 frameCount,
ma_bool32 loop);
extern ma_result
ma_audio_buffer_ref_seek_to_pcm_frame(ma_audio_buffer_ref *pAudioBufferRef,
ma_uint64 frameIndex);
extern ma_result ma_audio_buffer_ref_map(ma_audio_buffer_ref *pAudioBufferRef,
void **ppFramesOut,
ma_uint64 *pFrameCount);
extern ma_result ma_audio_buffer_ref_unmap(ma_audio_buffer_ref *pAudioBufferRef,
ma_uint64 frameCount);
extern ma_result
ma_audio_buffer_ref_at_end(ma_audio_buffer_ref *pAudioBufferRef);
extern ma_result
ma_audio_buffer_ref_get_available_frames(ma_audio_buffer_ref *pAudioBufferRef,
ma_uint64 *pAvailableFrames);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint64 sizeInFrames;
const void *pData;
ma_allocation_callbacks allocationCallbacks;
} ma_audio_buffer_config;
extern ma_audio_buffer_config ma_audio_buffer_config_init(
ma_format format, ma_uint32 channels, ma_uint64 sizeInFrames,
const void *pData, const ma_allocation_callbacks *pAllocationCallbacks);
typedef struct {
ma_audio_buffer_ref ref;
ma_allocation_callbacks allocationCallbacks;
ma_bool32 ownsData;
ma_uint8 _pExtraData[1];
} ma_audio_buffer;
extern ma_result ma_audio_buffer_init(const ma_audio_buffer_config *pConfig,
ma_audio_buffer *pAudioBuffer);
extern ma_result
ma_audio_buffer_init_copy(const ma_audio_buffer_config *pConfig,
ma_audio_buffer *pAudioBuffer);
extern ma_result
ma_audio_buffer_alloc_and_init(const ma_audio_buffer_config *pConfig,
ma_audio_buffer **ppAudioBuffer);
extern void ma_audio_buffer_uninit(ma_audio_buffer *pAudioBuffer);
extern void ma_audio_buffer_uninit_and_free(ma_audio_buffer *pAudioBuffer);
extern ma_uint64 ma_audio_buffer_read_pcm_frames(ma_audio_buffer *pAudioBuffer,
void *pFramesOut,
ma_uint64 frameCount,
ma_bool32 loop);
extern ma_result
ma_audio_buffer_seek_to_pcm_frame(ma_audio_buffer *pAudioBuffer,
ma_uint64 frameIndex);
extern ma_result ma_audio_buffer_map(ma_audio_buffer *pAudioBuffer,
void **ppFramesOut,
ma_uint64 *pFrameCount);
extern ma_result ma_audio_buffer_unmap(ma_audio_buffer *pAudioBuffer,
ma_uint64 frameCount);
extern ma_result ma_audio_buffer_at_end(ma_audio_buffer *pAudioBuffer);
extern ma_result
ma_audio_buffer_get_available_frames(ma_audio_buffer *pAudioBuffer,
ma_uint64 *pAvailableFrames);
typedef void ma_vfs;
typedef ma_handle ma_vfs_file;
typedef enum {
ma_seek_origin_start,
ma_seek_origin_current,
ma_seek_origin_end
} ma_seek_origin;
typedef struct {
ma_uint64 sizeInBytes;
} ma_file_info;
typedef struct {
ma_result (*onOpen)(ma_vfs *pVFS, const char *pFilePath, ma_uint32 openMode,
ma_vfs_file *pFile);
ma_result (*onOpenW)(ma_vfs *pVFS, const wchar_t *pFilePath,
ma_uint32 openMode, ma_vfs_file *pFile);
ma_result (*onClose)(ma_vfs *pVFS, ma_vfs_file file);
ma_result (*onRead)(ma_vfs *pVFS, ma_vfs_file file, void *pDst,
size_t sizeInBytes, size_t *pBytesRead);
ma_result (*onWrite)(ma_vfs *pVFS, ma_vfs_file file, const void *pSrc,
size_t sizeInBytes, size_t *pBytesWritten);
ma_result (*onSeek)(ma_vfs *pVFS, ma_vfs_file file, ma_int64 offset,
ma_seek_origin origin);
ma_result (*onTell)(ma_vfs *pVFS, ma_vfs_file file, ma_int64 *pCursor);
ma_result (*onInfo)(ma_vfs *pVFS, ma_vfs_file file, ma_file_info *pInfo);
} ma_vfs_callbacks;
extern ma_result ma_vfs_open(ma_vfs *pVFS, const char *pFilePath,
ma_uint32 openMode, ma_vfs_file *pFile);
extern ma_result ma_vfs_open_w(ma_vfs *pVFS, const wchar_t *pFilePath,
ma_uint32 openMode, ma_vfs_file *pFile);
extern ma_result ma_vfs_close(ma_vfs *pVFS, ma_vfs_file file);
extern ma_result ma_vfs_read(ma_vfs *pVFS, ma_vfs_file file, void *pDst,
size_t sizeInBytes, size_t *pBytesRead);
extern ma_result ma_vfs_write(ma_vfs *pVFS, ma_vfs_file file, const void *pSrc,
size_t sizeInBytes, size_t *pBytesWritten);
extern ma_result ma_vfs_seek(ma_vfs *pVFS, ma_vfs_file file, ma_int64 offset,
ma_seek_origin origin);
extern ma_result ma_vfs_tell(ma_vfs *pVFS, ma_vfs_file file, ma_int64 *pCursor);
extern ma_result ma_vfs_info(ma_vfs *pVFS, ma_vfs_file file,
ma_file_info *pInfo);
extern ma_result
ma_vfs_open_and_read_file(ma_vfs *pVFS, const char *pFilePath, void **ppData,
size_t *pSize,
const ma_allocation_callbacks *pAllocationCallbacks);
typedef struct {
ma_vfs_callbacks cb;
ma_allocation_callbacks allocationCallbacks;
} ma_default_vfs;
extern ma_result
ma_default_vfs_init(ma_default_vfs *pVFS,
const ma_allocation_callbacks *pAllocationCallbacks);
typedef enum { ma_resource_format_wav } ma_resource_format;
typedef struct ma_decoder ma_decoder;
typedef size_t (*ma_decoder_read_proc)(ma_decoder *pDecoder, void *pBufferOut,
size_t bytesToRead);
typedef ma_bool32 (*ma_decoder_seek_proc)(ma_decoder *pDecoder, int byteOffset,
ma_seek_origin origin);
typedef ma_uint64 (*ma_decoder_read_pcm_frames_proc)(ma_decoder *pDecoder,
void *pFramesOut,
ma_uint64 frameCount);
typedef ma_result (*ma_decoder_seek_to_pcm_frame_proc)(ma_decoder *pDecoder,
ma_uint64 frameIndex);
typedef ma_result (*ma_decoder_uninit_proc)(ma_decoder *pDecoder);
typedef ma_uint64 (*ma_decoder_get_length_in_pcm_frames_proc)(
ma_decoder *pDecoder);
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
ma_channel channelMap[32];
ma_channel_mix_mode channelMixMode;
ma_dither_mode ditherMode;
struct {
ma_resample_algorithm algorithm;
struct {
ma_uint32 lpfOrder;
} linear;
struct {
int quality;
} speex;
} resampling;
ma_allocation_callbacks allocationCallbacks;
} ma_decoder_config;
struct ma_decoder {
ma_data_source_callbacks ds;
ma_decoder_read_proc onRead;
ma_decoder_seek_proc onSeek;
void *pUserData;
ma_uint64 readPointerInBytes;
ma_uint64 readPointerInPCMFrames;
ma_format internalFormat;
ma_uint32 internalChannels;
ma_uint32 internalSampleRate;
ma_channel internalChannelMap[32];
ma_format outputFormat;
ma_uint32 outputChannels;
ma_uint32 outputSampleRate;
ma_channel outputChannelMap[32];
ma_data_converter converter;
ma_allocation_callbacks allocationCallbacks;
ma_decoder_read_pcm_frames_proc onReadPCMFrames;
ma_decoder_seek_to_pcm_frame_proc onSeekToPCMFrame;
ma_decoder_uninit_proc onUninit;
ma_decoder_get_length_in_pcm_frames_proc onGetLengthInPCMFrames;
void *pInternalDecoder;
union {
struct {
ma_vfs *pVFS;
ma_vfs_file file;
} vfs;
struct {
const ma_uint8 *pData;
size_t dataSize;
size_t currentReadPos;
} memory;
} backend;
};
extern ma_decoder_config ma_decoder_config_init(ma_format outputFormat,
ma_uint32 outputChannels,
ma_uint32 outputSampleRate);
extern ma_result ma_decoder_init(ma_decoder_read_proc onRead,
ma_decoder_seek_proc onSeek, void *pUserData,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_wav(ma_decoder_read_proc onRead,
ma_decoder_seek_proc onSeek,
void *pUserData,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_flac(ma_decoder_read_proc onRead,
ma_decoder_seek_proc onSeek,
void *pUserData,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_mp3(ma_decoder_read_proc onRead,
ma_decoder_seek_proc onSeek,
void *pUserData,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_vorbis(ma_decoder_read_proc onRead,
ma_decoder_seek_proc onSeek,
void *pUserData,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result
ma_decoder_init_raw(ma_decoder_read_proc onRead, ma_decoder_seek_proc onSeek,
void *pUserData, const ma_decoder_config *pConfigIn,
const ma_decoder_config *pConfigOut, ma_decoder *pDecoder);
extern ma_result ma_decoder_init_memory(const void *pData, size_t dataSize,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_memory_wav(const void *pData, size_t dataSize,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_memory_flac(const void *pData, size_t dataSize,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_memory_mp3(const void *pData, size_t dataSize,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_memory_vorbis(const void *pData,
size_t dataSize,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_memory_raw(const void *pData, size_t dataSize,
const ma_decoder_config *pConfigIn,
const ma_decoder_config *pConfigOut,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_vfs(ma_vfs *pVFS, const char *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_vfs_wav(ma_vfs *pVFS, const char *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_vfs_flac(ma_vfs *pVFS, const char *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_vfs_mp3(ma_vfs *pVFS, const char *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_vfs_vorbis(ma_vfs *pVFS, const char *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_vfs_w(ma_vfs *pVFS, const wchar_t *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_vfs_wav_w(ma_vfs *pVFS,
const wchar_t *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_vfs_flac_w(ma_vfs *pVFS,
const wchar_t *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_vfs_mp3_w(ma_vfs *pVFS,
const wchar_t *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_vfs_vorbis_w(ma_vfs *pVFS,
const wchar_t *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_file(const char *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_file_wav(const char *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_file_flac(const char *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_file_mp3(const char *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_file_vorbis(const char *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_file_w(const wchar_t *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_file_wav_w(const wchar_t *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_file_flac_w(const wchar_t *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_file_mp3_w(const wchar_t *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_init_file_vorbis_w(const wchar_t *pFilePath,
const ma_decoder_config *pConfig,
ma_decoder *pDecoder);
extern ma_result ma_decoder_uninit(ma_decoder *pDecoder);
extern ma_result ma_decoder_get_cursor_in_pcm_frames(ma_decoder *pDecoder,
ma_uint64 *pCursor);
extern ma_uint64 ma_decoder_get_length_in_pcm_frames(ma_decoder *pDecoder);
extern ma_uint64 ma_decoder_read_pcm_frames(ma_decoder *pDecoder,
void *pFramesOut,
ma_uint64 frameCount);
extern ma_result ma_decoder_seek_to_pcm_frame(ma_decoder *pDecoder,
ma_uint64 frameIndex);
extern ma_result ma_decoder_get_available_frames(ma_decoder *pDecoder,
ma_uint64 *pAvailableFrames);
extern ma_result ma_decode_from_vfs(ma_vfs *pVFS, const char *pFilePath,
ma_decoder_config *pConfig,
ma_uint64 *pFrameCountOut,
void **ppPCMFramesOut);
extern ma_result ma_decode_file(const char *pFilePath,
ma_decoder_config *pConfig,
ma_uint64 *pFrameCountOut,
void **ppPCMFramesOut);
extern ma_result ma_decode_memory(const void *pData, size_t dataSize,
ma_decoder_config *pConfig,
ma_uint64 *pFrameCountOut,
void **ppPCMFramesOut);
typedef struct ma_encoder ma_encoder;
typedef size_t (*ma_encoder_write_proc)(ma_encoder *pEncoder,
const void *pBufferIn,
size_t bytesToWrite);
typedef ma_bool32 (*ma_encoder_seek_proc)(ma_encoder *pEncoder, int byteOffset,
ma_seek_origin origin);
typedef ma_result (*ma_encoder_init_proc)(ma_encoder *pEncoder);
typedef void (*ma_encoder_uninit_proc)(ma_encoder *pEncoder);
typedef ma_uint64 (*ma_encoder_write_pcm_frames_proc)(ma_encoder *pEncoder,
const void *pFramesIn,
ma_uint64 frameCount);
typedef struct {
ma_resource_format resourceFormat;
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
ma_allocation_callbacks allocationCallbacks;
} ma_encoder_config;
extern ma_encoder_config
ma_encoder_config_init(ma_resource_format resourceFormat, ma_format format,
ma_uint32 channels, ma_uint32 sampleRate);
struct ma_encoder {
ma_encoder_config config;
ma_encoder_write_proc onWrite;
ma_encoder_seek_proc onSeek;
ma_encoder_init_proc onInit;
ma_encoder_uninit_proc onUninit;
ma_encoder_write_pcm_frames_proc onWritePCMFrames;
void *pUserData;
void *pInternalEncoder;
void *pFile;
};
extern ma_result ma_encoder_init(ma_encoder_write_proc onWrite,
ma_encoder_seek_proc onSeek, void *pUserData,
const ma_encoder_config *pConfig,
ma_encoder *pEncoder);
extern ma_result ma_encoder_init_file(const char *pFilePath,
const ma_encoder_config *pConfig,
ma_encoder *pEncoder);
extern ma_result ma_encoder_init_file_w(const wchar_t *pFilePath,
const ma_encoder_config *pConfig,
ma_encoder *pEncoder);
extern void ma_encoder_uninit(ma_encoder *pEncoder);
extern ma_uint64 ma_encoder_write_pcm_frames(ma_encoder *pEncoder,
const void *pFramesIn,
ma_uint64 frameCount);
typedef enum {
ma_waveform_type_sine,
ma_waveform_type_square,
ma_waveform_type_triangle,
ma_waveform_type_sawtooth
} ma_waveform_type;
typedef struct {
ma_format format;
ma_uint32 channels;
ma_uint32 sampleRate;
ma_waveform_type type;
double amplitude;
double frequency;
} ma_waveform_config;
extern ma_waveform_config
ma_waveform_config_init(ma_format format, ma_uint32 channels,
ma_uint32 sampleRate, ma_waveform_type type,
double amplitude, double frequency);
typedef struct {
ma_data_source_callbacks ds;
ma_waveform_config config;
double advance;
double time;
} ma_waveform;
extern ma_result ma_waveform_init(const ma_waveform_config *pConfig,
ma_waveform *pWaveform);
extern ma_uint64 ma_waveform_read_pcm_frames(ma_waveform *pWaveform,
void *pFramesOut,
ma_uint64 frameCount);
extern ma_result ma_waveform_seek_to_pcm_frame(ma_waveform *pWaveform,
ma_uint64 frameIndex);
extern ma_result ma_waveform_set_amplitude(ma_waveform *pWaveform,
double amplitude);
extern ma_result ma_waveform_set_frequency(ma_waveform *pWaveform,
double frequency);
extern ma_result ma_waveform_set_type(ma_waveform *pWaveform,
ma_waveform_type type);
extern ma_result ma_waveform_set_sample_rate(ma_waveform *pWaveform,
ma_uint32 sampleRate);
typedef enum {
ma_noise_type_white,
ma_noise_type_pink,
ma_noise_type_brownian
} ma_noise_type;
typedef struct {
ma_format format;
ma_uint32 channels;
ma_noise_type type;
ma_int32 seed;
double amplitude;
ma_bool32 duplicateChannels;
} ma_noise_config;
extern ma_noise_config ma_noise_config_init(ma_format format,
ma_uint32 channels,
ma_noise_type type, ma_int32 seed,
double amplitude);
typedef struct {
ma_data_source_callbacks ds;
ma_noise_config config;
ma_lcg lcg;
union {
struct {
double bin[32][16];
double accumulation[32];
ma_uint32 counter[32];
} pink;
struct {
double accumulation[32];
} brownian;
} state;
} ma_noise;
extern ma_result ma_noise_init(const ma_noise_config *pConfig,
ma_noise *pNoise);
extern ma_uint64 ma_noise_read_pcm_frames(ma_noise *pNoise, void *pFramesOut,
ma_uint64 frameCount);
extern ma_result ma_noise_set_amplitude(ma_noise *pNoise, double amplitude);
extern ma_result ma_noise_set_seed(ma_noise *pNoise, ma_int32 seed);
extern ma_result ma_noise_set_type(ma_noise *pNoise, ma_noise_type type);
| 39.944644 | 80 | 0.633392 |
ecadba2258c1b2733261ceff88a27a156c2c8596 | 1,654 | h | C | IKImagePicker.h | aptonic/frenzy | 8272c77d40ac06724c2cbce12aeabe4c9b27ad5a | [
"MIT"
] | 20 | 2015-01-04T11:04:57.000Z | 2021-11-08T09:58:58.000Z | IKImagePicker.h | alehouse/frenzy | 2846ec75da69c0e6f92c74fd2776198cc5024e68 | [
"MIT"
] | 1 | 2018-10-12T21:39:04.000Z | 2018-10-12T21:39:04.000Z | IKImagePicker.h | alehouse/frenzy | 2846ec75da69c0e6f92c74fd2776198cc5024e68 | [
"MIT"
] | 2 | 2015-11-07T19:27:14.000Z | 2016-01-18T18:35:45.000Z | //
// IKImagePicker.h
// Frenzy
//
// Created by John Winter on 22/07/11.
// Copyright 2011 Aptonic Software. All rights reserved.
//
@interface IKImagePicker : IKPictureTaker
{
}
+ (IKImagePicker *) imagePicker;
- (void) beginImagePickerWithDelegate:(id) delegate didEndSelector:(SEL) didEndSelector contextInfo:(void *) contextInfo;
- (void) beginImagePickerSheetForWindow:(NSWindow *)aWindow withDelegate:(id) delegate didEndSelector:(SEL) didEndSelector contextInfo:(void *) contextInfo;
@end
#define IKImagePickerAllowsVideoCaptureKey IKPictureTakerAllowsVideoCaptureKey
#define IKImagePickerAllowsFileChoosingKey IKPictureTakerAllowsFileChoosingKey
#define IKImagePickerShowRecentPictureKey IKPictureTakerShowRecentPictureKey
#define IKImagePickerUpdateRecentPictureKey IKPictureTakerUpdateRecentPictureKey
#define IKImagePickerAllowsEditingKey IKPictureTakerAllowsEditingKey
#define IKImagePickerShowEffectsKey IKPictureTakerShowEffectsKey
#define IKImagePickerInformationalTextKey IKPictureTakerInformationalTextKey
#define IKImagePickerImageTransformsKey IKPictureTakerImageTransformsKey
#define IKImagePickerOutputImageMaxSizeKey IKPictureTakerOutputImageMaxSizeKey
#define IKImagePickerCropAreaSizeKey IKPictureTakerCropAreaSizeKey
extern NSString *const IKPictureTakerShowAddressBookPicture;
extern NSString *const IKPictureTakerShowEmptyPicture;
/* old types for layerForType: */
extern NSString *const IKImageBrowserCellLayerTypeBackground;
extern NSString *const IKImageBrowserCellLayerTypeForeground;
extern NSString *const IKImageBrowserCellLayerTypeSelection;
extern NSString *const IKImageBrowserCellLayerTypePlaceHolder;
| 42.410256 | 157 | 0.870012 |
ecae1123f730280f3329afb4ad7ee2d2cc1ce103 | 53,212 | c | C | source/Ssp/ssp_dbus.c | cablelabs/CcspPsm | b1dc285925355ec7e5c4f8965e2f5a5a07ccadb5 | [
"Apache-2.0"
] | null | null | null | source/Ssp/ssp_dbus.c | cablelabs/CcspPsm | b1dc285925355ec7e5c4f8965e2f5a5a07ccadb5 | [
"Apache-2.0"
] | null | null | null | source/Ssp/ssp_dbus.c | cablelabs/CcspPsm | b1dc285925355ec7e5c4f8965e2f5a5a07ccadb5 | [
"Apache-2.0"
] | null | null | null | /*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* 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.
*/
/**********************************************************************
Copyright [2014] [Cisco Systems, Inc.]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
**********************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <ccsp_message_bus.h>
#include <ccsp_base_api.h>
#include <sys/time.h>
#include <time.h>
#include <slap_definitions.h>
#include <ccsp_psm_helper.h>
#include "ssp_global.h"
#include "ansc_tso_interface.h"
extern void *bus_handle;
extern PPSM_SYS_REGISTRY_OBJECT pPsmSysRegistry;
extern char g_Subsystem[32];
extern char* pComponentName;
extern BOOL g_bLogEnable;
#define CCSP_COMMON_COMPONENT_HEALTH_Red 1
#define CCSP_COMMON_COMPONENT_HEALTH_Yellow 2
#define CCSP_COMMON_COMPONENT_HEALTH_Green 3
int g_psmHealth = CCSP_COMMON_COMPONENT_HEALTH_Red;
PDSLH_CPE_CONTROLLER_OBJECT pDslhCpeController = NULL;
char g_NewConfigPath[256] = "";
typedef struct
_PARAMETER_INFO
{
SINGLE_LINK_ENTRY Linkage;
parameterInfoStruct_t *val;
}
PARAMETER_INFO, *PPARAMETER_INFO;
typedef struct
_PARAMETER_VALUE
{
SINGLE_LINK_ENTRY Linkage;
parameterValStruct_t *val;
}
PARAMETER_VALUE, *PPARAMETER_VALUE;
name_spaceType_t NamespacePsm[] =
{
{"com.cisco.spvtg.ccsp.psm", ccsp_none},
{"com.cisco.spvtg.ccsp.command.FactoryReset", ccsp_boolean},
{"com.cisco.spvtg.ccsp.psm.Name", ccsp_string},
{"com.cisco.spvtg.ccsp.psm.Version", ccsp_unsignedInt},
{"com.cisco.spvtg.ccsp.psm.Author", ccsp_string},
{"com.cisco.spvtg.ccsp.psm.Health", ccsp_string},
{"com.cisco.spvtg.ccsp.psm.State", ccsp_unsignedInt},
{"com.cisco.spvtg.ccsp.psm.DTXml", ccsp_string},
{"com.cisco.spvtg.ccsp.psm.DisableWriting", ccsp_boolean},
{"com.cisco.spvtg.ccsp.psm.Logging.Enable", ccsp_boolean},
{"com.cisco.spvtg.ccsp.psm.Logging.LogLevel", ccsp_unsignedInt},
{"com.cisco.spvtg.ccsp.psm.Memory.MinUsage", ccsp_unsignedInt},
{"com.cisco.spvtg.ccsp.psm.Memory.MaxUsage", ccsp_unsignedInt},
{"com.cisco.spvtg.ccsp.psm.Memory.Consumed", ccsp_unsignedInt},
{"com.cisco.spvtg.ccsp.psm.ReloadConfig", ccsp_boolean},
{"com.cisco.spvtg.ccsp.psm.UpdateConfigs", ccsp_boolean},
{"com.cisco.spvtg.ccsp.psm.NewConfigPath", ccsp_string},
};
static const char* PSM_Introspect_msg =
"<xml version=\"1.0\" encoding=\"UTF-8\">\n"
"<node name=\"/com/cisco/spvtg/ccsp/PersistentStorage\">\n"
" <interface name=\"com.cisco.spvtg.ccsp.baseInterface\">\n"
" \n"
" <method name=\"initialize\">\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" <method name=\"finalize\">\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" \n"
" <!--\n"
" This API frees up resources such as allocated memory, flush caches etc, if possible. \n"
" This is invoked by Test and Diagnostic Manager, as a proactive measure, when it \n"
" detects low memory conditions. \n"
" -->\n"
" <method name=\"freeResources\">\n"
" <arg type=\"i\" name=\"priority\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" \n"
" <!--\n"
" DEPRECATED\n"
" This API is used to retrieve the Component Metadata. The Component Metadata \n"
" includes the following information: \n"
" - Component Name\n"
" - Component Author \n"
" - Component Version \n"
" -->\n"
" <method name=\"getComponentMetadata\">\n"
" <arg type=\"s\" name=\"component_name\" direction=\"out\" />\n"
" <arg type=\"s\" name=\"component_author\" direction=\"out\" />\n"
" <arg type=\"s\" name=\"component_version\" direction=\"out\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" \n"
" <!-- \n"
" DEPRECATED \n"
" Logging APIs \n"
" -->\n"
" <method name=\"enableLogging\">\n"
" <arg type=\"b\" name=\"enable\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" <!-- DEPRECATED -->\n"
" <method name=\"setLoggingLevel\">\n"
" <arg type=\"i\" name=\"level\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
"\n"
" <!-- \n"
" DEPRECATED\n"
" This API returns the internal state of the component. The state reflects the \n"
" Component\'s internal lifecycle state\n"
" -->\n"
" <method name=\"queryStatus\">\n"
" <arg type=\"i\" name=\"internalState\" direction=\"out\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method> \n"
" \n"
" <!-- \n"
" DEPRECATED \n"
" This API returns the health of the component as \'Red/Bad\', \'Yellow/warning\', \'Green/good\' \n"
" -->\n"
" <method name=\"healthCheck\">\n"
" <arg type=\"i\" name=\"health\" direction=\"out\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method> \n"
" \n"
" <!--\n"
" DEPRECATED\n"
" This API returns the amount of direct memory allocated by the component. Typically the \n"
" Process statistics can be retrieved by querying the /proc/<PID> file system under \n"
" Linux OS. However, in cases where more than one component are grouped into a \n"
" single process, this API provides component level memory usage which can be very \n"
" useful to isolate low memory conditions. \n"
" -->\n"
" <method name=\"getAllocatedMemory\">\n"
" <arg type=\"i\" name=\"directAllocatedMemory\" direction=\"out\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method> \n"
" \n"
" <!-- \n"
" DEPRECATED\n"
" This API returns the mmaximum memory requirements for the component. It is the \n"
" component owner\'s best estimates \n"
" -->\n"
" <method name=\"getMaxMemoryUsage\">\n"
" <arg type=\"i\" name=\"memoryUsage\" direction=\"out\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method> \n"
" \n"
" <!-- \n"
" DEPRECATED\n"
" This API returns the minimum memory requirements for the component. It is the \n"
" component owner\'s best estimates \n"
" -->\n"
" <method name=\"getMinMemoryUsage\">\n"
" <arg type=\"i\" name=\"memoryUsage\" direction=\"out\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method> \n"
" \n"
" <!-- Data model parameters \"set\" APIs\n"
" typedef struct {\n"
" const char *parameterName; \n"
" unsigned char *parameterValue;\n"
" dataType_e type; \n"
" } parameterValStruct_t; \n"
" \n"
" typedef enum {\n"
" ccsp_string = 0, \n"
" ccsp_int,\n"
" ccsp_unsignedInt,\n"
" ccsp_boolean,\n"
" ccsp_dateTime,\n"
" ccsp_base64,\n"
" ccsp_long, \n"
" ccsp_unsignedLong, \n"
" ccsp_float, \n"
" ccsp_double,\n"
" ccsp_byte, // char \n"
" (any other simple type that I may have missed), \n"
" ccsp_none \n"
" } datatype_e\n"
" -->\n"
" <method name=\"setParameterValues\">\n"
" <arg type=\"i\" name=\"sessionId\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"writeID\" direction=\"in\" />\n"
" <arg type=\"a(ssi)\" name=\"parameterValStruct\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"size\" direction=\"in\" />\n"
" <arg type=\"b\" name=\"commit\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" \n"
" <method name=\"setCommit\">\n"
" <arg type=\"i\" name=\"sessionId\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"writeID\" direction=\"in\" />\n"
" <arg type=\"b\" name=\"commit\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" \n"
" <!-- Data model parameters \"get\" APIs -->\n"
" <method name=\"getParameterValues\">\n"
" <arg type=\"as\" name=\"parameterNames\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"size\" direction=\"in\" />\n"
" <arg type=\"a(ss)\" name=\"parameterValStruct\" direction=\"out\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" \n"
" <!-- \n"
" This API sets the attributes on data model parameters\n"
" typedef struct { \n"
" const char* parameterName; \n"
" boolean notificationChanged; \n"
" boolean notification; \n"
" enum access_e access; // (CCSP_RO, CCSP_RW, CCSP_WO)\n"
" boolean accessControlChanged; \n"
" unsigned int accessControlBitmask;\n"
" // 0x00000000 ACS\n"
" // 0x00000001 XMPP\n"
" // 0x00000002 CLI\n"
" // 0x00000004 WebUI\n"
" // ... \n"
" // 0xFFFFFFFF ANYBODY (reserved and default value for all parameters)\n"
" } parameterAttribStruct_t; \n"
" -->\n"
" <method name=\"setParameterAttributes\">\n"
" <arg type=\"i\" name=\"sessionId\" direction=\"in\" />\n"
" <arg type=\"a(sbbibi)\" name=\"parameterAttributeStruct\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"size\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" \n"
" <method name=\"getParameterAttributes\">\n"
" <arg type=\"as\" name=\"parameterNames\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"size\" direction=\"in\" />\n"
" <arg type=\"a(sbii)\" name=\"parameterAttributeStruct\" direction=\"out\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" \n"
" <!-- \n"
" This API adds a row to a table object. The object name is a partial path \n"
" and must end with a \".\" (dot). The API returns the instance number of the \n"
" row.\n"
" -->\n"
" <method name=\"AddTblRow\">\n"
" <arg type=\"i\" name=\"sessionId\" direction=\"in\" />\n"
" <arg type=\"s\" name=\"objectName\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"instanceNumber\" direction=\"out\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" \n"
" <!-- \n"
" This API deletes a row from the table object. The object name is a partial \n"
" path and must end with a \".\" (dot) after the instance number.\n"
" -->\n"
" <method name=\"DeleteTblRow\">\n"
" <arg type=\"i\" name=\"sessionId\" direction=\"in\" />\n"
" <arg type=\"s\" name=\"objectName\" direction=\"in\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" \n"
" <!--\n"
" This API is used to return the supported parameter names under a data model object\n"
" parameterName is either a complete Parameter name, or a partial path name of an object. \n"
" nextLevel \n"
" If false, the response MUST contain the Parameter or object whose name exactly\n"
" matches the ParameterPath argument, plus all Parameters and objects that are\n"
" descendents of the object given by the ParameterPath argument, if any (all levels\n"
" below the specified object in the object hierarchy).\n"
" \n"
" If true, the response MUST contain all Parameters and objects that are next-level\n"
" children of the object given by the ParameterPath argument, if any.\n"
" parameterInfoStruct is defined as: \n"
" typedef struct {\n"
" comst char *name; \n"
" boolean writable; \n"
" }\n"
" -->\n"
" <method name=\"getParameterNames\">\n"
" <arg type=\"s\" name=\"parameterName\" direction=\"in\" />\n"
" <arg type=\"b\" name=\"nextLevel\" direction=\"in\" />\n"
" <arg type=\"a(sb)\" name=\"parameterInfoStruct\" direction=\"out\" />\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" \n"
" <!-- \n"
" This API is used in diagnostic mode. This must be used asynchronously. \n"
" The use case is that the Test and Diagnostic Manager (TDM) CCSP component can leverage this feature \n"
" in the Component Registrar to validate parameter types. The TDM sends commands to other components to \n"
" run diagnostics. The TDM invokes a buscheck() request to each component one at a time in diagnostic mode. \n"
" When each component receives buscheck(), it invokes the namespace type check API in the Component \n"
" Registrar for each of the data model parameters accessed by this component and owned by another component. \n"
" The Component Registrar verifies that each data model parameter is registered by a component and that the \n"
" data model type specified in the API is the same as the data model type registered by the \'owner\' component. \n"
" The component sends TDM a response to buscheck() with all checked parameter names and PASS/FAIL for each \n"
" parameter. If during buscheck(), it is found that there are missing or unregistered parameters, \n"
" appropriate errors are flagged. \n"
" -->\n"
" <method name=\"busCheck\">\n"
" <arg type=\"i\" name=\"status\" direction=\"out\" />\n"
" </method>\n"
" \n"
" <!--\n"
" Signal contains the following information: \n"
" typedef struct {\n"
" const char *parameterName; \n"
" const char* oldValue; \n"
" const char* int newValue;\n"
" unsigned int writeID; \n"
" } parameterSigStruct_t; \n"
" -->\n"
" <signal name=\"parameterValueChangeSignal\">\n"
" <arg type=\"a(sssi)\" name=\"parameterSigStruct\" direction=\"out\" />\n"
" <arg type=\"i\" name=\"size\" direction=\"out\" />\n"
" </signal>\n"
" \n"
" \n"
" </interface>\n"
"</node>\n"
;
ANSC_STATUS getCommParam(
char *paramName,
PPARAMETER_VALUE *ppParameterValue
)
{
PPARAMETER_VALUE pParameterValue;
CcspTraceInfo((" inside getCommParam\n"));
pParameterValue = AnscAllocateMemory(sizeof(PARAMETER_VALUE));
pParameterValue->val = AnscAllocateMemory(sizeof(parameterValStruct_t));
memset(pParameterValue->val, 0, sizeof(parameterValStruct_t));
pParameterValue->val->parameterName = AnscAllocateMemory(strlen(paramName)+1);
strcpy(pParameterValue->val->parameterName, paramName);
if ( strcmp(paramName, "com.cisco.spvtg.ccsp.command.FactoryReset") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(8);
strcpy(pParameterValue->val->parameterValue, "false");
pParameterValue->val->type = ccsp_boolean;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.Name") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(128);
strcpy(pParameterValue->val->parameterValue, pComponentName);
pParameterValue->val->type = ccsp_string;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.Version") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(8);
sprintf(pParameterValue->val->parameterValue, "%d", CCSP_COMPONENT_VERSION_PSM);
pParameterValue->val->type = ccsp_unsignedInt;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.Author") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(32);
strcpy(pParameterValue->val->parameterValue, CCSP_COMPONENT_AUTHOR_PSM);
pParameterValue->val->type = ccsp_string;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.Health") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(8);
strcpy(pParameterValue->val->parameterValue, "Green");
pParameterValue->val->type = ccsp_string;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.State") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(8);
sprintf(pParameterValue->val->parameterValue, "%d", 1);
pParameterValue->val->type = ccsp_unsignedInt;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.DTXml") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(8);
strcpy(pParameterValue->val->parameterValue, "Null");
pParameterValue->val->type = ccsp_string;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.DisableWriting") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(8);
if ( pPsmSysRegistry && (pPsmSysRegistry->FileSyncRefCount > 0) )
{
strcpy(pParameterValue->val->parameterValue, "true");
}
else
{
strcpy(pParameterValue->val->parameterValue, "false");
}
pParameterValue->val->type = ccsp_boolean;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.Logging.Enable") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(8);
if ( g_bLogEnable )
{
strcpy(pParameterValue->val->parameterValue, "true");
}
else
{
strcpy(pParameterValue->val->parameterValue, "false");
}
pParameterValue->val->type = ccsp_boolean;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.Logging.LogLevel") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(128);
sprintf(pParameterValue->val->parameterValue, "%d", g_iTraceLevel);
pParameterValue->val->type = ccsp_unsignedInt;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.Memory.MinUsage") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(128);
sprintf(pParameterValue->val->parameterValue, "%d", 0);
pParameterValue->val->type = ccsp_unsignedInt;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.Memory.MaxUsage") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(128);
sprintf(pParameterValue->val->parameterValue, "%lu", g_ulAllocatedSizePeak);
pParameterValue->val->type = ccsp_unsignedInt;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.Memory.Consumed") == 0 )
{
LONG lMemSize = 0;
lMemSize = AnscGetComponentMemorySize(pComponentName);
if ( lMemSize == -1 )
lMemSize = 0;
pParameterValue->val->parameterValue = AnscAllocateMemory(128);
sprintf(pParameterValue->val->parameterValue, "%lu", (ULONG)lMemSize);
pParameterValue->val->type = ccsp_unsignedInt;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.ReloadConfig") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(8);
strcpy(pParameterValue->val->parameterValue, "false");
pParameterValue->val->type = ccsp_boolean;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.UpdateConfigs") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(16);
strcpy(pParameterValue->val->parameterValue, "false");
pParameterValue->val->type = ccsp_boolean;
}
else if ( strcmp(paramName, "com.cisco.spvtg.ccsp.psm.NewConfigPath") == 0 )
{
pParameterValue->val->parameterValue = AnscAllocateMemory(256);
strcpy(pParameterValue->val->parameterValue, g_NewConfigPath);
pParameterValue->val->type = ccsp_string;
}
*ppParameterValue = pParameterValue;
CcspTraceInfo((" getCommParam exit\n"));
return ANSC_STATUS_SUCCESS;
}
ANSC_STATUS doFactoryResetTask
(
ANSC_HANDLE hContext
)
{
PPSM_SYS_REGISTRY_OBJECT pSroHandle = (PPSM_SYS_REGISTRY_OBJECT)hContext;
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
char CrName[256];
parameterValStruct_t val[1];
char* pStr;
/* factory reset the PSM */
returnStatus = pSroHandle->ResetToFactoryDefault((ANSC_HANDLE)pSroHandle);
CcspTraceInfo((" doFactoryResetTask begins\n"));
if ( returnStatus == ANSC_STATUS_SUCCESS )
{
PsmHal_RestoreFactoryDefaults();
/* reboot the box */
if ( g_Subsystem[0] != 0 )
{
_ansc_sprintf(CrName, "%s%s", g_Subsystem, CCSP_DBUS_INTERFACE_CR);
}
else
{
AnscCopyString(CrName, CCSP_DBUS_INTERFACE_CR);
}
val[0].parameterName = "com.cisco.spvtg.ccsp.rm.Reboot.Enable";
val[0].parameterValue = "true";
val[0].type = ccsp_boolean;
CcspBaseIf_SetRemoteParameterValue
(
bus_handle,
CrName,
"com.cisco.spvtg.ccsp.rm.Reboot.Enable",
g_Subsystem,
0,
0xFFFF,
val,
1,
1,
&pStr
);
if ( pStr )
{
AnscFreeMemory(pStr);
}
}
CcspTraceInfo((" doFactoryResetTask exit\n"));
return returnStatus;
}
int doFactoryReset
(
ANSC_HANDLE hContext
)
{
CcspTraceInfo((" doFactoryReset begins\n"));
/* since reboot will invoke from reboot manager, need to start another thread to make new DBus call */
AnscSpawnTask
(
(void*)doFactoryResetTask,
hContext,
"CcspPsmFactoryResetTask"
);
CcspTraceInfo((" doFactoryReset exit\n"));
return 0;
}
int getParameterValues(
unsigned int writeID,
char * parameterNames[],
int size,
int *val_size,
parameterValStruct_t ***param_val,
void * user_data
)
{
parameterValStruct_t **val = NULL;
PSYS_INFO_REPOSITORY_OBJECT pSysInfoRepository = (PSYS_INFO_REPOSITORY_OBJECT)NULL;
PSYS_IRA_INTERFACE pSysIraIf = (PSYS_IRA_INTERFACE )NULL;
ANSC_HANDLE hSysRoot = NULL;
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
ULONG ulRecordType;
ULONG ulRecordSize;
PSYS_RRO_RENDER_ATTR pRroRenderAttr = (PSYS_RRO_RENDER_ATTR)NULL;
PPARAMETER_VALUE pParameterValue = (PPARAMETER_VALUE)NULL;
SLIST_HEADER ParameterValueList;
int i;
// CcspTraceInfo((" inside getParameterValues\n"));
if ( g_psmHealth != CCSP_COMMON_COMPONENT_HEALTH_Green )
{
CcspTraceInfo(("!!! PSM is not ready !!!\n"));
return CCSP_FAILURE;
}
if ( pPsmSysRegistry == NULL )
{
CcspTraceInfo(("getParameterValues- pPsmSysRegistry is NULL\n"));
return CCSP_FAILURE;
}
pSysInfoRepository = pPsmSysRegistry->hSysInfoRepository;
if ( pSysInfoRepository == NULL )
{
CcspTraceInfo(("getParameterValues- pSysInfoRepository is NULL\n"));
return CCSP_FAILURE;
}
pSysIraIf = (PSYS_IRA_INTERFACE)pSysInfoRepository->GetIraIf((ANSC_HANDLE)pSysInfoRepository);
pSysIraIf->AcqThreadLock(pSysIraIf->hOwnerContext);
hSysRoot =
pSysIraIf->OpenFolder
(
pSysIraIf->hOwnerContext,
(ANSC_HANDLE)NULL,
"/Configuration/Provision"
);
if ( hSysRoot == NULL )
{
CcspTraceInfo(("getParameterValues- hSysRoot is NULL\n"));
pSysIraIf->RelThreadLock(pSysIraIf->hOwnerContext);
return CCSP_FAILURE;
}
AnscSListInitializeHeader(&ParameterValueList);
*val_size = 0;
for ( i = 0; i < size; i++ )
{
int k, bComm = 0;
for ( k = 1; k < sizeof(NamespacePsm)/sizeof(name_spaceType_t); k++ )
{
if ( strcmp(parameterNames[i], NamespacePsm[k].name_space) == 0 )
{
returnStatus = getCommParam(parameterNames[i], &pParameterValue);
*val_size = *val_size + 1;
AnscSListPushEntry(&ParameterValueList, &pParameterValue->Linkage);
bComm = 1;
break;
}
}
if ( bComm )
{
continue;
}
CcspTraceWarning(("call get record value for %s +++\n", parameterNames[i]));
returnStatus =
pSysIraIf->GetRecord
(
pSysIraIf->hOwnerContext,
hSysRoot,
parameterNames[i],
&ulRecordType,
NULL,
NULL,
&ulRecordSize
);
if ( returnStatus != ANSC_STATUS_BAD_SIZE )
{
if(returnStatus != ANSC_STATUS_SUCCESS)
{
CcspTraceWarning(("++++ getParameterValues Failed for %s , returnStatus %d +++\n", parameterNames[i], returnStatus));
//CcspTraceWarning(("getParameterValues- returnStatus %d\n",returnStatus));
//CcspTraceInfo(("Release Thread Lock %d\n"));
pSysIraIf->RelThreadLock(pSysIraIf->hOwnerContext);
return CCSP_FAILURE;
}
}
else
{
*val_size = *val_size + 1;
returnStatus = ANSC_STATUS_FAILURE;
if(pParameterValue = AnscAllocateMemory(sizeof(PARAMETER_VALUE)))
{
if(pParameterValue->val = AnscAllocateMemory(sizeof(parameterValStruct_t)))
{
memset(pParameterValue->val, 0, sizeof(parameterValStruct_t));
if(pParameterValue->val->parameterName = AnscAllocateMemory(strlen(parameterNames[i])+1))
{
strcpy(pParameterValue->val->parameterName, parameterNames[i]);
if(pParameterValue->val->parameterValue = AnscAllocateMemory(ulRecordSize+1))
{
returnStatus =
pSysIraIf->GetRecord
(
pSysIraIf->hOwnerContext,
hSysRoot,
parameterNames[i],
&ulRecordType,
(PANSC_HANDLE)&pRroRenderAttr,
pParameterValue->val->parameterValue,
&ulRecordSize
);
if(returnStatus != ANSC_STATUS_SUCCESS)
{
//CcspTraceWarning(("++++ Failed for %s +++\n", parameterNames[i]));
CcspTraceInfo(("getParameterValues- returnStatus %d\n",returnStatus));
// CcspTraceInfo(("Release Thread Lock %d\n"));
/* RDKB-6908, CID-33005, free unused resource before exit,
** if checks are added to avoid crashed in case malloc fails.
*/
pSysIraIf->RelThreadLock(pSysIraIf->hOwnerContext);
AnscFreeMemory(pParameterValue->val->parameterValue);
AnscFreeMemory(pParameterValue->val->parameterName);
AnscFreeMemory(pParameterValue->val);
AnscFreeMemory(pParameterValue);
return CCSP_FAILURE;
}
pParameterValue->val->type = pRroRenderAttr->ContentType;
AnscSListPushEntry(&ParameterValueList, &pParameterValue->Linkage);
}
else
{
AnscFreeMemory(pParameterValue->val->parameterName);
AnscFreeMemory(pParameterValue->val);
AnscFreeMemory(pParameterValue);
}
}
else
{
AnscFreeMemory(pParameterValue->val);
AnscFreeMemory(pParameterValue);
}
}
else
{
AnscFreeMemory(pParameterValue);
}
}
}
}
if ( *val_size > 0 )
{
int k = *val_size;
PSINGLE_LINK_ENTRY pSLinkEntry = NULL;
val = AnscAllocateMemory(*val_size*sizeof(parameterValStruct_t *));
memset(val, 0, *val_size*sizeof(parameterValStruct_t *));
for ( ; k > 0; k-- )
{
pSLinkEntry = AnscSListPopEntry(&ParameterValueList);
pParameterValue = ACCESS_CONTAINER(pSLinkEntry, PARAMETER_VALUE, Linkage);
val[k-1] = pParameterValue->val;
AnscFreeMemory(pParameterValue);
CcspTraceDebug(("getParameterValues -- *val_size:%d, %s: %s\n", *val_size, val[k-1]->parameterName, val[k-1]->parameterValue ));
}
}
*param_val = val;
if ( hSysRoot )
{
// CcspTraceInfo((" getParameterValues -hSysRoot\n"));
pSysIraIf->CloseFolder(pSysIraIf->hOwnerContext, hSysRoot);
}
pSysIraIf->RelThreadLock(pSysIraIf->hOwnerContext);
// CcspTraceInfo((" getParameterValues exit\n"));
return CCSP_SUCCESS;
}
int setParameterValues(
int sessionId,
unsigned int writeID,
parameterValStruct_t *val,
int size,
dbus_bool commit,
char **str,
void *user_data
)
{
PSYS_INFO_REPOSITORY_OBJECT pSysInfoRepository = (PSYS_INFO_REPOSITORY_OBJECT)NULL;
PSYS_IRA_INTERFACE pSysIraIf = (PSYS_IRA_INTERFACE )NULL;
ANSC_HANDLE hSysRoot = NULL;
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
SYS_RRO_RENDER_ATTR rroRenderAttr;
PPSM_FILE_LOADER_OBJECT pPsmFileLoader = (PPSM_FILE_LOADER_OBJECT )pPsmSysRegistry->hPsmFileLoader;
PANSC_TIMER_DESCRIPTOR_OBJECT pRegTimerObj = (PANSC_TIMER_DESCRIPTOR_OBJECT)pPsmSysRegistry->hRegTimerObj;
int i;
// CcspTraceInfo((" inside setParameterValues \n"));
if ( g_psmHealth != CCSP_COMMON_COMPONENT_HEALTH_Green )
{
CcspTraceInfo(("!!! PSM is not ready !!!\n"));
return CCSP_FAILURE;
}
if ( pPsmSysRegistry == NULL )
{
CcspTraceInfo(("setParameterValues- pPsmSysRegistry is NULL\n"));
return CCSP_FAILURE;
}
pSysInfoRepository = pPsmSysRegistry->hSysInfoRepository;
if ( pSysInfoRepository == NULL )
{
CcspTraceInfo(("setParameterValues- pSysInfoRepository is NULL\n"));
return CCSP_FAILURE;
}
pSysIraIf = (PSYS_IRA_INTERFACE)pSysInfoRepository->GetIraIf((ANSC_HANDLE)pSysInfoRepository);
pSysIraIf->AcqThreadLock(pSysIraIf->hOwnerContext);
hSysRoot =
pSysIraIf->OpenFolder
(
pSysIraIf->hOwnerContext,
(ANSC_HANDLE)NULL,
"/Configuration/Provision"
);
if ( hSysRoot == NULL )
{
CcspTraceInfo(("setParameterValues- hSysRoot is NULL\n"));
pSysIraIf->RelThreadLock(pSysIraIf->hOwnerContext);
return CCSP_FAILURE;
}
SysInitRroRenderAttr((&rroRenderAttr));
for ( i = 0; i < size; i++ )
{
if ( strcmp(val[i].parameterName, "com.cisco.spvtg.ccsp.command.FactoryReset") == 0 )
{
if ( (strcmp(val[i].parameterValue, "1") == 0)
|| (strcmp(val[i].parameterValue, "true") == 0)
|| (strcmp(val[i].parameterValue, "TRUE") == 0) )
{
doFactoryReset((ANSC_HANDLE)pPsmSysRegistry);
}
continue;
}
else if ( strcmp(val[i].parameterName, "com.cisco.spvtg.ccsp.psm.Logging.Enable") == 0 )
{
if ( (strcmp(val[i].parameterValue, "1") == 0)
|| (strcmp(val[i].parameterValue, "true") == 0)
|| (strcmp(val[i].parameterValue, "TRUE") == 0) )
{
g_bLogEnable = TRUE;
}
else
{
g_bLogEnable = FALSE;
}
continue;
}
else if ( strcmp(val[i].parameterName, "com.cisco.spvtg.ccsp.psm.Logging.LogLevel") == 0 )
{
g_iTraceLevel = strtol(val[i].parameterValue, NULL, 10);
continue;
}
else if ( strcmp(val[i].parameterName, "com.cisco.spvtg.ccsp.psm.DisableWriting") == 0 )
{
if ( (strcmp(val[i].parameterValue, "1") == 0)
|| (strcmp(val[i].parameterValue, "true") == 0)
|| (strcmp(val[i].parameterValue, "TRUE") == 0) )
{
pPsmSysRegistry->SysRamEnableFileSync((ANSC_HANDLE)pPsmSysRegistry, TRUE);
}
else
{
pPsmSysRegistry->SysRamEnableFileSync((ANSC_HANDLE)pPsmSysRegistry, FALSE);
}
continue;
}
else if ( strcmp(val[i].parameterName, "com.cisco.spvtg.ccsp.psm.ReloadConfig") == 0 )
{
if ( (strcmp(val[i].parameterValue, "1") == 0)
|| (strcmp(val[i].parameterValue, "true") == 0)
|| (strcmp(val[i].parameterValue, "TRUE") == 0) )
{
// pSysIraIf->ClearFolder(pSysIraIf->hOwnerContext, hSysRoot);
pPsmSysRegistry->SaveConfigToFlash(pPsmSysRegistry);
pPsmSysRegistry->bNoSave = FALSE;
pRegTimerObj->Start((ANSC_HANDLE)pRegTimerObj);
pPsmFileLoader->LoadRegFile((ANSC_HANDLE)pPsmFileLoader);
}
continue;
}
else if ( strcmp(val[i].parameterName, "com.cisco.spvtg.ccsp.psm.UpdateConfigs") == 0 )
{
if ( (strcmp(val[i].parameterValue, "1") == 0)
|| (strcmp(val[i].parameterValue, "true") == 0)
|| (strcmp(val[i].parameterValue, "TRUE") == 0) )
{
PSM_CFM_INTERFACE *cfmif = (PSM_CFM_INTERFACE *)pPsmSysRegistry->hPsmCfmIf;
if (cfmif && cfmif->UpdateConfigs)
cfmif->UpdateConfigs(pPsmSysRegistry, g_NewConfigPath);
}
continue;
}
else if ( strcmp(val[i].parameterName, "com.cisco.spvtg.ccsp.psm.NewConfigPath") == 0 )
{
snprintf(g_NewConfigPath, sizeof(g_NewConfigPath), "%s", val[i].parameterValue);
continue;
}
rroRenderAttr.ContentType = val[i].type;
returnStatus =
pSysIraIf->AddRecord2
(
pSysIraIf->hOwnerContext,
hSysRoot,
val[i].parameterName,
SYS_RRO_PERMISSION_ALL,
SYS_REP_RECORD_TYPE_ASTR,
(ANSC_HANDLE)&rroRenderAttr,
(PVOID)val[i].parameterValue,
strlen(val[i].parameterValue)
);
//CcspTraceWarning(("setParameterValues -- size:%d, %s: %s\n", size, val[i].parameterName, val[i].parameterValue));
if ( returnStatus != ANSC_STATUS_SUCCESS )
{
CcspTraceError(("+++ Add entry: size:%d , param : %s , val : %s failed! , return %d +++\n", size, val[i].parameterName, val[i].parameterValue, returnStatus));
}
}
pSysIraIf->CloseFolder(pSysIraIf->hOwnerContext, hSysRoot);
pSysIraIf->RelThreadLock(pSysIraIf->hOwnerContext);
// CcspTraceInfo((" setParameterValues exit\n"));
return CCSP_SUCCESS;
}
int setCommit(
int sessionId,
unsigned int writeID,
dbus_bool commit,
void *user_data
)
{
CcspTraceInfo((" setCommit!!\n"));
return CCSP_ERR_NOT_SUPPORT;
}
int setParameterAttributes(
int sessionId,
parameterAttributeStruct_t *val,
int size,
void *user_data
)
{
PSYS_INFO_REPOSITORY_OBJECT pSysInfoRepository = (PSYS_INFO_REPOSITORY_OBJECT)NULL;
PSYS_IRA_INTERFACE pSysIraIf = (PSYS_IRA_INTERFACE )NULL;
ANSC_HANDLE hSysRoot = NULL;
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
int i;
// CcspTraceInfo(("inside setParameterAttributes\n"));
if ( g_psmHealth != CCSP_COMMON_COMPONENT_HEALTH_Green )
{
CcspTraceInfo(("!!! PSM is not ready !!!\n"));
return CCSP_FAILURE;
}
if ( pPsmSysRegistry == NULL )
{
CcspTraceInfo(("setParameterAttributes- pPsmSysRegistry is NULL\n"));
return CCSP_FAILURE;
}
pSysInfoRepository = pPsmSysRegistry->hSysInfoRepository;
if ( pSysInfoRepository == NULL )
{
CcspTraceInfo(("setParameterAttributes- pSysInfoRepository is NULL\n"));
return CCSP_FAILURE;
}
pSysIraIf = (PSYS_IRA_INTERFACE)pSysInfoRepository->GetIraIf((ANSC_HANDLE)pSysInfoRepository);
pSysIraIf->AcqThreadLock(pSysIraIf->hOwnerContext);
hSysRoot =
pSysIraIf->OpenFolder
(
pSysIraIf->hOwnerContext,
(ANSC_HANDLE)NULL,
"/Configuration/Provision"
);
if ( hSysRoot == NULL )
{
CcspTraceInfo(("setParameterAttributes- hSysRoot is NULL\n"));
pSysIraIf->RelThreadLock(pSysIraIf->hOwnerContext);
return CCSP_FAILURE;
}
for ( i = 0; i < size; i++ )
{
returnStatus =
pSysIraIf->DelRecord
(
pSysIraIf->hOwnerContext,
hSysRoot,
val[i].parameterName
);
/*
CcspTraceWarning(("delParameterValues -- size:%d, %s\n", size, val[i].parameterName));
*/
if ( returnStatus != ANSC_STATUS_SUCCESS )
{
CcspTraceError(("+++ Delete entry: %s failed! +++\n", val[i].parameterName));
}
}
pSysIraIf->CloseFolder(pSysIraIf->hOwnerContext, hSysRoot);
pSysIraIf->RelThreadLock(pSysIraIf->hOwnerContext);
// CcspTraceInfo(("setParameterAttributes exit\n"));
return CCSP_SUCCESS;
}
int getParameterAttributes(
char * parameterNames[],
int size,
int *val_size,
parameterAttributeStruct_t ***param_val,
void *user_data
)
{
CcspTraceInfo(("!!getParameterAttributes!!!!!\n"));
return CCSP_ERR_NOT_SUPPORT;
}
int getParameterNames(
char * parameterName,
dbus_bool nextLevel,
int *val_size ,
parameterInfoStruct_t ***param_val,
void *user_data
)
{
PSYS_INFO_REPOSITORY_OBJECT pSysInfoRepository = (PSYS_INFO_REPOSITORY_OBJECT)NULL;
PSYS_IRA_INTERFACE pSysIraIf = (PSYS_IRA_INTERFACE )NULL;
ANSC_HANDLE hSysRoot = NULL;
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
ULONG ulRecordCount;
ULONG i, j;
char recordName[SYS_MAX_RECORD_NAME_SIZE + 1];
ULONG ulNameSize = SYS_MAX_RECORD_NAME_SIZE;
PPARAMETER_INFO pParameterInfo = NULL;
SLIST_HEADER ParameterInfoList;
PSINGLE_LINK_ENTRY pSLinkEntry = NULL;
parameterInfoStruct_t **val = NULL;
//CcspTraceInfo(("getParameterNames begins\n"));
if ( g_psmHealth != CCSP_COMMON_COMPONENT_HEALTH_Green )
{
CcspTraceInfo(("!!! PSM is not ready !!!\n"));
return CCSP_FAILURE;
}
if ( !parameterName )
{
CcspTraceError(("RDKB_SYSTEM_BOOT_UP_LOG : PSM Input parameter invalid for getParameterNames!\n"));
return CCSP_FAILURE;
}
if ( pPsmSysRegistry == NULL )
{
CcspTraceInfo(("getParameterNames- pPsmSysRegistry is NULL\n"));
return CCSP_FAILURE;
}
pSysInfoRepository = pPsmSysRegistry->hSysInfoRepository;
if ( pSysInfoRepository == NULL )
{
CcspTraceInfo(("getParameterNames- pSysInfoRepository is NULL\n"));
return CCSP_FAILURE;
}
pSysIraIf = (PSYS_IRA_INTERFACE)pSysInfoRepository->GetIraIf((ANSC_HANDLE)pSysInfoRepository);
pSysIraIf->AcqThreadLock(pSysIraIf->hOwnerContext);
hSysRoot =
pSysIraIf->OpenFolder
(
pSysIraIf->hOwnerContext,
(ANSC_HANDLE)NULL,
"/Configuration/Provision"
);
if ( hSysRoot == NULL )
{
pSysIraIf->RelThreadLock(pSysIraIf->hOwnerContext);
CcspTraceInfo(("getParameterNames- hSysRoot is NULL\n"));
return CCSP_FAILURE;
}
ulRecordCount = pSysIraIf->GetRecordCount
(
pSysIraIf->hOwnerContext,
hSysRoot
);
*val_size = 0;
AnscSListInitializeHeader(&ParameterInfoList);
for ( i = 0; i < ulRecordCount; i++ )
{
ulNameSize = SYS_MAX_RECORD_NAME_SIZE;
returnStatus = pSysIraIf->EnumRecord
(
pSysIraIf->hOwnerContext,
hSysRoot,
i,
recordName,
&ulNameSize,
NULL,
NULL
);
if ( strstr(recordName, parameterName) == recordName )
{
if ( nextLevel )
{
if ( strlen(recordName) > strlen(parameterName) )
{
char *p1, *p2;
p1 = recordName + strlen(parameterName);
if ( (p2 = strchr(p1, '.')) != NULL )
{
p2++;
p2[0] = '\0';
}
}
else
{
continue;
}
}
j = AnscSListQueryDepth(&ParameterInfoList);
for ( ; j > 0; j-- )
{
pSLinkEntry = AnscSListSearchEntryByIndex(&ParameterInfoList, (j-1));
if ( pSLinkEntry == NULL )
{
CcspTraceInfo(("Get Null entry!\n"));
continue;
}
pParameterInfo = ACCESS_CONTAINER(pSLinkEntry, PARAMETER_INFO, Linkage);
if ( strcmp(recordName, pParameterInfo->val->parameterName) == 0 )
{
break;
}
}
if ( j == 0 )
{
*val_size = *val_size + 1;
pParameterInfo = AnscAllocateMemory(sizeof(PARAMETER_INFO));
pParameterInfo->val = AnscAllocateMemory(sizeof(parameterInfoStruct_t));
memset(pParameterInfo->val, 0, sizeof(parameterInfoStruct_t));
pParameterInfo->val->parameterName = AnscAllocateMemory(ulNameSize+1);
strcpy(pParameterInfo->val->parameterName, recordName);
AnscSListPushEntry(&ParameterInfoList, &pParameterInfo->Linkage);
}
}
}
if ( *val_size > 0 )
{
i = *val_size;
val = AnscAllocateMemory(*val_size*sizeof(parameterInfoStruct_t *));
memset(val, 0, *val_size*sizeof(parameterInfoStruct_t *));
for ( ; i > 0; i-- )
{
pSLinkEntry = AnscSListPopEntry(&ParameterInfoList);
pParameterInfo = ACCESS_CONTAINER(pSLinkEntry, PARAMETER_INFO, Linkage);
val[i-1] = pParameterInfo->val;
AnscFreeMemory(pParameterInfo);
// CcspTraceDebug(("getParameterNames -- *val_size:%d, %s: %s\n", *val_size, parameterName, val[i-1]->parameterName));
}
}
*param_val = val;
if ( hSysRoot )
{
pSysIraIf->CloseFolder(pSysIraIf->hOwnerContext, hSysRoot);
}
pSysIraIf->RelThreadLock(pSysIraIf->hOwnerContext);
//CcspTraceInfo(("getParameterNames ends\n"));
return CCSP_SUCCESS;
}
int AddTblRow(
int sessionId,
char * objectName,
int * instanceNumber,
void *user_data
)
{
return CCSP_ERR_NOT_SUPPORT;
}
int DeleteTblRow(
int sessionId,
char * objectName,
void *user_data
)
{
return CCSP_ERR_NOT_SUPPORT;
}
int freeResources(
int priority,
void *user_data
)
{
return CCSP_ERR_NOT_SUPPORT;
}
int busCheck(
void *user_data
)
{
return CCSP_SUCCESS;
}
int initialize(
void *user_data
)
{
return CCSP_SUCCESS;
}
int finalize(
void *user_data
)
{
return CCSP_SUCCESS;
}
int getHealth()
{
return g_psmHealth;
}
DBusHandlerResult
path_message_func (DBusConnection *conn,
DBusMessage *message,
void *user_data)
{
CCSP_MESSAGE_BUS_INFO *bus_info =(CCSP_MESSAGE_BUS_INFO *) user_data;
const char *interface = dbus_message_get_interface(message);
const char *method = dbus_message_get_member(message);
DBusMessage *reply;
reply = dbus_message_new_method_return (message);
if (reply == NULL)
{
return DBUS_HANDLER_RESULT_HANDLED;
}
if(!strcmp("org.freedesktop.DBus.Introspectable", interface) && !strcmp(method, "Introspect"))
{
if ( !dbus_message_append_args (reply, DBUS_TYPE_STRING, &PSM_Introspect_msg, DBUS_TYPE_INVALID))
printf ("No memory\n");
if (!dbus_connection_send (conn, reply, NULL))
printf ("No memory\n");
dbus_message_unref (reply);
return DBUS_HANDLER_RESULT_HANDLED;
}
return CcspBaseIf_base_path_message_func (conn,
message,
reply,
interface,
method,
bus_info);
}
int PsmDbusInit()
{
int ret ;
char CName[256];
char CrName[256];
CcspTraceWarning(("RDKB_SYSTEM_BOOT_UP_LOG : PsmDBusInit Entry\n"));
if ( g_Subsystem[0] != 0 )
{
_ansc_sprintf(CName, "%s%s", g_Subsystem, CCSP_DBUS_PSM);
_ansc_sprintf(CrName, "%s%s", g_Subsystem, CCSP_DBUS_INTERFACE_CR);
}
else
{
AnscCopyString(CName, CCSP_DBUS_PSM);
AnscCopyString(CrName, CCSP_DBUS_INTERFACE_CR);
}
CCSP_Message_Bus_Init(CName, CCSP_MSG_BUS_CFG, &bus_handle, Ansc_AllocateMemory_Callback, Ansc_FreeMemory_Callback);
g_psmHealth = CCSP_COMMON_COMPONENT_HEALTH_Yellow;
/* Wait for CR ready */
waitConditionReady(bus_handle, CrName, CCSP_DBUS_PATH_CR, CName);
CCSP_Message_Bus_Register_Path(bus_handle, CCSP_DBUS_PATH_PSM, path_message_func, bus_handle);
CCSP_Base_Func_CB cb;
memset(&cb, 0 , sizeof(cb));
cb.getParameterValues = getParameterValues;
cb.setParameterValues = setParameterValues;
cb.setCommit = setCommit;
cb.setParameterAttributes = setParameterAttributes;
cb.getParameterAttributes = getParameterAttributes;
cb.AddTblRow = AddTblRow;
cb.DeleteTblRow = DeleteTblRow;
cb.getParameterNames = getParameterNames;
cb.freeResources = freeResources;
cb.busCheck = busCheck;
cb.initialize = initialize;
cb.finalize = finalize;
cb.getHealth = getHealth;
CcspBaseIf_SetCallback
(
bus_handle,
&cb
);
do
{
ULONG uWait = 10; /* 10 seconds */
CcspTraceWarning(("PsmSsp register capabilities of %s to %s: \n", CName, CrName));
CcspTraceWarning(("PsmSsp registering %d items like %s with prefix='%s' ... \n",
sizeof(NamespacePsm)/sizeof(name_spaceType_t), NamespacePsm[0].name_space, g_Subsystem));
ret =
CcspBaseIf_registerCapabilities
(
bus_handle,
CrName,
CName,
CCSP_COMPONENT_VERSION_PSM,
CCSP_DBUS_PATH_PSM,
g_Subsystem,
NamespacePsm,
sizeof(NamespacePsm)/sizeof(name_spaceType_t)
);
if ( CCSP_SUCCESS != ret )
{
CcspTraceWarning(("RDKB_SYSTEM_BOOT_UP_LOG : PsmSsp register capabilities failed with code %d! Waiting for retry...\n", ret));
AnscSleep(uWait * 1000);
}
else
{
CcspTraceWarning((" RDKB_SYSTEM_BOOT_UP_LOG : PsmSsp register capabilities successful with ret=%d.\n", ret));
break;
}
} while ( TRUE );
pDslhCpeController = DslhCreateCpeController(NULL, NULL, NULL);
if ( !pDslhCpeController )
{
CcspTraceWarning(("CANNOT Create pDslhCpeController... Exit!\n"));
}
pDslhCpeController->SetDbusHandle((ANSC_HANDLE)pDslhCpeController, (ANSC_HANDLE)bus_handle);
pDslhCpeController->Engage((ANSC_HANDLE)pDslhCpeController);
CcspTraceWarning(("RDKB_SYSTEM_BOOT_UP_LOG : PSM Health set to Green\n"));
g_psmHealth = CCSP_COMMON_COMPONENT_HEALTH_Green;
return 0;
}
| 37.446868 | 170 | 0.54499 |
ecaead156e9b0177937b75b28495ba4bd901536c | 2,951 | c | C | linux-5.0.1/drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu104.c | Ponny035/LFS | 7ae2280072d71f43e395149d0ad0692483a24b70 | [
"Unlicense"
] | null | null | null | linux-5.0.1/drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu104.c | Ponny035/LFS | 7ae2280072d71f43e395149d0ad0692483a24b70 | [
"Unlicense"
] | null | null | null | linux-5.0.1/drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu104.c | Ponny035/LFS | 7ae2280072d71f43e395149d0ad0692483a24b70 | [
"Unlicense"
] | null | null | null | /*
* Copyright 2018 Red Hat Inc.
*
* 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#include "gf100.h"
#include <core/memory.h>
#include <subdev/timer.h>
static void
tu104_bar_bar2_wait(struct nvkm_bar *bar)
{
struct nvkm_device *device = bar->subdev.device;
nvkm_msec(device, 2000,
if (!(nvkm_rd32(device, 0xb80f50) & 0x0000000c))
break;
);
}
static void
tu104_bar_bar2_fini(struct nvkm_bar *bar)
{
nvkm_mask(bar->subdev.device, 0xb80f48, 0x80000000, 0x00000000);
}
static void
tu104_bar_bar2_init(struct nvkm_bar *base)
{
struct nvkm_device *device = base->subdev.device;
struct gf100_bar *bar = gf100_bar(base);
u32 addr = nvkm_memory_addr(bar->bar[0].inst) >> 12;
if (bar->bar2_halve)
addr |= 0x40000000;
nvkm_wr32(device, 0xb80f48, 0x80000000 | addr);
}
static void
tu104_bar_bar1_wait(struct nvkm_bar *bar)
{
struct nvkm_device *device = bar->subdev.device;
nvkm_msec(device, 2000,
if (!(nvkm_rd32(device, 0xb80f50) & 0x00000003))
break;
);
}
static void
tu104_bar_bar1_fini(struct nvkm_bar *bar)
{
nvkm_mask(bar->subdev.device, 0xb80f40, 0x80000000, 0x00000000);
}
static void
tu104_bar_bar1_init(struct nvkm_bar *base)
{
struct nvkm_device *device = base->subdev.device;
struct gf100_bar *bar = gf100_bar(base);
const u32 addr = nvkm_memory_addr(bar->bar[1].inst) >> 12;
nvkm_wr32(device, 0xb80f40, 0x80000000 | addr);
}
static const struct nvkm_bar_func
tu104_bar = {
.dtor = gf100_bar_dtor,
.oneinit = gf100_bar_oneinit,
.bar1.init = tu104_bar_bar1_init,
.bar1.fini = tu104_bar_bar1_fini,
.bar1.wait = tu104_bar_bar1_wait,
.bar1.vmm = gf100_bar_bar1_vmm,
.bar2.init = tu104_bar_bar2_init,
.bar2.fini = tu104_bar_bar2_fini,
.bar2.wait = tu104_bar_bar2_wait,
.bar2.vmm = gf100_bar_bar2_vmm,
.flush = g84_bar_flush,
};
int
tu104_bar_new(struct nvkm_device *device, int index, struct nvkm_bar **pbar)
{
return gf100_bar_new_(&tu104_bar, device, index, pbar);
}
| 29.808081 | 77 | 0.750254 |
ecb2b34b38aff7a3292280ac27e570256db40b95 | 2,356 | h | C | rcgen/cpp/joint_data_map.h | kmarkus/ublx-ur5_sim | 51efa12446a7ef9ab5e3e783ce2a6409a3db390f | [
"BSD-3-Clause"
] | 1 | 2020-11-07T11:39:31.000Z | 2020-11-07T11:39:31.000Z | rcgen/cpp/joint_data_map.h | kmarkus/ublx-ur5_sim | 51efa12446a7ef9ab5e3e783ce2a6409a3db390f | [
"BSD-3-Clause"
] | 1 | 2020-11-10T16:03:37.000Z | 2020-11-10T16:03:37.000Z | rcgen/cpp/joint_data_map.h | kmarkus/ublx-ur5_sim | 51efa12446a7ef9ab5e3e783ce2a6409a3db390f | [
"BSD-3-Clause"
] | 1 | 2020-11-07T10:57:43.000Z | 2020-11-07T10:57:43.000Z | #ifndef RCG_UR5_JOINT_DATA_MAP_H_
#define RCG_UR5_JOINT_DATA_MAP_H_
#include "declarations.h"
namespace ur5 {
namespace rcg {
/**
* A very simple container to associate a generic data item to each joint
*/
template<typename T> class JointDataMap {
private:
T data[jointsCount];
public:
JointDataMap() {};
JointDataMap(const T& defaultValue);
JointDataMap(const JointDataMap& rhs);
JointDataMap& operator=(const JointDataMap& rhs);
JointDataMap& operator=(const T& rhs);
T& operator[](JointIdentifiers which);
const T& operator[](JointIdentifiers which) const;
private:
void copydata(const JointDataMap& rhs);
void assigndata(const T& rhs);
};
template<typename T> inline
JointDataMap<T>::JointDataMap(const T& value) {
assigndata(value);
}
template<typename T> inline
JointDataMap<T>::JointDataMap(const JointDataMap& rhs)
{
copydata(rhs);
}
template<typename T> inline
JointDataMap<T>& JointDataMap<T>::operator=(const JointDataMap& rhs)
{
if(&rhs != this) {
copydata(rhs);
}
return *this;
}
template<typename T> inline
JointDataMap<T>& JointDataMap<T>::operator=(const T& value)
{
assigndata(value);
return *this;
}
template<typename T> inline
T& JointDataMap<T>::operator[](JointIdentifiers j) {
return data[j];
}
template<typename T> inline
const T& JointDataMap<T>::operator[](JointIdentifiers j) const {
return data[j];
}
template<typename T> inline
void JointDataMap<T>::copydata(const JointDataMap& rhs) {
data[SHOULDER_PAN] = rhs[SHOULDER_PAN];
data[SHOULDER_LIFT] = rhs[SHOULDER_LIFT];
data[ELBOW] = rhs[ELBOW];
data[WR1] = rhs[WR1];
data[WR2] = rhs[WR2];
data[WR3] = rhs[WR3];
}
template<typename T> inline
void JointDataMap<T>::assigndata(const T& value) {
data[SHOULDER_PAN] = value;
data[SHOULDER_LIFT] = value;
data[ELBOW] = value;
data[WR1] = value;
data[WR2] = value;
data[WR3] = value;
}
template<typename T> inline
std::ostream& operator<<(std::ostream& out, const JointDataMap<T>& map) {
out
<< " shoulder_pan = "
<< map[SHOULDER_PAN]
<< " shoulder_lift = "
<< map[SHOULDER_LIFT]
<< " elbow = "
<< map[ELBOW]
<< " wr1 = "
<< map[WR1]
<< " wr2 = "
<< map[WR2]
<< " wr3 = "
<< map[WR3]
;
return out;
}
}
}
#endif
| 22.018692 | 73 | 0.654075 |
ecb506cfbac1957afb15574b38b2fcc46c75b4c8 | 3,610 | c | C | Third-party/Sokol/src/metal/releasetest-metal.c | VLiance/Demos | fa8435c2fa0f46e1324a71501fdf646326936148 | [
"Unlicense"
] | null | null | null | Third-party/Sokol/src/metal/releasetest-metal.c | VLiance/Demos | fa8435c2fa0f46e1324a71501fdf646326936148 | [
"Unlicense"
] | null | null | null | Third-party/Sokol/src/metal/releasetest-metal.c | VLiance/Demos | fa8435c2fa0f46e1324a71501fdf646326936148 | [
"Unlicense"
] | null | null | null | //------------------------------------------------------------------------------
// release-metal.c
// This is a modified triangle sample which creates and destroys all
// resources in each frame. This tests whether
// the delayed resource destruction works in the Metal backend
// (a regression test for this bug: https://github.com/floooh/sokol/issues/32)
//------------------------------------------------------------------------------
#include "osxentry.h"
#include "sokol_gfx.h"
sg_pass_action pass_action = {0};
sg_draw_state draw_state = {0};
void init(const void* mtl_device) {
/* setup sokol, keep pool size small so the bug would trigger earlier */
sg_desc desc = {
.buffer_pool_size = 4,
.image_pool_size = 2,
.shader_pool_size = 4,
.pipeline_pool_size = 4,
.pass_pool_size = 2,
.mtl_device = mtl_device,
.mtl_renderpass_descriptor_cb = osx_mtk_get_render_pass_descriptor,
.mtl_drawable_cb = osx_mtk_get_drawable
};
sg_setup(&desc);
}
void frame() {
/* create and destroy resource each frame, don't do this in real-world code! */
/* a vertex buffer with 3 vertices */
float vertices[] = {
// positions colors
0.0f, 0.5f, 0.5f, 1.0f, 1.0f, 0.0f, 1.0f,
0.5f, -0.5f, 0.5f, 0.0f, 1.0f, 1.0f, 1.0f,
-0.5f, -0.5f, 0.5f, 1.0f, 0.0f, 1.0f, 1.0f
};
draw_state.vertex_buffers[0] = sg_make_buffer(&(sg_buffer_desc){
.size = sizeof(vertices),
.content = vertices
});
/* a shader pair, compiled from source code */
sg_shader shd = sg_make_shader(&(sg_shader_desc){
/*
The shader main() function cannot be called 'main' in
the Metal shader languages, thus we define '_main' as the
default function. This can be override with the
sg_shader_desc.vs.entry and sg_shader_desc.fs.entry fields.
*/
.vs.source =
"#include <metal_stdlib>\n"
"using namespace metal;\n"
"struct vs_in {\n"
" float4 position [[attribute(0)]];\n"
" float4 color [[attribute(1)]];\n"
"};\n"
"struct vs_out {\n"
" float4 position [[position]];\n"
" float4 color;\n"
"};\n"
"vertex vs_out _main(vs_in inp [[stage_in]]) {\n"
" vs_out outp;\n"
" outp.position = inp.position;\n"
" outp.color = inp.color;\n"
" return outp;\n"
"}\n",
.fs.source =
"#include <metal_stdlib>\n"
"using namespace metal;\n"
"fragment float4 _main(float4 color [[stage_in]]) {\n"
" return color;\n"
"};\n"
});
/* create a pipeline object */
draw_state.pipeline = sg_make_pipeline(&(sg_pipeline_desc){
.layout = {
.attrs = {
[0] = { .format=SG_VERTEXFORMAT_FLOAT3 },
[1] = { .format=SG_VERTEXFORMAT_FLOAT4 }
},
},
.shader = shd
});
/* draw one frame */
sg_begin_default_pass(&pass_action, osx_width(), osx_height());
sg_apply_draw_state(&draw_state);
sg_draw(0, 3, 1);
sg_end_pass();
sg_commit();
/* release the resource we created above */
sg_destroy_buffer(draw_state.vertex_buffers[0]);
sg_destroy_pipeline(draw_state.pipeline);
sg_destroy_shader(shd);
}
void shutdown() {
sg_shutdown();
}
int main() {
osx_start(640, 480, 1, "Sokol Resource Stress (Metal)", init, frame, shutdown);
return 0;
}
| 33.119266 | 83 | 0.54626 |
ecb58f53f8364bc32bc32b3026e4af76a09c3a97 | 1,297 | h | C | System/Library/PrivateFrameworks/CardKit.framework/CRKCardSectionViewControllerDelegate.h | lechium/tvOS145Headers | 9940da19adb0017f8037853e9cfccbe01b290dd5 | [
"MIT"
] | 5 | 2021-04-29T04:31:43.000Z | 2021-08-19T18:59:58.000Z | System/Library/PrivateFrameworks/CardKit.framework/CRKCardSectionViewControllerDelegate.h | lechium/tvOS145Headers | 9940da19adb0017f8037853e9cfccbe01b290dd5 | [
"MIT"
] | null | null | null | System/Library/PrivateFrameworks/CardKit.framework/CRKCardSectionViewControllerDelegate.h | lechium/tvOS145Headers | 9940da19adb0017f8037853e9cfccbe01b290dd5 | [
"MIT"
] | 1 | 2022-03-19T11:16:23.000Z | 2022-03-19T11:16:23.000Z | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 28, 2021 at 9:07:55 PM Mountain Standard Time
* Operating System: Version 14.5 (Build 18L204)
* Image Source: /System/Library/PrivateFrameworks/CardKit.framework/CardKit
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. Updated by Kevin Bradley.
*/
@protocol CRKCardSectionViewControllerDelegate <CRFeedbackListener>
@optional
-(BOOL)canPerformCommand:(id)arg1 forCardSectionViewController:(id)arg2;
-(BOOL)performCommand:(id)arg1 forCardSectionViewController:(id)arg2;
-(void)cardSectionViewControllerDidFinishLoading:(id)arg1;
-(long long)preferredPunchoutIndexForCardSectionViewController:(id)arg1;
-(void)cardSectionViewControllerBoundsDidChange:(id)arg1;
-(void)presentViewController:(id)arg1 forCardSectionViewController:(id)arg2;
-(void)cardSectionViewController:(id)arg1 willDismissViewController:(id)arg2;
-(void)cardSectionViewController:(id)arg1 didSelectPreferredPunchoutIndex:(long long)arg2;
-(void)cardSectionViewController:(id)arg1 requestsHandlingOfIntent:(id)arg2;
-(CGSize*)boundingSizeForCardSectionViewController:(id)arg1;
@end
| 51.88 | 130 | 0.737857 |
ecb6161bdcc2084586c07ba755baf319b48ad8b2 | 27,223 | c | C | snapgear_linux/lib/libldap/servers/slurpd/ldap_op.c | impedimentToProgress/UCI-BlueChip | 53e5d48b79079eaf60d42f7cb65bb795743d19fc | [
"MIT"
] | null | null | null | snapgear_linux/lib/libldap/servers/slurpd/ldap_op.c | impedimentToProgress/UCI-BlueChip | 53e5d48b79079eaf60d42f7cb65bb795743d19fc | [
"MIT"
] | null | null | null | snapgear_linux/lib/libldap/servers/slurpd/ldap_op.c | impedimentToProgress/UCI-BlueChip | 53e5d48b79079eaf60d42f7cb65bb795743d19fc | [
"MIT"
] | 3 | 2016-06-13T13:20:56.000Z | 2019-12-05T02:31:23.000Z | /* $OpenLDAP: pkg/ldap/servers/slurpd/ldap_op.c,v 1.33.2.7 2003/03/12 20:49:23 kurt Exp $ */
/*
* Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
/*
* Copyright (c) 1996 Regents of the University of Michigan.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and that due credit is given
* to the University of Michigan at Ann Arbor. The name of the University
* may not be used to endorse or promote products derived from this
* software without specific prior written permission. This software
* is provided ``as is'' without express or implied warranty.
*/
/*
* ldap_op.c - routines to perform LDAP operations
*/
#include "portable.h"
#include <stdio.h>
#include <ac/stdlib.h>
#include <ac/errno.h>
#include <ac/string.h>
#include <ac/ctype.h>
#include <ac/time.h>
#include <ac/unistd.h>
#include <ldap.h>
#include "lutil_ldap.h"
#include "slurp.h"
/* Forward references */
static struct berval **make_singlevalued_berval LDAP_P(( char *, int ));
static int op_ldap_add LDAP_P(( Ri *, Re *, char ** ));
static int op_ldap_modify LDAP_P(( Ri *, Re *, char ** ));
static int op_ldap_delete LDAP_P(( Ri *, Re *, char ** ));
static int op_ldap_modrdn LDAP_P(( Ri *, Re *, char ** ));
static LDAPMod *alloc_ldapmod LDAP_P(( void ));
static void free_ldapmod LDAP_P(( LDAPMod * ));
static void free_ldmarr LDAP_P(( LDAPMod ** ));
static int getmodtype LDAP_P(( char * ));
static void dump_ldm_array LDAP_P(( LDAPMod ** ));
static int do_bind LDAP_P(( Ri *, int * ));
static int do_unbind LDAP_P(( Ri * ));
/*
* Determine the type of ldap operation being performed and call the
* appropriate routine.
* - If successful, returns DO_LDAP_OK
* - If a retryable error occurs, ERR_DO_LDAP_RETRYABLE is returned.
* The caller should wait a while and retry the operation.
* - If a fatal error occurs, ERR_DO_LDAP_FATAL is returned. The caller
* should reject the operation and continue with the next replication
* entry.
*/
int
do_ldap(
Ri *ri,
Re *re,
char **errmsg
)
{
int retry = 2;
*errmsg = NULL;
do {
int lderr;
if ( ri->ri_ldp == NULL ) {
lderr = do_bind( ri, &lderr );
if ( lderr != BIND_OK ) {
return DO_LDAP_ERR_RETRYABLE;
}
}
switch ( re->re_changetype ) {
case T_ADDCT:
lderr = op_ldap_add( ri, re, errmsg );
if ( lderr != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_ldap: "
"Error: ldap_add_s failed adding \"%s\": %s\n",
*errmsg ? *errmsg : ldap_err2string( lderr ),
re->re_dn, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: ldap_add_s failed adding \"%s\": %s\n",
*errmsg ? *errmsg : ldap_err2string( lderr ),
re->re_dn, 0 );
#endif
}
break;
case T_MODIFYCT:
lderr = op_ldap_modify( ri, re, errmsg );
if ( lderr != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_ldap: "
"Error: ldap_modify_s failed modifying \"%s\": %s\n",
*errmsg ? *errmsg : ldap_err2string( lderr ),
re->re_dn, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: ldap_modify_s failed modifying \"%s\": %s\n",
*errmsg ? *errmsg : ldap_err2string( lderr ),
re->re_dn, 0 );
#endif
}
break;
case T_DELETECT:
lderr = op_ldap_delete( ri, re, errmsg );
if ( lderr != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_ldap: "
"Error: ldap_delete_s failed deleting \"%s\": %s\n",
*errmsg ? *errmsg : ldap_err2string( lderr ),
re->re_dn, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: ldap_delete_s failed deleting \"%s\": %s\n",
*errmsg ? *errmsg : ldap_err2string( lderr ),
re->re_dn, 0 );
#endif
}
break;
case T_MODRDNCT:
lderr = op_ldap_modrdn( ri, re, errmsg );
if ( lderr != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_ldap: "
"Error: ldap_modrdn_s failed modifying %s: %s\n",
*errmsg ? *errmsg : ldap_err2string( lderr ),
re->re_dn, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: ldap_modrdn_s failed modifying %s: %s\n",
*errmsg ? *errmsg : ldap_err2string( lderr ),
re->re_dn, 0 );
#endif
}
break;
default:
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_ldap: "
"Error: bad op \"%d\", dn = \"%s\"\n",
re->re_changetype, re->re_dn, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: do_ldap: bad op \"%d\", dn = \"%s\"\n",
re->re_changetype, re->re_dn, 0 );
#endif
return DO_LDAP_ERR_FATAL;
}
/*
* Analyze return code. If ok, just return. If LDAP_SERVER_DOWN,
* we may have been idle long enough that the remote slapd timed
* us out. Rebind and try again.
*/
switch( lderr ) {
case LDAP_SUCCESS:
return DO_LDAP_OK;
default:
return DO_LDAP_ERR_FATAL;
case LDAP_SERVER_DOWN: /* server went down */
(void) do_unbind( ri );
retry--;
}
} while ( retry > 0 );
return DO_LDAP_ERR_RETRYABLE;
}
/*
* Perform an ldap add operation.
*/
static int
op_ldap_add(
Ri *ri,
Re *re,
char **errmsg
)
{
Mi *mi;
int nattrs, rc = 0, i;
LDAPMod *ldm, **ldmarr;
int lderr = 0;
nattrs = i = 0;
ldmarr = NULL;
/*
* Construct a null-terminated array of LDAPMod structs.
*/
mi = re->re_mods;
while ( mi[ i ].mi_type != NULL ) {
ldm = alloc_ldapmod();
ldmarr = ( LDAPMod ** ) ch_realloc( ldmarr,
( nattrs + 2 ) * sizeof( LDAPMod * ));
ldmarr[ nattrs ] = ldm;
ldm->mod_op = LDAP_MOD_BVALUES;
ldm->mod_type = mi[ i ].mi_type;
ldm->mod_bvalues =
make_singlevalued_berval( mi[ i ].mi_val, mi[ i ].mi_len );
i++;
nattrs++;
}
if ( ldmarr != NULL ) {
ldmarr[ nattrs ] = NULL;
/* Perform the operation */
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ARGS,
"op_ldap_add: replica %s:%d - add dn \"%s\"\n",
ri->ri_hostname, ri->ri_port, re->re_dn );
#else
Debug( LDAP_DEBUG_ARGS, "replica %s:%d - add dn \"%s\"\n",
ri->ri_hostname, ri->ri_port, re->re_dn );
#endif
rc = ldap_add_s( ri->ri_ldp, re->re_dn, ldmarr );
ldap_get_option( ri->ri_ldp, LDAP_OPT_ERROR_NUMBER, &lderr);
} else {
*errmsg = "No modifications to do";
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"op_ldap_add: Error: no mods to do (%s)!\n", re->re_dn, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: op_ldap_add: no mods to do (%s)!\n", re->re_dn, 0, 0 );
#endif
}
free_ldmarr( ldmarr );
return( lderr );
}
/*
* Perform an ldap modify operation.
*/
#define AWAITING_OP -1
static int
op_ldap_modify(
Ri *ri,
Re *re,
char **errmsg
)
{
Mi *mi;
int state; /* This code is a simple-minded state machine */
int nvals; /* Number of values we're modifying */
int nops; /* Number of LDAPMod structs in ldmarr */
LDAPMod *ldm = NULL, **ldmarr;
int i, len;
char *type, *value;
int rc = 0;
state = AWAITING_OP;
nvals = 0;
nops = 0;
ldmarr = NULL;
if ( re->re_mods == NULL ) {
*errmsg = "No arguments given";
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"op_ldap_modify: Error: no arguments\n" , 0, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY, "Error: op_ldap_modify: no arguments\n",
0, 0, 0 );
#endif
return -1;
}
/*
* Construct a null-terminated array of LDAPMod structs.
*/
for ( mi = re->re_mods, i = 0; mi[ i ].mi_type != NULL; i++ ) {
type = mi[ i ].mi_type;
value = mi[ i ].mi_val;
len = mi[ i ].mi_len;
switch ( getmodtype( type )) {
case T_MODSEP:
state = T_MODSEP; /* Got a separator line "-\n" */
continue;
case T_MODOPADD:
state = T_MODOPADD;
ldmarr = ( LDAPMod ** )
ch_realloc(ldmarr, (( nops + 2 ) * ( sizeof( LDAPMod * ))));
ldmarr[ nops ] = ldm = alloc_ldapmod();
ldm->mod_op = LDAP_MOD_ADD | LDAP_MOD_BVALUES;
ldm->mod_type = value;
nvals = 0;
nops++;
break;
case T_MODOPREPLACE:
state = T_MODOPREPLACE;
ldmarr = ( LDAPMod ** )
ch_realloc(ldmarr, (( nops + 2 ) * ( sizeof( LDAPMod * ))));
ldmarr[ nops ] = ldm = alloc_ldapmod();
ldm->mod_op = LDAP_MOD_REPLACE | LDAP_MOD_BVALUES;
ldm->mod_type = value;
nvals = 0;
nops++;
break;
case T_MODOPDELETE:
state = T_MODOPDELETE;
ldmarr = ( LDAPMod ** )
ch_realloc(ldmarr, (( nops + 2 ) * ( sizeof( LDAPMod * ))));
ldmarr[ nops ] = ldm = alloc_ldapmod();
ldm->mod_op = LDAP_MOD_DELETE | LDAP_MOD_BVALUES;
ldm->mod_type = value;
nvals = 0;
nops++;
break;
default:
if ( state == AWAITING_OP ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"op_ldap_modify: Error: unknown mod type \"%s\"\n", type, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: op_ldap_modify: unknown mod type \"%s\"\n",
type, 0, 0 );
#endif
continue;
}
assert( ldm );
/*
* We should have an attribute: value pair here.
* Construct the mod_bvalues part of the ldapmod struct.
*/
if ( strcasecmp( type, ldm->mod_type )) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"op_ldap_modify: Error: "
"malformed modify op, %s: %s (expecting \"%s\")\n",
type, value, ldm->mod_type );
#else
Debug( LDAP_DEBUG_ANY,
"Error: malformed modify op, %s: %s (expecting %s:)\n",
type, value, ldm->mod_type );
#endif
continue;
}
ldm->mod_bvalues = ( struct berval ** )
ch_realloc( ldm->mod_bvalues,
( nvals + 2 ) * sizeof( struct berval * ));
ldm->mod_bvalues[ nvals + 1 ] = NULL;
ldm->mod_bvalues[ nvals ] = ( struct berval * )
ch_malloc( sizeof( struct berval ));
ldm->mod_bvalues[ nvals ]->bv_val = value;
ldm->mod_bvalues[ nvals ]->bv_len = len;
nvals++;
}
}
ldmarr[ nops ] = NULL;
if ( nops > 0 ) {
/* Actually perform the LDAP operation */
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, DETAIL1,
"op_ldap_modify: replica %s:%d - modify dn \"%s\"\n",
ri->ri_hostname, ri->ri_port, re->re_dn );
#else
Debug( LDAP_DEBUG_ARGS, "replica %s:%d - modify dn \"%s\"\n",
ri->ri_hostname, ri->ri_port, re->re_dn );
#endif
rc = ldap_modify_s( ri->ri_ldp, re->re_dn, ldmarr );
}
free_ldmarr( ldmarr );
return( rc );
}
/*
* Perform an ldap delete operation.
*/
static int
op_ldap_delete(
Ri *ri,
Re *re,
char **errmsg
)
{
int rc;
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ARGS,
"op_ldap_delete: replica %s:%d - delete dn \"%s\"\n",
ri->ri_hostname, ri->ri_port, re->re_dn );
#else
Debug( LDAP_DEBUG_ARGS, "replica %s:%d - delete dn \"%s\"\n",
ri->ri_hostname, ri->ri_port, re->re_dn );
#endif
rc = ldap_delete_s( ri->ri_ldp, re->re_dn );
return( rc );
}
/*
* Perform an ldap modrdn operation.
*/
#define GOT_NEWRDN 0x1
#define GOT_DELOLDRDN 0x2
#define GOT_NEWSUP 0x4
#define GOT_MODDN_REQ (GOT_NEWRDN|GOT_DELOLDRDN)
#define GOT_ALL_MODDN(f) (((f) & GOT_MODDN_REQ) == GOT_MODDN_REQ)
static int
op_ldap_modrdn(
Ri *ri,
Re *re,
char **errmsg
)
{
int rc = 0;
Mi *mi;
int i;
int lderr = 0;
int state = 0;
int drdnflag = -1;
char *newrdn = NULL;
char *newsup = NULL;
if ( re->re_mods == NULL ) {
*errmsg = "No arguments given";
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"op_ldap_modrdn: Error: no arguments\n" , 0, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY, "Error: op_ldap_modrdn: no arguments\n",
0, 0, 0 );
#endif
return -1;
}
/*
* Get the arguments: should see newrdn: and deleteoldrdn: args.
*/
for ( mi = re->re_mods, i = 0; mi[ i ].mi_type != NULL; i++ ) {
if ( !strcmp( mi[ i ].mi_type, T_NEWRDNSTR )) {
if( state & GOT_NEWRDN ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"op_ldap_modrdn: Error: multiple newrdn arg \"%s\"\n",
mi[ i ].mi_val, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: op_ldap_modrdn: multiple newrdn arg \"%s\"\n",
mi[ i ].mi_val, 0, 0 );
#endif
*errmsg = "Multiple newrdn argument";
return -1;
}
newrdn = mi[ i ].mi_val;
state |= GOT_NEWRDN;
} else if ( !strcmp( mi[ i ].mi_type, T_DELOLDRDNSTR )) {
if( state & GOT_DELOLDRDN ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"op_ldap_modrdn: Error: multiple deleteoldrdn arg \"%s\"\n",
mi[ i ].mi_val, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: op_ldap_modrdn: multiple deleteoldrdn arg \"%s\"\n",
mi[ i ].mi_val, 0, 0 );
#endif
*errmsg = "Multiple newrdn argument";
return -1;
}
state |= GOT_DELOLDRDN;
if ( !strcmp( mi[ i ].mi_val, "0" )) {
drdnflag = 0;
} else if ( !strcmp( mi[ i ].mi_val, "1" )) {
drdnflag = 1;
} else {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"op_ldap_modrdn: Error: bad deleteoldrdn arg \"%s\"\n",
mi[ i ].mi_val, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: op_ldap_modrdn: bad deleteoldrdn arg \"%s\"\n",
mi[ i ].mi_val, 0, 0 );
#endif
*errmsg = "Incorrect argument to deleteoldrdn";
return -1;
}
} else if ( !strcmp( mi[ i ].mi_type, T_NEWSUPSTR )) {
if( state & GOT_NEWSUP ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"op_ldap_modrdn: Error: multiple newsuperior arg \"%s\"\n",
mi[ i ].mi_val, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: op_ldap_modrdn: multiple newsuperior arg \"%s\"\n",
mi[ i ].mi_val, 0, 0 );
#endif
*errmsg = "Multiple newsuperior argument";
return -1;
}
newsup = mi[ i ].mi_val;
state |= GOT_NEWSUP;
} else {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"op_ldap_modrdn: Error: bad type \"%s\"\n",
mi[ i ].mi_type, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY, "Error: op_ldap_modrdn: bad type \"%s\"\n",
mi[ i ].mi_type, 0, 0 );
#endif
*errmsg = "Bad value in replication log entry";
return -1;
}
}
/*
* Punt if we don't have all the args.
*/
if ( !GOT_ALL_MODDN(state) ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"op_ldap_modrdn: Error: missing arguments\n" , 0, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY, "Error: op_ldap_modrdn: missing arguments\n",
0, 0, 0 );
#endif
*errmsg = "Missing argument: requires \"newrdn\" and \"deleteoldrdn\"";
return -1;
}
#ifdef LDAP_DEBUG
if ( ldap_debug & LDAP_DEBUG_ARGS ) {
char buf[ 256 ];
char *buf2;
int buf2len = strlen( re->re_dn ) + strlen( mi->mi_val ) + 11;
snprintf( buf, sizeof(buf), "%s:%d", ri->ri_hostname, ri->ri_port );
buf2 = (char *) ch_malloc( buf2len );
snprintf( buf2, buf2len, "(\"%s\" -> \"%s\")", re->re_dn, mi->mi_val );
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ARGS,
"op_ldap_modrdn: replica %s - modify rdn %s (flag: %d)\n",
buf, buf2, drdnflag );
#else
Debug( LDAP_DEBUG_ARGS,
"replica %s - modify rdn %s (flag: %d)\n",
buf, buf2, drdnflag );
#endif
free( buf2 );
}
#endif /* LDAP_DEBUG */
assert( newrdn );
/* Do the modrdn */
rc = ldap_rename2_s( ri->ri_ldp, re->re_dn, newrdn, newsup, drdnflag );
ldap_get_option( ri->ri_ldp, LDAP_OPT_ERROR_NUMBER, &lderr);
return( lderr );
}
/*
* Allocate and initialize an ldapmod struct.
*/
static LDAPMod *
alloc_ldapmod( void )
{
LDAPMod *ldm;
ldm = ( struct ldapmod * ) ch_malloc( sizeof ( struct ldapmod ));
ldm->mod_type = NULL;
ldm->mod_bvalues = ( struct berval ** ) NULL;
return( ldm );
}
/*
* Free an ldapmod struct associated mod_bvalues. NOTE - it is assumed
* that mod_bvalues and mod_type contain pointers to the same block of memory
* pointed to by the repl struct. Therefore, it's not freed here.
*/
static void
free_ldapmod(
LDAPMod *ldm )
{
int i;
if ( ldm == NULL ) {
return;
}
if ( ldm->mod_bvalues != NULL ) {
for ( i = 0; ldm->mod_bvalues[ i ] != NULL; i++ ) {
free( ldm->mod_bvalues[ i ] );
}
free( ldm->mod_bvalues );
}
free( ldm );
return;
}
/*
* Free an an array of LDAPMod pointers and the LDAPMod structs they point
* to.
*/
static void
free_ldmarr(
LDAPMod **ldmarr )
{
int i;
for ( i = 0; ldmarr[ i ] != NULL; i++ ) {
free_ldapmod( ldmarr[ i ] );
}
free( ldmarr );
}
/*
* Create a berval with a single value.
*/
static struct berval **
make_singlevalued_berval(
char *value,
int len )
{
struct berval **p;
p = ( struct berval ** ) ch_malloc( 2 * sizeof( struct berval * ));
p[ 0 ] = ( struct berval * ) ch_malloc( sizeof( struct berval ));
p[ 1 ] = NULL;
p[ 0 ]->bv_val = value;
p[ 0 ]->bv_len = len;
return( p );
}
/*
* Given a modification type (string), return an enumerated type.
* Avoids ugly copy in op_ldap_modify - lets us use a switch statement
* there.
*/
static int
getmodtype(
char *type )
{
if ( !strcmp( type, T_MODSEPSTR )) {
return( T_MODSEP );
}
if ( !strcmp( type, T_MODOPADDSTR )) {
return( T_MODOPADD );
}
if ( !strcmp( type, T_MODOPREPLACESTR )) {
return( T_MODOPREPLACE );
}
if ( !strcmp( type, T_MODOPDELETESTR )) {
return( T_MODOPDELETE );
}
return( T_ERR );
}
/*
* Perform an LDAP unbind operation. If replica is NULL, or the
* repl_ldp is NULL, just return LDAP_SUCCESS. Otherwise, unbind,
* set the ldp to NULL, and return the result of the unbind call.
*/
static int
do_unbind(
Ri *ri
)
{
int rc = LDAP_SUCCESS;
if (( ri != NULL ) && ( ri->ri_ldp != NULL )) {
rc = ldap_unbind( ri->ri_ldp );
if ( rc != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"do_unbind: ldap_unbind failed for %s:%d: %s\n",
ri->ri_hostname, ri->ri_port, ldap_err2string( rc ) );
#else
Debug( LDAP_DEBUG_ANY,
"Error: do_unbind: ldap_unbind failed for %s:%d: %s\n",
ri->ri_hostname, ri->ri_port, ldap_err2string( rc ) );
#endif
}
ri->ri_ldp = NULL;
}
return rc;
}
/*
* Perform an LDAP bind operation to the replication site given
* by replica. If replica->repl_ldp is non-NULL, then we unbind
* from the replica before rebinding. It should be safe to call
* this to re-connect if the replica's connection goes away
* for some reason.
*
* Returns 0 on success, -1 if an LDAP error occurred, and a return
* code > 0 if some other error occurred, e.g. invalid bind method.
* If an LDAP error occurs, the LDAP error is returned in lderr.
*/
static int
do_bind(
Ri *ri,
int *lderr
)
{
int ldrc;
*lderr = 0;
if ( ri == NULL ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_bind: null ri ptr\n" , 0, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY, "Error: do_bind: null ri ptr\n", 0, 0, 0 );
#endif
return( BIND_ERR_BADRI );
}
retry:
if ( ri->ri_ldp != NULL ) {
ldrc = ldap_unbind( ri->ri_ldp );
if ( ldrc != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"do_bind: ldap_unbind failed: %s\n", ldap_err2string( ldrc ), 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: do_bind: ldap_unbind failed: %s\n",
ldap_err2string( ldrc ), 0, 0 );
#endif
}
ri->ri_ldp = NULL;
}
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ARGS,
"do_bind: Initializing session to %s:%d\n",
ri->ri_hostname, ri->ri_port, 0 );
#else
Debug( LDAP_DEBUG_ARGS, "Initializing session to %s:%d\n",
ri->ri_hostname, ri->ri_port, 0 );
#endif
ri->ri_ldp = ldap_init( ri->ri_hostname, ri->ri_port );
if ( ri->ri_ldp == NULL ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR,
"do_bind: ldap_init (%s, %d) failed: %s\n",
ri->ri_hostname, ri->ri_port, sys_errlist[ errno ] );
#else
Debug( LDAP_DEBUG_ANY, "Error: ldap_init(%s, %d) failed: %s\n",
ri->ri_hostname, ri->ri_port, sys_errlist[ errno ] );
#endif
return( BIND_ERR_OPEN );
}
{ /* set version 3 */
int err, version = 3;
err = ldap_set_option(ri->ri_ldp,
LDAP_OPT_PROTOCOL_VERSION, &version);
if( err != LDAP_OPT_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_bind: "
"Error: ldap_set_option(%s, LDAP_OPT_VERSION, 3) failed!\n",
ri->ri_hostname, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: ldap_set_option(%s, LDAP_OPT_VERSION, 3) failed!\n",
ri->ri_hostname, NULL, NULL );
#endif
ldap_unbind( ri->ri_ldp );
ri->ri_ldp = NULL;
return BIND_ERR_VERSION;
}
}
/*
* Set ldap library options to (1) not follow referrals, and
* (2) restart the select() system call.
*/
{
int err;
err = ldap_set_option(ri->ri_ldp, LDAP_OPT_REFERRALS, LDAP_OPT_OFF);
if( err != LDAP_OPT_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_bind: "
"Error: ldap_set_option(%s, REFERRALS, OFF) failed!\n",
ri->ri_hostname, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: ldap_set_option(%s,REFERRALS, OFF) failed!\n",
ri->ri_hostname, NULL, NULL );
#endif
ldap_unbind( ri->ri_ldp );
ri->ri_ldp = NULL;
return BIND_ERR_REFERRALS;
}
}
ldap_set_option(ri->ri_ldp, LDAP_OPT_RESTART, LDAP_OPT_ON);
if( ri->ri_tls ) {
int err;
err = ldap_start_tls_s(ri->ri_ldp, NULL, NULL);
if( err != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_bind: "
"%s: ldap_start_tls failed: %s (%d)\n",
ri->ri_tls == TLS_CRITICAL ? "Error" : "Warning",
ldap_err2string( err ), err );
#else
Debug( LDAP_DEBUG_ANY,
"%s: ldap_start_tls failed: %s (%d)\n",
ri->ri_tls == TLS_CRITICAL ? "Error" : "Warning",
ldap_err2string( err ), err );
#endif
if( ri->ri_tls == TLS_CRITICAL ) {
ldap_unbind( ri->ri_ldp );
ri->ri_ldp = NULL;
return BIND_ERR_TLS_FAILED;
}
ri->ri_tls = TLS_OFF;
goto retry;
}
}
switch ( ri->ri_bind_method ) {
case AUTH_SIMPLE:
/*
* Bind with a plaintext password.
*/
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ARGS,
"do_bind: bind to %s:%d as %s (simple)\n",
ri->ri_hostname, ri->ri_port, ri->ri_bind_dn );
#else
Debug( LDAP_DEBUG_ARGS, "bind to %s:%d as %s (simple)\n",
ri->ri_hostname, ri->ri_port, ri->ri_bind_dn );
#endif
ldrc = ldap_simple_bind_s( ri->ri_ldp, ri->ri_bind_dn,
ri->ri_password );
if ( ldrc != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_bind: "
"Error: ldap_simple_bind_s for %s:%d failed: %s\n",
ri->ri_hostname, ri->ri_port, ldap_err2string( ldrc ) );
#else
Debug( LDAP_DEBUG_ANY,
"Error: ldap_simple_bind_s for %s:%d failed: %s\n",
ri->ri_hostname, ri->ri_port, ldap_err2string( ldrc ));
#endif
*lderr = ldrc;
ldap_unbind( ri->ri_ldp );
ri->ri_ldp = NULL;
return( BIND_ERR_SIMPLE_FAILED );
}
break;
case AUTH_SASL:
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ARGS,
"do_bind: bind to %s as %s via %s (SASL)\n",
ri->ri_hostname,
ri->ri_authcId ? ri->ri_authcId : "-",
ri->ri_saslmech );
#else
Debug( LDAP_DEBUG_ARGS, "bind to %s as %s via %s (SASL)\n",
ri->ri_hostname,
ri->ri_authcId ? ri->ri_authcId : "-",
ri->ri_saslmech );
#endif
#ifdef HAVE_CYRUS_SASL
if( ri->ri_secprops != NULL ) {
int err;
err = ldap_set_option(ri->ri_ldp, LDAP_OPT_X_SASL_SECPROPS,
ri->ri_secprops);
if( err != LDAP_OPT_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_bind: "
"Error: ldap_set_option(%s,SECPROPS,\"%s\") failed!\n",
ri->ri_hostname, ri->ri_secprops, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: ldap_set_option(%s,SECPROPS,\"%s\") failed!\n",
ri->ri_hostname, ri->ri_secprops, NULL );
#endif
ldap_unbind( ri->ri_ldp );
ri->ri_ldp = NULL;
return BIND_ERR_SASL_FAILED;
}
}
{
char *passwd = ri->ri_password ? ber_strdup( ri->ri_password ) : NULL;
void *defaults = lutil_sasl_defaults( ri->ri_ldp, ri->ri_saslmech,
ri->ri_realm, ri->ri_authcId, passwd, ri->ri_authzId );
ldrc = ldap_sasl_interactive_bind_s( ri->ri_ldp, ri->ri_bind_dn,
ri->ri_saslmech, NULL, NULL,
LDAP_SASL_QUIET, lutil_sasl_interact, defaults );
if ( ldrc != LDAP_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_bind: "
"Error: LDAP SASL for %s:%d failed: %s\n",
ri->ri_hostname, ri->ri_port, ldap_err2string( ldrc ) );
#else
Debug( LDAP_DEBUG_ANY, "Error: LDAP SASL for %s:%d failed: %s\n",
ri->ri_hostname, ri->ri_port, ldap_err2string( ldrc ));
#endif
*lderr = ldrc;
ldap_unbind( ri->ri_ldp );
ri->ri_ldp = NULL;
return( BIND_ERR_SASL_FAILED );
}
ber_memfree( passwd );
ber_memfree( defaults );
}
break;
#else
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_bind: "
"Error: do_bind: SASL not supported %s:%d\n",
ri->ri_hostname, ri->ri_port, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"Error: do_bind: SASL not supported %s:%d\n",
ri->ri_hostname, ri->ri_port, NULL );
#endif
ldap_unbind( ri->ri_ldp );
ri->ri_ldp = NULL;
return( BIND_ERR_BAD_ATYPE );
#endif
default:
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_bind: "
"Error: do_bind: unknown auth type \"%d\" for %s:%d\n",
ri->ri_bind_method, ri->ri_hostname, ri->ri_port );
#else
Debug( LDAP_DEBUG_ANY,
"Error: do_bind: unknown auth type \"%d\" for %s:%d\n",
ri->ri_bind_method, ri->ri_hostname, ri->ri_port );
#endif
ldap_unbind( ri->ri_ldp );
ri->ri_ldp = NULL;
return( BIND_ERR_BAD_ATYPE );
}
{
int err;
LDAPControl c;
LDAPControl *ctrls[2];
ctrls[0] = &c;
ctrls[1] = NULL;
c.ldctl_oid = LDAP_CONTROL_MANAGEDSAIT;
c.ldctl_value.bv_val = NULL;
c.ldctl_value.bv_len = 0;
c.ldctl_iscritical = 0;
err = ldap_set_option(ri->ri_ldp, LDAP_OPT_SERVER_CONTROLS, &ctrls);
if( err != LDAP_OPT_SUCCESS ) {
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, ERR, "do_bind: "
"ldap_set_option(%s, SERVER_CONTROLS, ManageDSAit) failed!\n",
ri->ri_hostname, 0, 0 );
#else
Debug( LDAP_DEBUG_ANY, "Error: "
"ldap_set_option(%s, SERVER_CONTROLS, ManageDSAit) failed!\n",
ri->ri_hostname, NULL, NULL );
#endif
ldap_unbind( ri->ri_ldp );
ri->ri_ldp = NULL;
return BIND_ERR_MANAGEDSAIT;
}
}
return( BIND_OK );
}
/*
* For debugging. Print the contents of an ldmarr array.
*/
static void
dump_ldm_array(
LDAPMod **ldmarr
)
{
int i, j;
LDAPMod *ldm;
struct berval *b;
char *msgbuf;
for ( i = 0; ldmarr[ i ] != NULL; i++ ) {
ldm = ldmarr[ i ];
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, INFO, "dump_ldm_array: "
"Trace (%ld): *** ldmarr[ %d ] contents:\n",
(long) getpid(), i, 0 );
LDAP_LOG ( OPERATION, INFO, "dump_ldm_array: "
"Trace (%ld): *** ldm->mod_op: %d\n",
(long) getpid(), ldm->mod_op, 0 );
LDAP_LOG ( OPERATION, INFO, "dump_ldm_array: "
"Trace (%ld): *** ldm->mod_type: %s\n",
(long) getpid(), ldm->mod_type, 0 );
#else
Debug( LDAP_DEBUG_TRACE,
"Trace (%ld): *** ldmarr[ %d ] contents:\n",
(long) getpid(), i, 0 );
Debug( LDAP_DEBUG_TRACE,
"Trace (%ld): *** ldm->mod_op: %d\n",
(long) getpid(), ldm->mod_op, 0 );
Debug( LDAP_DEBUG_TRACE,
"Trace (%ld): *** ldm->mod_type: %s\n",
(long) getpid(), ldm->mod_type, 0 );
#endif
if ( ldm->mod_bvalues != NULL ) {
for ( j = 0; ( b = ldm->mod_bvalues[ j ] ) != NULL; j++ ) {
msgbuf = ch_malloc( b->bv_len + 512 );
sprintf( msgbuf, "***** bv[ %d ] len = %ld, val = <%s>",
j, b->bv_len, b->bv_val );
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, INFO, "dump_ldm_array: "
"Trace (%ld):%s\n", (long) getpid(), msgbuf, 0 );
#else
Debug( LDAP_DEBUG_TRACE,
"Trace (%ld):%s\n", (long) getpid(), msgbuf, 0 );
#endif
free( msgbuf );
}
}
}
}
| 24.929487 | 92 | 0.621827 |
ecb668c237dbad89bf38d4b4900075ed56c23fbb | 1,556 | h | C | protocols/UDP/include/IoT/UDP/PacketSerializer.h | gboyraz/macchina.io | 3e26fea95e87512459693831242b297f0780cc21 | [
"Apache-2.0"
] | 2 | 2020-11-23T23:37:00.000Z | 2020-12-22T04:02:41.000Z | protocols/UDP/include/IoT/UDP/PacketSerializer.h | gboyraz/macchina.io | 3e26fea95e87512459693831242b297f0780cc21 | [
"Apache-2.0"
] | null | null | null | protocols/UDP/include/IoT/UDP/PacketSerializer.h | gboyraz/macchina.io | 3e26fea95e87512459693831242b297f0780cc21 | [
"Apache-2.0"
] | 1 | 2020-11-23T23:37:09.000Z | 2020-11-23T23:37:09.000Z | //
// PacketSerializer.h
//
// Package: Generated
// Module: TypeSerializer
//
// This file has been generated.
// Warning: All changes to this will be lost when the file is re-generated.
//
// Copyright (c) 2017, Applied Informatics Software Engineering GmbH.
// All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
#ifndef TypeSerializer_IoT_UDP_Packet_INCLUDED
#define TypeSerializer_IoT_UDP_Packet_INCLUDED
#include "IoT/UDP/EndpointAddressDeserializer.h"
#include "IoT/UDP/EndpointAddressSerializer.h"
#include "IoT/UDP/UDPEndpoint.h"
#include "Poco/RemotingNG/TypeSerializer.h"
namespace Poco {
namespace RemotingNG {
template <>
class TypeSerializer<IoT::UDP::Packet>
{
public:
static void serialize(const std::string& name, const IoT::UDP::Packet& value, Serializer& ser)
{
ser.serializeStructBegin(name);
serializeImpl(value, ser);
ser.serializeStructEnd(name);
}
static void serializeImpl(const IoT::UDP::Packet& value, Serializer& ser)
{
remoting__staticInitBegin(REMOTING__NAMES);
static const std::string REMOTING__NAMES[] = {"destination","payload","source",""};
remoting__staticInitEnd(REMOTING__NAMES);
TypeSerializer<IoT::UDP::EndpointAddress >::serialize(REMOTING__NAMES[0], value.destination, ser);
TypeSerializer<std::vector < char > >::serialize(REMOTING__NAMES[1], value.payload, ser);
TypeSerializer<IoT::UDP::EndpointAddress >::serialize(REMOTING__NAMES[2], value.source, ser);
}
};
} // namespace RemotingNG
} // namespace Poco
#endif // TypeSerializer_IoT_UDP_Packet_INCLUDED
| 25.508197 | 100 | 0.755784 |
ecb967dfd73455561d2f8bb3f07acc71e9f83811 | 321 | h | C | eos/inline/intf.h | pchabermann/EosSdk | c7f96a18bb06d0bbdb0b15a9de501f2518102651 | [
"BSD-3-Clause"
] | 132 | 2015-02-04T20:25:20.000Z | 2022-03-10T03:50:32.000Z | eos/inline/intf.h | pchabermann/EosSdk | c7f96a18bb06d0bbdb0b15a9de501f2518102651 | [
"BSD-3-Clause"
] | 57 | 2015-05-20T22:34:28.000Z | 2022-03-16T21:52:28.000Z | eos/inline/intf.h | pchabermann/EosSdk | c7f96a18bb06d0bbdb0b15a9de501f2518102651 | [
"BSD-3-Clause"
] | 39 | 2015-02-17T21:04:47.000Z | 2021-06-18T00:38:46.000Z | // Copyright (c) 2013 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#ifndef EOS_INLINE_INTF_H
#define EOS_INLINE_INTF_H
#include <eos/panic.h>
namespace eos {
inline intf_mgr * intf_handler::get_intf_mgr() const {
return mgr_;
}
}
#endif // EOS_INLINE_INTF_H
| 17.833333 | 65 | 0.747664 |
ecba2d04ac363f69c5810206232883c91da360f6 | 31,522 | h | C | SyntaxTools/Common/AstNodes.h | Alexhndr/SyntaxTools | 1d4ed5f2d3747e5013d2d606e2c83e9f87f18629 | [
"MIT"
] | null | null | null | SyntaxTools/Common/AstNodes.h | Alexhndr/SyntaxTools | 1d4ed5f2d3747e5013d2d606e2c83e9f87f18629 | [
"MIT"
] | null | null | null | SyntaxTools/Common/AstNodes.h | Alexhndr/SyntaxTools | 1d4ed5f2d3747e5013d2d606e2c83e9f87f18629 | [
"MIT"
] | null | null | null | #ifndef SYNTAX_TOOLS_COMMON_AST_NODES_H
#define SYNTAX_TOOLS_COMMON_AST_NODES_H
#include <memory>
#include <vector>
#include "Tokens.h"
namespace syntax_tools {
enum class AstNodeType {
none,
root,
block,
blockElement,
preprocessorRegionBlock,
preprocessorIfBlock,
preprocessorIfBlockElement,
preprocessorExpression,
preprocessorExpressionElement,
preprocessorPrimeExpression,
preprocessorValue,
preprocessorAndExpression,
preprocessorAndExpressionElement,
preprocessorNotExpression,
preprocessorNotExpressionElement,
variablesBlock,
variablesBlockElement,
variablesBlockElementElement,
variable,
functionsBlock,
functionsBlockElement,
functionBlock,
procedureBlock,
directiveOfPreprocessor,
annotation,
functionArgumentsBlock,
functionArgumentsBlockElement,
functionArgument,
value,
string,
stringElement,
operationsBlock,
operationsBlockElement,
settingStatement,
memberExpression,
memberMethodElement,
memberMethodElementElement,
argumentsBlock,
argumentsBlockElement,
arrayElement,
methodStatement,
methodExpression,
executeStatement,
returnStatement,
awaitStatement,
addHandlerStatement,
removeHandlerStatement,
ifStatement,
ifStatementElement,
forToStatement,
forEachStatement,
whileStatement,
tryStatement,
raiseStatement,
labelStatement,
gotoStatement,
continueStatement,
breakStatement,
semicolonStatement,
initialExpression,
expression,
expressionElement,
primeExpression,
expressionInParenthesis,
memberMethod,
newElement,
newArgumentsBlock,
ternaryOperationElement,
awaitElement,
andExpression,
andExpressionElement,
notExpression,
notExpressionElement,
relationalExpression,
relationalExpressionElement,
addingExpression,
addingExpressionElement,
multiplyingExpression,
multiplyingExpressionElement,
signExpression,
signExpressionElement
};
struct AstToken: public Token {
virtual ~AstToken();
void SetFromToken(const Token& token);
void* prnt = nullptr;
};
struct AstNode: public Entity {
virtual ~AstNode();
void SetAstNode(const AstNode& astNode);
virtual void UpdateChildren();
AstNodeType type = AstNodeType::none;
void* prnt = nullptr;
int index = -1;
};
struct Ast;
struct Block;
struct BlockElement;
struct PreprocessorRegionBlock;
struct PreprocessorIfBlock;
struct PreprocessorIfBlockElement;
struct PreprocessorExpression;
struct PreprocessorExpressionElement;
struct PreprocessorPrimeExpression;
struct PreprocessorValue;
struct PreprocessorAndExpression;
struct PreprocessorAndExpressionElement;
struct PreprocessorNotExpression;
struct PreprocessorNotExpressionElement;
struct VariablesBlock;
struct VariablesBlockElement;
struct VariablesBlockElementElement;
struct Variable;
struct FunctionsBlock;
struct FunctionsBlockElement;
struct FunctionBlock;
struct ProcedureBlock;
struct DirectiveOfPreprocessor;
struct Annotation;
struct FunctionArgumentsBlock;
struct FunctionArgumentsBlockElement;
struct FunctionArgument;
struct Value;
struct String;
struct StringElement;
struct OperationsBlock;
struct OperationsBlockElement;
struct SettingStatement;
struct MemberExpression;
struct MemberMethodElement;
struct MemberMethodElementElement;
struct ArgumentsBlock;
struct ArgumentsBlockElement;
struct ArrayElement;
struct MethodStatement;
struct MethodExpression;
struct ExecuteStatement;
struct ReturnStatement;
struct AwaitStatement;
struct AddHandlerStatement;
struct RemoveHandlerStatement;
struct IfStatement;
struct IfStatementElement;
struct ForToStatement;
struct ForEachStatement;
struct WhileStatement;
struct TryStatement;
struct RaiseStatement;
struct LabelStatement;
struct GotoStatement;
struct ContinueStatement;
struct BreakStatement;
struct SemicolonStatement;
struct InitialExpression;
struct Expression;
struct ExpressionElement;
struct PrimeExpression;
struct ExpressionInParenthesis;
struct MemberMethod;
struct NewElement;
struct NewArgumentsBlock;
struct TernaryOperationElement;
struct AwaitElement;
struct AndExpression;
struct AndExpressionElement;
struct NotExpression;
struct NotExpressionElement;
struct RelationalExpression;
struct RelationalExpressionElement;
struct AddingExpression;
struct AddingExpressionElement;
struct MultiplyingExpression;
struct MultiplyingExpressionElement;
struct SignExpression;
struct SignExpressionElement;
struct Ast: public AstNode {
Ast();
virtual ~Ast();
std::unique_ptr<Block> block;
};
struct Block: public AstNode {
Block();
virtual ~Block();
std::vector<BlockElement> blockElements;
};
struct BlockElement: public AstNode {
BlockElement();
BlockElement(const BlockElement& blockElement);
virtual ~BlockElement();
virtual void UpdateChildren() override;
std::unique_ptr<PreprocessorRegionBlock> preprocessorRegionBlock;
std::unique_ptr<PreprocessorIfBlock> preprocessorIfBlock;
std::unique_ptr<VariablesBlock> variablesBlock;
std::unique_ptr<FunctionsBlock> functionsBlock;
std::unique_ptr<OperationsBlock> operationsBlock;
};
struct PreprocessorRegionBlock: public AstNode {
PreprocessorRegionBlock();
virtual ~PreprocessorRegionBlock();
AstToken tkTermNumberSignRegion;
AstToken tkTermRegion;
AstToken tkTermIdentifier;
std::unique_ptr<Block> block;
AstToken tkTermNumberSignEndRegion;
AstToken tkTermEndRegion;
};
struct PreprocessorIfBlock: public AstNode {
PreprocessorIfBlock();
virtual ~PreprocessorIfBlock();
bool isTermElse = false;
AstToken tkTermNumberSignIf;
AstToken tkTermIf;
std::unique_ptr<PreprocessorExpression> preprocessorExpression;
AstToken tkTermThen;
std::unique_ptr<Block> blockIf;
std::vector<PreprocessorIfBlockElement> preprocessorIfBlockElements;
AstToken tkTermNumberSignElse;
AstToken tkTermElse;
std::unique_ptr<Block> blockElse;
AstToken tkTermNumberSignEndIf;
AstToken tkTermEndIf;
};
struct PreprocessorIfBlockElement: public AstNode {
PreprocessorIfBlockElement();
PreprocessorIfBlockElement(const PreprocessorIfBlockElement& preprocessorIfBlockElement);
virtual ~PreprocessorIfBlockElement();
virtual void UpdateChildren() override;
AstToken tkTermNumberSign;
AstToken tkTermElsIf;
std::unique_ptr<PreprocessorExpression> preprocessorExpression;
AstToken tkTermThen;
std::unique_ptr<Block> block;
};
struct PreprocessorExpression: public AstNode {
PreprocessorExpression();
virtual ~PreprocessorExpression();
std::unique_ptr<PreprocessorAndExpression> preprocessorAndExpression;
std::vector<PreprocessorExpressionElement> preprocessorExpressionElements;
};
struct PreprocessorExpressionElement: public AstNode {
PreprocessorExpressionElement();
PreprocessorExpressionElement(const PreprocessorExpressionElement& preprocessorExpressionElement);
virtual ~PreprocessorExpressionElement();
virtual void UpdateChildren() override;
AstToken tkTermOr;
std::unique_ptr<PreprocessorAndExpression> preprocessorAndExpression;
};
struct PreprocessorPrimeExpression: public AstNode {
PreprocessorPrimeExpression();
virtual ~PreprocessorPrimeExpression();
std::unique_ptr<PreprocessorValue> preprocessorValue;
AstToken tkTermLeftParenthesis;
std::unique_ptr<PreprocessorExpression> preprocessorExpression;
AstToken tkTermRightParenthesis;
};
struct PreprocessorValue: public AstNode {
PreprocessorValue();
virtual ~PreprocessorValue();
bool isTermClient = false;
bool isTermAtClient = false;
bool isTermAtServer = false;
bool isTermMobileAppClient = false;
bool isTermMobileAppServer = false;
bool isTermThickClientOrdinaryApplication = false;
bool isTermThickClientManagedApplication = false;
bool isTermServer = false;
bool isTermExternalConnection = false;
bool isTermThinClient = false;
bool isTermWebClient = false;
AstToken tkTermClient;
AstToken tkTermAtClient;
AstToken tkTermAtServer;
AstToken tkTermMobileAppClient;
AstToken tkTermMobileAppServer;
AstToken tkTermThickClientOrdinaryApplication;
AstToken tkTermThickClientManagedApplication;
AstToken tkTermServer;
AstToken tkTermExternalConnection;
AstToken tkTermThinClient;
AstToken tkTermWebClient;
};
struct PreprocessorAndExpression: public AstNode {
PreprocessorAndExpression();
virtual ~PreprocessorAndExpression();
std::unique_ptr<PreprocessorNotExpression> preprocessorNotExpression;
std::vector<PreprocessorAndExpressionElement> preprocessorAndExpressionElements;
};
struct PreprocessorAndExpressionElement: public AstNode {
PreprocessorAndExpressionElement();
PreprocessorAndExpressionElement(const PreprocessorAndExpressionElement& preprocessorAndExpressionElement);
virtual ~PreprocessorAndExpressionElement();
virtual void UpdateChildren() override;
AstToken tkTermAnd;
std::unique_ptr<PreprocessorNotExpression> preprocessorNotExpression;
};
struct PreprocessorNotExpression: public AstNode {
PreprocessorNotExpression();
virtual ~PreprocessorNotExpression();
std::vector<PreprocessorNotExpressionElement> preprocessorNotExpressionElements;
std::unique_ptr<PreprocessorPrimeExpression> preprocessorPrimeExpression;
};
struct PreprocessorNotExpressionElement: public AstNode {
PreprocessorNotExpressionElement();
virtual ~PreprocessorNotExpressionElement();
virtual void UpdateChildren() override;
AstToken tkTermNot;
};
struct VariablesBlock: public AstNode {
VariablesBlock();
virtual ~VariablesBlock();
std::vector<VariablesBlockElement> variablesBlockElements;
};
struct VariablesBlockElement: public AstNode {
VariablesBlockElement();
VariablesBlockElement(const VariablesBlockElement& variablesBlockElement);
virtual ~VariablesBlockElement();
virtual void UpdateChildren() override;
AstToken tkVar;
std::unique_ptr<Variable> variable;
std::vector<VariablesBlockElementElement> variablesBlockElementElements;
AstToken tkSemicolon;
};
struct VariablesBlockElementElement: public AstNode {
VariablesBlockElementElement();
VariablesBlockElementElement(const VariablesBlockElementElement& variablesBlockElementElement);
virtual ~VariablesBlockElementElement();
virtual void UpdateChildren() override;
AstToken tkComma;
std::unique_ptr<Variable> variable;
};
struct Variable: public AstNode {
Variable();
virtual ~Variable();
bool isExport = false;
AstToken tkIdentifier;
AstToken tkExport;
};
struct FunctionsBlock: public AstNode {
FunctionsBlock();
virtual ~FunctionsBlock();
std::vector<FunctionsBlockElement> functionsBlockElements;
};
struct FunctionsBlockElement: public AstNode {
FunctionsBlockElement();
FunctionsBlockElement(const FunctionsBlockElement& functionsBlockElement);
virtual ~FunctionsBlockElement();
virtual void UpdateChildren() override;
std::unique_ptr<FunctionBlock> functionBlock;
std::unique_ptr<ProcedureBlock> procedureBlock;
};
struct FunctionBlock: public AstNode {
FunctionBlock();
virtual ~FunctionBlock();
bool isAsync = false;
bool isExport = false;
std::unique_ptr<DirectiveOfPreprocessor> directiveOfPreprocessor;
AstToken tkAsync;
AstToken tkFunction;
AstToken tkIdentifier;
AstToken tkLeftParenthesis;
std::unique_ptr<FunctionArgumentsBlock> functionArgumentsBlock;
AstToken tkRightParenthesis;
AstToken tkExport;
std::unique_ptr<Block> block;
AstToken tkEndFunction;
};
struct ProcedureBlock: public AstNode {
ProcedureBlock();
virtual ~ProcedureBlock();
bool isAsync = false;
bool isExport = false;
std::unique_ptr<DirectiveOfPreprocessor> directiveOfPreprocessor;
AstToken tkAsync;
AstToken tkProcedure;
AstToken tkIdentifier;
AstToken tkLeftParenthesis;
std::unique_ptr<FunctionArgumentsBlock> functionArgumentsBlock;
AstToken tkRightParenthesis;
AstToken tkExport;
std::unique_ptr<Block> block;
AstToken tkEndProcedure;
};
struct DirectiveOfPreprocessor: public AstNode {
DirectiveOfPreprocessor();
virtual ~DirectiveOfPreprocessor();
bool isDirectiveAtClient = false;
bool isDirectiveAtServer = false;
bool isDirectiveAtServerNoContext = false;
bool isDirectiveAtClientAtServerNoContext = false;
bool isDirectiveAtClientAtServer = false;
AstToken tkDirectiveAmpersand;
AstToken tkDirectiveAtClient;
AstToken tkDirectiveAtServer;
AstToken tkDirectiveAtServerNoContext;
AstToken tkDirectiveAtClientAtServerNoContext;
AstToken tkDirectiveAtClientAtServer;
std::unique_ptr<Annotation> annotation;
};
struct Annotation: public AstNode {
Annotation();
virtual ~Annotation();
bool isDirectiveBefore = false;
bool isDirectiveAfter = false;
bool isDirectiveInstead = false;
AstToken tkDirectiveAmpersand;
AstToken tkDirectiveBefore;
AstToken tkDirectiveAfter;
AstToken tkDirectiveInstead;
AstToken tkDirectiveLeftParenthesis;
AstToken tkDirectiveString;
AstToken tkDirectiveRightParenthesis;
};
struct FunctionArgumentsBlock: public AstNode {
FunctionArgumentsBlock();
virtual ~FunctionArgumentsBlock();
std::unique_ptr<FunctionArgument> functionArgument;
std::vector<FunctionArgumentsBlockElement> functionArgumentsBlockElements;
};
struct FunctionArgumentsBlockElement: public AstNode {
FunctionArgumentsBlockElement();
FunctionArgumentsBlockElement(const FunctionArgumentsBlockElement& functionArgumentsBlockElement);
virtual ~FunctionArgumentsBlockElement();
virtual void UpdateChildren() override;
AstToken tkComma;
std::unique_ptr<FunctionArgument> functionArgument;
};
struct FunctionArgument: public AstNode {
FunctionArgument();
virtual ~FunctionArgument();
bool isVal = false;
AstToken tkVal;
AstToken tkIdentifier;
AstToken tkEquals;
std::unique_ptr<Value> value;
};
struct Value: public AstNode {
Value();
virtual ~Value();
bool isSignedFloat = false;
bool isFloat = false;
bool isDate = false;
bool isNull = false;
bool isUndefined = false;
bool isFalse = false;
bool isTrue = false;
AstToken tkSignedFloat;
AstToken tkFloat;
AstToken tkDate;
AstToken tkNull;
AstToken tkUndefined;
AstToken tkFalse;
AstToken tkTrue;
std::unique_ptr<String> string;
};
struct String: public AstNode {
String();
virtual ~String();
AstToken tkString;
AstToken tkStringBeginning;
std::vector<StringElement> stringElements;
AstToken tkStringEnding;
};
struct StringElement: public AstNode {
StringElement();
virtual ~StringElement();
virtual void UpdateChildren() override;
AstToken tkStringContinue;
};
struct OperationsBlock: public AstNode {
OperationsBlock();
virtual ~OperationsBlock();
std::vector<OperationsBlockElement> operationsBlockElements;
};
struct OperationsBlockElement: public AstNode {
OperationsBlockElement();
OperationsBlockElement(const OperationsBlockElement& operationsBlockElement);
virtual ~OperationsBlockElement();
virtual void UpdateChildren() override;
std::unique_ptr<SettingStatement> settingStatement;
std::unique_ptr<MethodStatement> methodStatement;
std::unique_ptr<ExecuteStatement> executeStatement;
std::unique_ptr<ReturnStatement> returnStatement;
std::unique_ptr<AwaitStatement> awaitStatement;
std::unique_ptr<AddHandlerStatement> addHandlerStatement;
std::unique_ptr<RemoveHandlerStatement> removeHandlerStatement;
std::unique_ptr<IfStatement> ifStatement;
std::unique_ptr<ForToStatement> forToStatement;
std::unique_ptr<ForEachStatement> forEachStatement;
std::unique_ptr<WhileStatement> whileStatement;
std::unique_ptr<TryStatement> tryStatement;
std::unique_ptr<RaiseStatement> raiseStatement;
std::unique_ptr<LabelStatement> labelStatement;
std::unique_ptr<GotoStatement> gotoStatement;
std::unique_ptr<ContinueStatement> continueStatement;
std::unique_ptr<BreakStatement> breakStatement;
std::unique_ptr<SemicolonStatement> semicolonStatement;
};
struct SettingStatement: public AstNode {
SettingStatement();
virtual ~SettingStatement();
std::unique_ptr<MemberExpression> memberExpression;
AstToken tkEquals;
std::unique_ptr<InitialExpression> initialExpression;
AstToken tkSemicolon;
};
struct MemberExpression: public AstNode {
MemberExpression();
virtual ~MemberExpression();
std::vector<MemberMethodElement> memberMethodElements;
AstToken tkIdentifier;
std::vector<ArrayElement> arrayElements;
};
struct MemberMethodElement: public AstNode {
MemberMethodElement();
MemberMethodElement(const MemberMethodElement& memberMethodElement);
virtual ~MemberMethodElement();
virtual void UpdateChildren() override;
std::unique_ptr<MemberMethodElementElement> memberMethodElementElement;
AstToken tkFullStop;
};
struct MemberMethodElementElement: public AstNode {
MemberMethodElementElement();
virtual ~MemberMethodElementElement();
AstToken tkIdentifier;
std::unique_ptr<ArgumentsBlock> argumentsBlock;
std::vector<ArrayElement> arrayElements;
};
struct ArgumentsBlock: public AstNode {
ArgumentsBlock();
virtual ~ArgumentsBlock();
AstToken tkLeftParenthesis;
std::unique_ptr<InitialExpression> initialExpression;
std::vector<ArgumentsBlockElement> argumentsBlockElements;
AstToken tkRightParenthesis;
};
struct ArgumentsBlockElement: public AstNode {
ArgumentsBlockElement();
ArgumentsBlockElement(const ArgumentsBlockElement& argumentsBlockElement);
virtual ~ArgumentsBlockElement();
virtual void UpdateChildren() override;
AstToken tkComma;
std::unique_ptr<InitialExpression> initialExpression;
};
struct ArrayElement: public AstNode {
ArrayElement();
ArrayElement(const ArrayElement& arrayElement);
virtual ~ArrayElement();
virtual void UpdateChildren() override;
AstToken tkLeftSquareBracket;
std::unique_ptr<InitialExpression> initialExpression;
AstToken tkRightSquareBracket;
};
struct MethodStatement: public AstNode {
MethodStatement();
virtual ~MethodStatement();
std::unique_ptr<MethodExpression> methodExpression;
AstToken tkSemicolon;
};
struct MethodExpression: public AstNode {
MethodExpression();
virtual ~MethodExpression();
std::vector<MemberMethodElement> memberMethodElements;
AstToken tkIdentifier;
std::unique_ptr<ArgumentsBlock> argumentsBlock;
};
struct ExecuteStatement: public AstNode {
ExecuteStatement();
virtual ~ExecuteStatement();
AstToken tkExecute;
AstToken tkLeftParenthesis;
std::unique_ptr<InitialExpression> initialExpression;
AstToken tkRightParenthesis;
AstToken tkSemicolon;
};
struct ReturnStatement: public AstNode {
ReturnStatement();
virtual ~ReturnStatement();
AstToken tkReturn;
std::unique_ptr<InitialExpression> initialExpression;
AstToken tkSemicolon;
};
struct AwaitStatement: public AstNode {
AwaitStatement();
virtual ~AwaitStatement();
AstToken tkAwait;
std::unique_ptr<InitialExpression> initialExpression;
AstToken tkSemicolon;
};
struct AddHandlerStatement: public AstNode {
AddHandlerStatement();
virtual ~AddHandlerStatement();
AstToken tkAddHandler;
std::unique_ptr<MemberMethod> memberMethodEvent;
AstToken tkFullStopEvent;
AstToken tkIdentifierEvent;
AstToken tkComma;
std::unique_ptr<MemberMethod> memberMethodHandler;
AstToken tkFullStopHandler;
AstToken tkIdentifierHandler;
AstToken tkSemicolon;
AstToken tkIdentifierFunctionName;
};
struct RemoveHandlerStatement: public AstNode {
RemoveHandlerStatement();
virtual ~RemoveHandlerStatement();
AstToken tkRemoveHandler;
std::unique_ptr<MemberMethod> memberMethodEvent;
AstToken tkFullStopEvent;
AstToken tkIdentifierEvent;
AstToken tkComma;
std::unique_ptr<MemberMethod> memberMethodHandler;
AstToken tkFullStopHandler;
AstToken tkIdentifierHandler;
AstToken tkSemicolon;
AstToken tkIdentifierFunctionName;
};
struct IfStatement: public AstNode {
IfStatement();
virtual ~IfStatement();
bool isElse = false;
AstToken tkIf;
std::unique_ptr<InitialExpression> initialExpression;
AstToken tkThen;
std::unique_ptr<Block> blockIf;
std::vector<IfStatementElement> ifStatementElements;
AstToken tkElse;
std::unique_ptr<Block> blockElse;
AstToken tkEndIf;
AstToken tkSemicolon;
};
struct IfStatementElement: public AstNode {
IfStatementElement();
IfStatementElement(const IfStatementElement& ifStatementElement);
virtual ~IfStatementElement();
virtual void UpdateChildren() override;
AstToken tkElsIf;
std::unique_ptr<InitialExpression> initialExpression;
AstToken tkThen;
std::unique_ptr<Block> block;
};
struct ForToStatement: public AstNode {
ForToStatement();
virtual ~ForToStatement();
AstToken tkFor;
AstToken tkIdentifier;
AstToken tkEquals;
std::unique_ptr<InitialExpression> initialExpressionA;
AstToken tkTo;
std::unique_ptr<InitialExpression> initialExpressionB;
AstToken tkDo;
std::unique_ptr<Block> block;
AstToken tkEndDo;
AstToken tkSemicolon;
};
struct ForEachStatement: public AstNode {
ForEachStatement();
virtual ~ForEachStatement();
AstToken tkFor;
AstToken tkEach;
AstToken tkIdentifier;
AstToken tkIn;
std::unique_ptr<InitialExpression> initialExpression;
AstToken tkDo;
std::unique_ptr<Block> block;
AstToken tkEndDo;
AstToken tkSemicolon;
};
struct WhileStatement: public AstNode {
WhileStatement();
virtual ~WhileStatement();
AstToken tkWhile;
std::unique_ptr<InitialExpression> initialExpression;
AstToken tkDo;
std::unique_ptr<Block> block;
AstToken tkEndDo;
AstToken tkSemicolon;
};
struct TryStatement: public AstNode {
TryStatement();
virtual ~TryStatement();
AstToken tkTry;
std::unique_ptr<Block> blockTry;
AstToken tkExcept;
std::unique_ptr<Block> blockExcept;
AstToken tkEndTry;
AstToken tkSemicolon;
};
struct RaiseStatement: public AstNode {
RaiseStatement();
virtual ~RaiseStatement();
AstToken tkRaise;
std::unique_ptr<InitialExpression> initialExpression;
AstToken tkSemicolon;
};
struct LabelStatement: public AstNode {
LabelStatement();
virtual ~LabelStatement();
AstToken tkTilde;
AstToken tkIdentifier;
AstToken tkColon;
};
struct GotoStatement: public AstNode {
GotoStatement();
virtual ~GotoStatement();
AstToken tkGoto;
AstToken tkTilde;
AstToken tkIdentifier;
AstToken tkSemicolon;
};
struct ContinueStatement: public AstNode {
ContinueStatement();
virtual ~ContinueStatement();
AstToken tkContinue;
AstToken tkSemicolon;
};
struct BreakStatement: public AstNode {
BreakStatement();
virtual ~BreakStatement();
AstToken tkBreak;
AstToken tkSemicolon;
};
struct SemicolonStatement: public AstNode {
SemicolonStatement();
virtual ~SemicolonStatement();
AstToken tkSemicolon;
};
struct InitialExpression: public AstNode {
InitialExpression();
virtual ~InitialExpression();
std::unique_ptr<Expression> expression;
};
struct Expression: public AstNode {
Expression();
virtual ~Expression();
std::unique_ptr<AndExpression> andExpression;
std::vector<ExpressionElement> expressionElements;
};
struct ExpressionElement: public AstNode {
ExpressionElement();
ExpressionElement(const ExpressionElement& expressionElement);
virtual ~ExpressionElement();
virtual void UpdateChildren() override;
AstToken tkOr;
std::unique_ptr<AndExpression> andExpression;
};
struct PrimeExpression: public AstNode {
PrimeExpression();
virtual ~PrimeExpression();
std::unique_ptr<Value> value;
std::unique_ptr<ExpressionInParenthesis> expressionInParenthesis;
std::unique_ptr<MemberMethod> memberMethod;
std::unique_ptr<NewElement> newElement;
std::unique_ptr<TernaryOperationElement> ternaryOperationElement;
std::unique_ptr<AwaitElement> awaitElement;
};
struct ExpressionInParenthesis: public AstNode {
ExpressionInParenthesis();
virtual ~ExpressionInParenthesis();
AstToken tkLeftParenthesis;
std::unique_ptr<Expression> expression;
AstToken tkRightParenthesis;
};
struct MemberMethod: public AstNode {
MemberMethod();
MemberMethod(const MemberMethod& memberMethod);
virtual ~MemberMethod();
std::vector<MemberMethodElement> memberMethodElements;
std::unique_ptr<MemberMethodElementElement> memberMethodElementElement;
};
struct NewElement: public AstNode {
NewElement();
virtual ~NewElement();
AstToken tkNew;
AstToken tkIdentifier;
std::unique_ptr<ArgumentsBlock> argumentsBlock;
std::unique_ptr<NewArgumentsBlock> newArgumentsBlock;
};
struct NewArgumentsBlock: public AstNode {
NewArgumentsBlock();
virtual ~NewArgumentsBlock();
AstToken tkLeftParenthesis;
std::unique_ptr<InitialExpression> initialExpression;
std::vector<ArgumentsBlockElement> argumentsBlockElements;
AstToken tkRightParenthesis;
};
struct TernaryOperationElement: public AstNode {
TernaryOperationElement();
virtual ~TernaryOperationElement();
AstToken tkQuestionMark;
AstToken tkLeftParenthesis;
std::unique_ptr<InitialExpression> initialExpression;
AstToken tkCommaA;
std::unique_ptr<InitialExpression> initialExpressionTrue;
AstToken tkCommaB;
std::unique_ptr<InitialExpression> initialExpressionFalse;
AstToken tkRightParenthesis;
};
struct AwaitElement: public AstNode {
AwaitElement();
virtual ~AwaitElement();
AstToken tkAwait;
std::unique_ptr<InitialExpression> initialExpression;
};
struct AndExpression: public AstNode {
AndExpression();
virtual ~AndExpression();
std::unique_ptr<NotExpression> notExpression;
std::vector<AndExpressionElement> andExpressionElements;
};
struct AndExpressionElement: public AstNode {
AndExpressionElement();
AndExpressionElement(const AndExpressionElement& andExpressionElement);
virtual ~AndExpressionElement();
virtual void UpdateChildren() override;
AstToken tkAnd;
std::unique_ptr<NotExpression> notExpression;
};
struct NotExpression: public AstNode {
NotExpression();
virtual ~NotExpression();
std::vector<NotExpressionElement> notExpressionElements;
std::unique_ptr<RelationalExpression> relationalExpression;
};
struct NotExpressionElement: public AstNode {
NotExpressionElement();
virtual ~NotExpressionElement();
virtual void UpdateChildren() override;
AstToken tkNot;
};
struct RelationalExpression: public AstNode {
RelationalExpression();
virtual ~RelationalExpression();
std::unique_ptr<AddingExpression> addingExpression;
std::vector<RelationalExpressionElement> relationalExpressionElements;
};
struct RelationalExpressionElement: public AstNode {
RelationalExpressionElement();
RelationalExpressionElement(const RelationalExpressionElement& relationalExpressionElement);
virtual ~RelationalExpressionElement();
virtual void UpdateChildren() override;
bool isEquals = false;
bool isNotEquals = false;
bool isLess = false;
bool isLessOrEquals = false;
bool isGreater = false;
bool isGreaterOrEquals = false;
AstToken tkEquals;
AstToken tkNotEquals;
AstToken tkLess;
AstToken tkLessOrEquals;
AstToken tkGreater;
AstToken tkGreaterOrEquals;
std::unique_ptr<AddingExpression> addingExpression;
};
struct AddingExpression: public AstNode {
AddingExpression();
virtual ~AddingExpression();
std::unique_ptr<MultiplyingExpression> multiplyingExpression;
std::vector<AddingExpressionElement> addingExpressionElements;
};
struct AddingExpressionElement: public AstNode {
AddingExpressionElement();
AddingExpressionElement(const AddingExpressionElement& addingExpressionElement);
virtual ~AddingExpressionElement();
virtual void UpdateChildren() override;
bool isMinus = false;
bool isPlus = false;
AstToken tkMinus;
AstToken tkPlus;
std::unique_ptr<MultiplyingExpression> multiplyingExpression;
};
struct MultiplyingExpression: public AstNode {
MultiplyingExpression();
virtual ~MultiplyingExpression();
std::vector<MultiplyingExpressionElement> multiplyingExpressionElements;
std::unique_ptr<SignExpression> signExpression;
};
struct MultiplyingExpressionElement: public AstNode {
MultiplyingExpressionElement();
MultiplyingExpressionElement(const MultiplyingExpressionElement& multiplyingExpressionElement);
virtual ~MultiplyingExpressionElement();
virtual void UpdateChildren() override;
bool isAsterisk = false;
bool isSolidus = false;
bool isPercent = false;
AstToken tkAsterisk;
AstToken tkSolidus;
AstToken tkPercent;
std::unique_ptr<SignExpression> signExpression;
};
struct SignExpression: public AstNode {
SignExpression();
virtual ~SignExpression();
std::unique_ptr<PrimeExpression> primeExpression;
std::vector<SignExpressionElement> signExpressionElements;
};
struct SignExpressionElement: public AstNode {
SignExpressionElement();
virtual ~SignExpressionElement();
virtual void UpdateChildren() override;
bool isMinus = false;
bool isPlus = false;
AstToken tkMinus;
AstToken tkPlus;
};
}
#endif
| 28.656364 | 112 | 0.730062 |
ecbb80ec637dd3669d9e7237c91c12285c00e5a6 | 3,357 | c | C | src/parse_redirect.c | mhufflep/msh | c6344f95357d74b42aad889439280ba4ef58fc3a | [
"MIT"
] | 2 | 2021-10-04T06:40:19.000Z | 2021-10-05T18:51:38.000Z | src/parse_redirect.c | mhufflep/msh | c6344f95357d74b42aad889439280ba4ef58fc3a | [
"MIT"
] | null | null | null | src/parse_redirect.c | mhufflep/msh | c6344f95357d74b42aad889439280ba4ef58fc3a | [
"MIT"
] | 2 | 2021-05-04T20:47:20.000Z | 2021-06-20T14:29:44.000Z | #include "msh.h"
int skip_in_quote2(char **s, int i, char quote_mark)
{
// Эта ф-ия, в отличие от skip_in_quote, не инкрементирует счетчик, а сразу ищет кавычку
// Пока текущий символ не равняется кавычке или текущий символ равняется кавычке, но перед ним слэш,
// и пока текущий символ не равняется концу строки
while ((*s)[i] && ((*s)[i] != quote_mark || ((*s)[i] == quote_mark && is_slash(*s, i - 1))))
i++;
// Если текущий символ - кавычка и она не экранирована, то значит кавычки закрыты,
// возвращаем следующий от нее индекс строки
if ((*s)[i] == quote_mark && !is_slash(*s, i - 1))
{
*s = remove_from(*s, i);
return (i);
}
else
throw_error(QUOTE_NOT_FOUND, 21);
return (0);
}
// Отличие от read_str, в том, что эта ф-ия принимает строку, а не символ,
// но отсутствие перегрузки в СИ вынудило написать ее отдельно
static size_t read_str2(char **s, int i, char *separators)
{
while ((*s)[i] && !ft_strchr(separators, (*s)[i]))
{
if ((*s)[i] == QUOTE && !is_slash(*s, i - 1))
{
*s = remove_from(*s, i);
i = skip_in_quote2(s, i, QUOTE);
}
else if ((*s)[i] == DQOUTE && !is_slash(*s, i - 1))
{
*s = remove_from(*s, i);
i = skip_in_quote2(s, i, DQOUTE);
}
else
i++;
}
return (i);
}
void write_out(t_cmd *cmd, char **str, int *i)
{
char *copy_str;
t_redir *redir;
t_blst *new;
redir = redir_alloc();
redir->s_id = OUT;
redir->flag = O_CREAT | O_WRONLY | O_TRUNC;
redir->rights = 0644;
*str = remove_from(*str, *i);
if ((*str)[*i] == '>' && !is_slash(*str, *i - 1))
{
redir->flag = O_CREAT | O_WRONLY | O_APPEND;
*str = remove_from(*str, *i);
}
else if ((*str)[*i] == '>' && is_slash(*str, *i - 1))
*str = remove_from(*str, *i - 1);
skip_spaces(*str, i);
copy_str = ft_strdup(*str);
redir->filename = ft_substr(copy_str, *i, read_str2(©_str, *i, " ><") - *i);
new = bd_lstnew(redir);
if (!new)
throw_error(BAD_ALLOC, 10);
bd_lstadd_back(&cmd->out, new);
replace_by(str, *i, read_str2(str, *i, " ><") - *i, "");
free(copy_str);
}
void write_in(t_cmd *cmd, char **str, int *i)
{
char *copy_str;
t_redir *redir;
t_blst *new;
redir = redir_alloc();
redir->s_id = IN;
redir->flag = O_RDONLY; //O_TRUNC;
redir->rights = 0;
*str = remove_from(*str, *i);
if ((*str)[*i] == '<' && !is_slash(*str, *i - 1))
{
redir->flag = O_RDONLY; //O_APPEND;
*str = remove_from(*str, *i);
}
else if ((*str)[*i] == '<' && is_slash(*str, *i - 1))
*str = remove_from(*str, *i - 1);
skip_spaces(*str, i);
copy_str = ft_strdup(*str);
redir->filename = ft_substr(copy_str, *i, read_str2(©_str, *i, " ><") - *i);
new = bd_lstnew(redir);
if (!new)
throw_error(BAD_ALLOC, 10);
bd_lstadd_back(&cmd->in, new);
replace_by(str, *i, read_str2(str, *i, " ><") - *i, "");
free(copy_str);
}
int parse_redirect(t_cmd *cmd, char **str)
{
int i;
i = 0;
while ((*str)[i])
{
if ((*str)[i] == '>' && !is_slash(*str, i - 1))
write_out(cmd, str, &i);
else if ((*str)[i] == '>' && is_slash(*str, i - 1))
*str = remove_from(*str, i - 1);
else if ((*str)[i] == '<' && !is_slash(*str, i - 1))
write_in(cmd, str, &i);
else if ((*str)[i] == '<' && is_slash(*str, i - 1))
*str = remove_from(*str, i - 1);
else if (((*str)[i] == QUOTE || (*str)[i] == DQOUTE) && !is_slash(*str, i - 1))
i = read_str(str, i, ' ', 0);
else
i++;
}
return (1);
} | 26.023256 | 101 | 0.579088 |
ecbc8c2738883d2db7252d0d665ab877901f4f64 | 2,548 | h | C | VideoServer/libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/su_alloc_stat.h | zengfanmao/mpds | c2bba464eaddc9ec70604a8614d84c5334461e8e | [
"MIT"
] | 1 | 2016-09-21T14:18:50.000Z | 2016-09-21T14:18:50.000Z | VideoServer/libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/su_alloc_stat.h | zengfanmao/mpds | c2bba464eaddc9ec70604a8614d84c5334461e8e | [
"MIT"
] | 19 | 2016-09-09T01:50:59.000Z | 2017-01-27T10:11:20.000Z | VideoServer/libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/su_alloc_stat.h | zengfanmao/mpds | c2bba464eaddc9ec70604a8614d84c5334461e8e | [
"MIT"
] | 4 | 2016-08-18T04:12:07.000Z | 2021-02-20T06:31:23.000Z | /*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef SU_ALLOC_STAT_H
/** Defined when <sofia-sip/su_alloc_stat.h> has been included. */
#define SU_ALLOC_STAT_H
/**@ingroup su_alloc
*
* @file sofia-sip/su_alloc_stat.h Home-based memory management statistics
*
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Tue Apr 9 10:24:05 2002 ppessi
*/
#ifndef SU_ALLOC_H
#include <sofia-sip/su_alloc.h>
#endif
#ifndef SU_TYPES_H
#include <sofia-sip/su_types.h>
#endif
SOFIA_BEGIN_DECLS
typedef struct su_home_stat_t su_home_stat_t;
SU_DLL void su_home_init_stats(su_home_t *h);
SU_DLL void su_home_get_stats(su_home_t *, int include_clones,
su_home_stat_t *stats, isize_t statssize);
SU_DLL void su_home_stat_add(su_home_stat_t *total,
su_home_stat_t const *hs);
struct su_home_stat_t
{
int hs_size;
usize_t hs_clones; /**< Number of clones */
usize_t hs_rehash; /**< Number of (re)allocations of hash table. */
usize_t hs_blocksize; /**< Current size of hash table */
struct {
unsigned hsp_size; /**< Size of preload area */
unsigned hsp_used; /**< Number of bytes used from preload */
} hs_preload;
struct {
uint64_t hsa_number;
uint64_t hsa_bytes;
uint64_t hsa_rbytes;
uint64_t hsa_maxrbytes;
uint64_t hsa_preload; /**< Number of allocations from preload area */
} hs_allocs;
struct {
uint64_t hsf_number;
uint64_t hsf_bytes;
uint64_t hsf_rbytes;
uint64_t hsf_preload; /**< Number of free()s from preload area */
} hs_frees;
struct {
uint64_t hsb_number;
uint64_t hsb_bytes;
uint64_t hsb_rbytes;
} hs_blocks;
};
SOFIA_END_DECLS
#endif /* ! defined(SU_ALLOC_H) */
| 27.106383 | 74 | 0.71978 |
ecbc9d99071b64ffbfdf81b86aac8f803f1106e2 | 254 | h | C | ChatKit/Classes/Chat/View/ChatMessageCell/ContentView/SKSChatCoreTextContentView.h | DengXiaoBai/ChatKit | f3101ddf31c66499d66b3d09cacc048851158ed4 | [
"MIT"
] | 1 | 2020-02-22T14:28:16.000Z | 2020-02-22T14:28:16.000Z | ChatKit/Classes/Chat/View/ChatMessageCell/ContentView/SKSChatCoreTextContentView.h | DengXiaoBai/ChatKit | f3101ddf31c66499d66b3d09cacc048851158ed4 | [
"MIT"
] | null | null | null | ChatKit/Classes/Chat/View/ChatMessageCell/ContentView/SKSChatCoreTextContentView.h | DengXiaoBai/ChatKit | f3101ddf31c66499d66b3d09cacc048851158ed4 | [
"MIT"
] | null | null | null | //
// SKSChatCoreTextContentView.h
// AtFirstSight
//
// Created by iCrany on 2016/11/11.
// Copyright © 2016年 Sachsen. All rights reserved.
//
#import "SKSChatBaseContentView.h"
@interface SKSChatCoreTextContentView : SKSChatBaseContentView
@end
| 18.142857 | 62 | 0.751969 |
ecbe130033b4042d251f067581f8b89ef023862c | 1,993 | h | C | System/Library/PrivateFrameworks/IDSFoundation.framework/IDSCloudKitTransportLogMessage.h | zhangkn/iOS14Header | 4323e9459ed6f6f5504ecbea2710bfd6c3d7c946 | [
"MIT"
] | 1 | 2020-11-04T15:43:01.000Z | 2020-11-04T15:43:01.000Z | System/Library/PrivateFrameworks/IDSFoundation.framework/IDSCloudKitTransportLogMessage.h | zhangkn/iOS14Header | 4323e9459ed6f6f5504ecbea2710bfd6c3d7c946 | [
"MIT"
] | null | null | null | System/Library/PrivateFrameworks/IDSFoundation.framework/IDSCloudKitTransportLogMessage.h | zhangkn/iOS14Header | 4323e9459ed6f6f5504ecbea2710bfd6c3d7c946 | [
"MIT"
] | null | null | null | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:40:46 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/IDSFoundation.framework/IDSFoundation
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/
@class NSDictionary, NSString, ENGroupID, IDSDestinationPushToken, NSData;
@interface IDSCloudKitTransportLogMessage : NSObject {
NSDictionary* _payload;
NSString* _secondaryID;
NSString* _deviceID;
NSString* _encryptionType;
}
@property (nonatomic,retain) NSDictionary * payload; //@synthesize payload=_payload - In the implementation block
@property (nonatomic,retain) NSString * secondaryID; //@synthesize secondaryID=_secondaryID - In the implementation block
@property (nonatomic,retain) NSString * deviceID; //@synthesize deviceID=_deviceID - In the implementation block
@property (nonatomic,retain) NSString * encryptionType; //@synthesize encryptionType=_encryptionType - In the implementation block
@property (nonatomic,readonly) ENGroupID * groupID;
@property (nonatomic,readonly) NSString * recipientAlias;
@property (nonatomic,readonly) NSString * senderAlias;
@property (nonatomic,readonly) IDSDestinationPushToken * destination;
@property (nonatomic,readonly) NSData * encryptedPayload;
@property (nonatomic,readonly) NSString * cypherIdentifier;
-(void)setDeviceID:(NSString *)arg1 ;
-(IDSDestinationPushToken *)destination;
-(NSString *)senderAlias;
-(void)setSecondaryID:(NSString *)arg1 ;
-(NSString *)secondaryID;
-(NSString *)recipientAlias;
-(NSDictionary *)payload;
-(NSData *)encryptedPayload;
-(NSString *)cypherIdentifier;
-(ENGroupID *)groupID;
-(NSString *)encryptionType;
-(void)setEncryptionType:(NSString *)arg1 ;
-(NSString *)deviceID;
-(void)setPayload:(NSDictionary *)arg1 ;
@end
| 42.404255 | 157 | 0.736578 |
ecc05a65f0b3eea04756ae596ac225a9fff47b68 | 307 | h | C | ansifeed-cpp/AnsiTextColored.h | johanfforsberg/pyimgui | da06fea9ef52a8d02501637a7430254cc533694f | [
"BSD-3-Clause"
] | 564 | 2016-11-26T07:39:48.000Z | 2021-07-18T15:20:49.000Z | ansifeed-cpp/AnsiTextColored.h | johanfforsberg/pyimgui | da06fea9ef52a8d02501637a7430254cc533694f | [
"BSD-3-Clause"
] | 232 | 2016-11-03T20:26:18.000Z | 2021-07-15T05:10:51.000Z | ansifeed-cpp/AnsiTextColored.h | johanfforsberg/pyimgui | da06fea9ef52a8d02501637a7430254cc533694f | [
"BSD-3-Clause"
] | 123 | 2016-12-07T17:56:16.000Z | 2021-07-12T12:42:27.000Z | // Based on https://gist.github.com/ddovod/be210315f285becc6b0e455b775286e1
// #include <vector>
// #include <string>
// #define IMGUI_DEFINE_MATH_OPERATORS
#include <imgui.h>
namespace ImGui
{
void TextAnsi(const char* fmt, ...);
void TextAnsiColored(const ImVec4& col, const char* fmt, ...);
}
| 23.615385 | 75 | 0.710098 |
ecc0ec560b9a70cd3207716b358e31c5e32ca7cf | 1,290 | h | C | include/sys/syslog.h | davitkalantaryan/wlac-binaries | cd721e94c739486cf933a2f6dd77556889560d24 | [
"MIT"
] | null | null | null | include/sys/syslog.h | davitkalantaryan/wlac-binaries | cd721e94c739486cf933a2f6dd77556889560d24 | [
"MIT"
] | 4 | 2021-10-05T05:28:22.000Z | 2021-12-28T22:48:21.000Z | include/sys/syslog.h | davitkalantaryan/wlac-binaries | cd721e94c739486cf933a2f6dd77556889560d24 | [
"MIT"
] | null | null | null | //
// (c) 2015-2018 WLAC. For details refers to LICENSE.md
//
/*
* File: <sys/syslog.h> For WINDOWS MFC
*
* Created on: Aug 14, 2016
* Author : Davit Kalantaryan (Email: davit.kalantaryan@desy.de)
*
*
*/
#ifndef __win_sys_syslog_h___
#define __win_sys_syslog_h___
/*
* priorities/facilities are encoded into a single 32-bit quantity, where the
* bottom 3 bits are the priority (0-7) and the top 28 bits are the facility
* (0-big number). Both the priorities and the facilities map roughly
* one-to-one to strings in the syslogd(8) source code. This mapping is
* included in this file.
*
* priorities (these are ordered)
*/
#define LOG_EMERG 0 /* system is unusable */
#define LOG_ALERT 1 /* action must be taken immediately */
#define LOG_CRIT 2 /* critical conditions */
#define LOG_ERR 3 /* error conditions */
#define LOG_WARNING 4 /* warning conditions */
#define LOG_NOTICE 5 /* normal but significant condition */
#define LOG_INFO 6 /* informational */
#define LOG_DEBUG 7 /* debug-level messages */
#include <first_includes/common_include_for_headers.h>
#include <sdef_gem_windows.h>
__BEGIN_C_DECLS
void syslog(int __pri, __const char *__fmt, ...);
__END_C_DECLS
#endif // #ifndef __win_sys_syslog_h___
| 27.446809 | 78 | 0.699225 |
ecc16e2d22769c4035fc07fd5ebfae73a19c5969 | 151 | h | C | project741/src/component246/headers/component246/lib21.h | gradle/perf-native-large | af00fd258fbe9c7d274f386e46847fe12062cc71 | [
"Apache-2.0"
] | 2 | 2016-11-23T17:25:24.000Z | 2016-11-23T17:25:27.000Z | project741/src/component246/headers/component246/lib21.h | gradle/perf-native-large | af00fd258fbe9c7d274f386e46847fe12062cc71 | [
"Apache-2.0"
] | 15 | 2016-09-15T03:19:32.000Z | 2016-09-17T09:15:32.000Z | project741/src/component246/headers/component246/lib21.h | gradle/perf-native-large | af00fd258fbe9c7d274f386e46847fe12062cc71 | [
"Apache-2.0"
] | 2 | 2019-11-09T16:26:55.000Z | 2021-01-13T10:51:09.000Z | #ifndef PROJECT_HEADER_component246_21_H
#define PROJECT_HEADER_component246_21_H
int component246_21();
#endif // PROJECT_HEADER_component246_21_H | 18.875 | 42 | 0.86755 |
ecc2f89270131b0f047e19dd43c5664a1e2dfb60 | 9,084 | h | C | src/Core/Datatypes/Legacy/Field/VMeshShared.h | mhansen1/SCIRun | 9719c570a6d6911a9eb8df584bd2c4ad8b8cd2ba | [
"Unlicense"
] | null | null | null | src/Core/Datatypes/Legacy/Field/VMeshShared.h | mhansen1/SCIRun | 9719c570a6d6911a9eb8df584bd2c4ad8b8cd2ba | [
"Unlicense"
] | null | null | null | src/Core/Datatypes/Legacy/Field/VMeshShared.h | mhansen1/SCIRun | 9719c570a6d6911a9eb8df584bd2c4ad8b8cd2ba | [
"Unlicense"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#ifndef CORE_DATATYPES_VMESHSHARED_H
#define CORE_DATATYPES_VMESHSHARED_H
#include <Core/Datatypes/Legacy/Field/VMesh.h>
#include <Core/Datatypes/Legacy/Field/share.h>
namespace SCIRun {
template <class MESH>
class SCISHARE VMeshShared : public VMesh {
public:
// Constructor: this class maintain all the virtual function calls to the
// basis class, so we do not need to replicate this for each mesh class
// This is only used in the mesh classes
VMeshShared(MESH* mesh) :
mesh_(mesh)
{
basis_ = &(mesh_->get_basis());
/// Collect general information on mesh type. These are constants and should
/// be accessible down the road by inline function calls. The latter
/// construction was chosen to improve performance and reduce the need for
/// for virtual function calls
/// cache the mesh basis order (1=liner, 2=quadratic, 3=cubic)
basis_order_ = mesh_->basis_order();
/// cache the mesh dimension (0=point,1=curve, 2=surface, or 3=volume)
dimension_ = mesh_->dimensionality();
/// cache whether we can edit the mesh by adding nodes and elements
is_editable_ = mesh_->is_editable();
/// cache whether we haev surface normals
has_normals_ = mesh_->has_normals();
/// cache whether we have node points defined or whether we derive them
/// implicitly.
is_regular_ = (mesh_->topology_geometry()&Mesh::REGULAR) != 0;
/// cache whether we have connectivity defined or whether we assume the data
/// to be structured enough so we can derive it implicitly
is_structured_ = (mesh_->topology_geometry()&Mesh::STRUCTURED) != 0;
/// Store topology information on the mesh:
/// This section converts the relevant data out of the underlying older data
/// structures.
/// Number of nodes in one element
num_nodes_per_elem_ = basis_->number_of_mesh_vertices();
/// Number of edge nodes for quadratic interpolation model
num_enodes_per_elem_ = basis_->number_of_vertices() - basis_->number_of_mesh_vertices();
/// Number of edges in one element
num_edges_per_elem_ = basis_->number_of_edges();
/// Number of faces in one element
num_faces_per_elem_ = basis_->faces_of_cell();
/// Number of nodes per face (volume and surface meshes only)
num_nodes_per_face_ = basis_->vertices_of_face();
/// Number of edges per face (volume and surface meshes only)
num_edges_per_face_ = 0;
if (basis_->vertices_of_face() > 0) num_edges_per_face_ = basis_->vertices_of_face()-1;
/// Number of gradients per node for cubic interpolation model
num_gradients_per_node_ = basis_->num_hderivs();
element_size_ = basis_->domain_size();
#ifdef SCIRUN4_CODE_TO_BE_ENABLED_LATER
generation_ = mesh_->generation;
#endif
unit_vertices_.resize(num_nodes_per_elem_);
for (size_t k=0; k < num_nodes_per_elem_; k++)
{
VMesh::coords_type c/*(dimension_)*/;
for (int p=0; p<dimension_; p++) c[p] = basis_->unit_vertices[k][p];
unit_vertices_[k] = c;
}
unit_edges_.resize(num_edges_per_elem_);
for (size_t k=0; k < num_edges_per_elem_; k++)
{
unit_edges_[k].resize(2);
for (size_t p=0; p<2; p++)
{
unit_edges_[k][p] = 0;
unit_edges_[k][p] = basis_->unit_edges[k][p];
}
}
unit_center_.resize(dimension_);
for (int k=0; k < dimension_; k++)
{
unit_center_[k] = basis_->unit_center[k];
}
#ifdef SCIRUN4_CODE_TO_BE_ENABLED_LATER
pm_ = static_cast<PropertyManager*>(mesh_);
#endif
}
virtual ~VMeshShared() {}
virtual bool synchronize(unsigned int sync);
virtual bool unsynchronize(unsigned int sync);
virtual bool clear_synchronization();
virtual Core::Geometry::BBox get_bounding_box() const;
virtual void transform(const Core::Geometry::Transform &t);
virtual double get_epsilon() const;
virtual void get_weights(const VMesh::coords_type& coords,
std::vector<double>& weights,
int basis_order) const;
virtual void get_derivate_weights(const VMesh::coords_type& coords,
std::vector<double>& weights,
int basis_order) const;
virtual void get_gaussian_scheme(std::vector<VMesh::coords_type>& coords,
std::vector<double>& weights, int order) const;
virtual void get_regular_scheme(std::vector<VMesh::coords_type>& coords,
std::vector<double>& weights, int order) const;
virtual void get_canonical_transform(Core::Geometry::Transform &t);
protected:
MESH* mesh_;
typename MESH::basis_type* basis_;
};
template<class MESH>
void
VMeshShared<MESH>::get_canonical_transform(Core::Geometry::Transform &t)
{
mesh_->get_canonical_transform(t);
}
template<class MESH>
void
VMeshShared<MESH>::get_weights(const VMesh::coords_type& coords,
std::vector<double>& weights,
int basis_order) const
{
switch(basis_order)
{
case 0:
weights.resize(1); weights[0] = 1.0;
return;
case 1:
weights.resize(basis_->num_linear_weights());
basis_->get_linear_weights(coords,&(weights[0]));
return;
case 2:
weights.resize(basis_->num_quadratic_weights());
basis_->get_quadratic_weights(coords,&(weights[0]));
return;
case 3:
weights.resize(basis_->num_cubic_weights());
basis_->get_cubic_weights(coords,&(weights[0]));
return;
}
ASSERTFAIL("Weights of unknown order requested");
}
template<class MESH>
void
VMeshShared<MESH>::get_derivate_weights(const VMesh::coords_type& coords,
std::vector<double>& weights,
int basis_order) const
{
switch(basis_order)
{
case 0:
weights.resize(1); weights[0] = 1.0;
return;
case 1:
weights.resize(basis_->num_linear_derivate_weights());
basis_->get_linear_derivate_weights(coords,&(weights[0]));
return;
case 2:
weights.resize(basis_->num_quadratic_derivate_weights());
basis_->get_quadratic_derivate_weights(coords,&(weights[0]));
return;
case 3:
weights.resize(basis_->num_cubic_derivate_weights());
basis_->get_cubic_derivate_weights(coords,&(weights[0]));
return;
}
ASSERTFAIL("Derivate weights of unknown order requested");
}
template <class MESH>
Core::Geometry::BBox
VMeshShared<MESH>::get_bounding_box() const
{
return(mesh_->get_bounding_box());
}
template <class MESH>
double
VMeshShared<MESH>::get_epsilon() const
{
return(mesh_->get_epsilon());
}
template<class MESH>
void
VMeshShared<MESH>::transform(const Core::Geometry::Transform &t)
{
mesh_->transform(t);
}
template<class MESH>
bool
VMeshShared<MESH>::synchronize(unsigned int sync)
{
return(mesh_->synchronize(sync));
}
template<class MESH>
bool
VMeshShared<MESH>::unsynchronize(unsigned int sync)
{
return(mesh_->unsynchronize(sync));
}
template<class MESH>
bool
VMeshShared<MESH>::clear_synchronization()
{
return(mesh_->clear_synchronization());
}
template<class MESH>
void
VMeshShared<MESH>::get_gaussian_scheme(std::vector<coords_type>& coords,
std::vector<double>& weights, int order) const
{
basis_->get_gaussian_scheme(coords,weights,order);
}
template<class MESH>
void
VMeshShared<MESH>::get_regular_scheme(std::vector<coords_type>& coords,
std::vector<double>& weights, int order) const
{
basis_->get_regular_scheme(coords,weights,order);
}
}
#endif
| 31.216495 | 93 | 0.672061 |
ecc362fbc768a23a3738cf38163477a153df3d01 | 9,894 | h | C | Wobbler/Generated_Code/Cpu.h | ThisIsNotRocketScience/Eurorack-KDS | 1e8d76e1313cc910b9dcdf8811bec15de17489eb | [
"MIT"
] | 16 | 2016-01-02T01:20:31.000Z | 2021-10-05T17:45:36.000Z | Wobbler/Generated_Code/Cpu.h | ThisIsNotRocketScience/Eurorack-KDS | 1e8d76e1313cc910b9dcdf8811bec15de17489eb | [
"MIT"
] | 1 | 2017-04-21T14:25:31.000Z | 2017-04-21T14:25:31.000Z | Wobbler/Generated_Code/Cpu.h | ThisIsNotRocketScience/Eurorack-KDS | 1e8d76e1313cc910b9dcdf8811bec15de17489eb | [
"MIT"
] | 9 | 2016-01-02T01:20:44.000Z | 2022-02-02T03:51:33.000Z | /* ###################################################################
** This component module is generated by Processor Expert. Do not modify it.
** Filename : Cpu.h
** Project : Wobbler
** Processor : MKL02Z32VFM4
** Component : MKL02Z32FM4
** Version : Component 01.009, Driver 01.04, CPU db: 3.00.000
** Repository : Kinetis
** Datasheet : KL02RM, Rev.2, Dec 2012
** Compiler : GNU C Compiler
** Date/Time : 2016-12-28, 04:07, # CodeGen: 4
** Abstract :
**
** Settings :
**
** Contents :
** No public methods
**
** (c) Freescale Semiconductor, Inc.
** 2004 All Rights Reserved
**
** Copyright : 1997 - 2015 Freescale Semiconductor, Inc.
** All Rights Reserved.
**
** Redistribution and use in source and binary forms, with or without modification,
** are permitted provided that the following conditions are met:
**
** o Redistributions of source code must retain the above copyright notice, this list
** of conditions and the following disclaimer.
**
** o 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.
**
** o Neither the name of Freescale Semiconductor, Inc. nor the names of its
** contributors may be used to endorse or promote products derived from this
** software without specific prior written permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
** http: www.freescale.com
** mail: support@freescale.com
** ###################################################################*/
/*!
** @file Cpu.h
** @version 01.04
** @brief
**
*/
/*!
** @addtogroup Cpu_module Cpu module documentation
** @{
*/
#ifndef __Cpu_H
#define __Cpu_H
/* MODULE Cpu. */
/*Include shared modules, which are used for whole project*/
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Active configuration define symbol */
#define PEcfg_FLASH 1U
/* Methods configuration constants - generated for all enabled component's methods */
/* Events configuration constants - generated for all enabled component's events */
#define Cpu_OnNMIINT_EVENT_ENABLED
#define CPU_BUS_CLK_HZ 23986176U /* Initial value of the bus clock frequency in Hz */
#define CPU_CORE_CLK_HZ 47972352U /* Initial value of the core/system clock frequency in Hz. */
#define CPU_CLOCK_CONFIG_NUMBER 0x01U /* Specifies number of defined clock configurations. */
#define CPU_BUS_CLK_HZ_CLOCK_CONFIG0 23986176U /* Value of the bus clock frequency in the clock configuration 0 in Hz. */
#define CPU_CORE_CLK_HZ_CLOCK_CONFIG0 47972352U /* Value of the core/system clock frequency in the clock configuration 0 in Hz. */
#define CPU_INT_SLOW_CLK_HZ 32768U /* Value of the slow internal oscillator clock frequency in Hz */
#define CPU_INT_FAST_CLK_HZ 4000000U /* Value of the fast internal oscillator clock frequency in Hz */
#define CPU_FAMILY_Kinetis /* Specification of the core type of the selected cpu */
#define CPU_DERIVATIVE_MKL02Z32FM4 /* Name of the selected cpu derivative */
#define CPU_PARTNUM_MKL02Z32VFM4 /* Part number of the selected cpu */
#define CPU_LITTLE_ENDIAN /* The selected cpu uses little endian */
/* CPU frequencies in clock configuration 0 */
#define CPU_CLOCK_CONFIG_0 0x00U /* Clock configuration 0 identifier */
#define CPU_CORE_CLK_HZ_CONFIG_0 47972352UL /* Core clock frequency in clock configuration 0 */
#define CPU_BUS_CLK_HZ_CONFIG_0 23986176UL /* Bus clock frequency in clock configuration 0 */
#define CPU_FLEXBUS_CLK_HZ_CONFIG_0 0UL /* Flexbus clock frequency in clock configuration 0 */
#define CPU_FLASH_CLK_HZ_CONFIG_0 0UL /* FLASH clock frequency in clock configuration 0 */
#define CPU_USB_CLK_HZ_CONFIG_0 0UL /* USB clock frequency in clock configuration 0 */
#define CPU_PLL_FLL_CLK_HZ_CONFIG_0 0UL /* PLL/FLL clock frequency in clock configuration 0 */
#define CPU_MCGIR_CLK_HZ_CONFIG_0 32768UL /* MCG internal reference clock frequency in clock configuration 0 */
#define CPU_OSCER_CLK_HZ_CONFIG_0 0UL /* System OSC external reference clock frequency in clock configuration 0 */
#define CPU_ERCLK32K_CLK_HZ_CONFIG_0 0UL /* External reference clock 32k frequency in clock configuration 0 */
#define CPU_MCGFF_CLK_HZ_CONFIG_0 32768UL /* MCG fixed frequency clock */
typedef struct {
uint32_t cpu_core_clk_hz; /* Core clock frequency in clock configuration */
uint32_t cpu_bus_clk_hz; /* Bus clock frequency in clock configuration */
uint32_t cpu_flexbus_clk_hz; /* Flexbus clock frequency in clock configuration */
uint32_t cpu_flash_clk_hz; /* FLASH clock frequency in clock configuration */
uint32_t cpu_usb_clk_hz; /* USB clock frequency in clock configuration */
uint32_t cpu_pll_fll_clk_hz; /* PLL/FLL clock frequency in clock configuration */
uint32_t cpu_mcgir_clk_hz; /* MCG internal reference clock frequency in clock configuration */
uint32_t cpu_oscer_clk_hz; /* System OSC external reference clock frequency in clock configuration */
uint32_t cpu_erclk32k_clk_hz; /* External reference clock 32k frequency in clock configuration */
uint32_t cpu_mcgff_clk_hz; /* MCG fixed frequency clock */
} TCpuClockConfiguration;
/* The array of clock frequencies in configured clock configurations */
extern const TCpuClockConfiguration PE_CpuClockConfigurations[CPU_CLOCK_CONFIG_NUMBER];
/* Interrupt vector table type definition */
typedef void (*const tIsrFunc)(void);
typedef struct {
void * __ptr;
tIsrFunc __fun[0x2F];
} tVectorTable;
extern const tVectorTable __vect_table;
/* Global variables */
/*lint -esym(765,SR_reg) Disable MISRA rule (8.10) checking for symbols (SR_reg). The SR_reg is used in inline assembler. */
extern volatile uint8_t SR_reg; /* Current FAULTMASK register */
/*lint -esym(765,SR_lock) Disable MISRA rule (8.10) checking for symbols (SR_lock). The SR_reg is used in inline assembler. */
extern volatile uint8_t SR_lock;
/* {Default RTOS Adapter} ISR function prototype */
PE_ISR(Cpu_ivINT_PORTB);
/*
** ===================================================================
** Method : Cpu_Cpu_ivINT_PORTB (component MKL02Z32FM4)
**
** Description :
** This ISR services the ivINT_PORTB interrupt shared by several
** components.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
** ===================================================================
** Method : PE_low_level_init (component MKL02Z32FM4)
**
** Description :
** Initializes beans and provides common register initialization.
** The method is called automatically as a part of the
** application initialization code.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
void PE_low_level_init(void);
/* {Default RTOS Adapter} ISR function prototype */
PE_ISR(Cpu_INT_NMIInterrupt);
/*
** ===================================================================
** Method : Cpu_INT_NMIInterrupt (component MKL02Z32FM4)
**
** Description :
** This ISR services the Non Maskable Interrupt interrupt.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
PE_ISR(Cpu_Interrupt);
/*
** ===================================================================
** Method : Cpu_Cpu_Interrupt (component MKL02Z32FM4)
**
** Description :
** This ISR services an unused interrupt/exception vector.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
void __init_hardware(void);
/*
** ===================================================================
** Method : __init_hardware (component MKL02Z32FM4)
**
** Description :
** Initializes the whole system like timing, external bus, etc.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/* END Cpu. */
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif
/* __Cpu_H */
/*!
** @}
*/
/*
** ###################################################################
**
** This file was created by Processor Expert 10.5 [05.21]
** for the Freescale Kinetis series of microcontrollers.
**
** ###################################################################
*/
| 43.20524 | 132 | 0.629573 |
ecc39a86ee661ef2f90fa828930c2cb66464a143 | 52,870 | c | C | testsuite/EXP_2/test1888.c | ishiura-compiler/CF3 | 0718aa176d0303a4ea8a46bd6c794997cbb8fabb | [
"MIT"
] | 34 | 2017-07-04T14:16:12.000Z | 2021-04-22T21:04:43.000Z | testsuite/EXP_2/test1888.c | ishiura-compiler/CF3 | 0718aa176d0303a4ea8a46bd6c794997cbb8fabb | [
"MIT"
] | 1 | 2017-07-06T03:43:44.000Z | 2017-07-06T03:43:44.000Z | testsuite/EXP_2/test1888.c | ishiura-compiler/CF3 | 0718aa176d0303a4ea8a46bd6c794997cbb8fabb | [
"MIT"
] | 6 | 2017-07-04T16:30:42.000Z | 2019-10-16T05:37:29.000Z |
/*
CF3
Copyright (c) 2015 ishiura-lab.
Released under the MIT license.
https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md
*/
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include"test1.h"
int64_t x3 = -2153065888460800LL;
uint8_t x7 = 49U;
int8_t x11 = 2;
static int64_t x16 = INT64_MAX;
static volatile int64_t t3 = 29188010596391435LL;
static uint64_t x17 = 274LLU;
static uint32_t t4 = 56U;
int32_t x26 = INT32_MIN;
int64_t t6 = -1068638379LL;
uint32_t x34 = UINT32_MAX;
volatile uint64_t x39 = 966291LLU;
int16_t x40 = INT16_MIN;
int32_t x42 = 1241324;
uint32_t x43 = UINT32_MAX;
static int32_t t10 = -223073357;
int32_t x46 = -1;
int32_t x50 = INT32_MIN;
static uint32_t x52 = 51194U;
int16_t x53 = INT16_MIN;
int64_t x55 = -27522347859LL;
static volatile int32_t t13 = 387;
volatile int64_t x65 = -2046256789356940LL;
int32_t x72 = INT32_MIN;
int64_t x74 = INT64_MAX;
int64_t x75 = INT64_MIN;
int64_t x77 = -1LL;
int16_t x79 = 3001;
uint64_t x80 = 729882183548LLU;
volatile int16_t x85 = INT16_MIN;
static int8_t x90 = 10;
volatile int32_t x91 = INT32_MIN;
int16_t x98 = INT16_MIN;
static int8_t x103 = -5;
int16_t x105 = 58;
uint64_t x111 = 24LLU;
int16_t x117 = INT16_MIN;
int64_t x120 = INT64_MIN;
int32_t x121 = INT32_MIN;
int32_t x127 = 236851;
volatile uint64_t x128 = 569LLU;
uint8_t x131 = UINT8_MAX;
int32_t x132 = INT32_MAX;
volatile int32_t x134 = INT32_MAX;
int64_t x137 = -1LL;
uint32_t x142 = 749402U;
int16_t x145 = -1;
int8_t x146 = INT8_MAX;
uint8_t x147 = 2U;
uint32_t x149 = UINT32_MAX;
int8_t x158 = INT8_MIN;
uint64_t x159 = UINT64_MAX;
int16_t x160 = INT16_MIN;
static volatile uint64_t t40 = 7757820972519094LLU;
int16_t x165 = INT16_MIN;
int64_t x177 = INT64_MIN;
uint32_t x179 = UINT32_MAX;
volatile int16_t x188 = INT16_MIN;
volatile int32_t x194 = INT32_MAX;
volatile int32_t t49 = -238291;
int64_t x203 = -635614419LL;
static volatile int32_t t50 = -456;
uint8_t x207 = UINT8_MAX;
int32_t x209 = -1;
uint32_t x212 = 2099378U;
static uint64_t x223 = UINT64_MAX;
int32_t x224 = 11621496;
int32_t t58 = -105610167;
int16_t x244 = -1969;
int64_t x245 = -1LL;
int16_t x250 = -1;
int64_t x254 = -1LL;
int64_t x261 = 10645206226908LL;
uint16_t x264 = UINT16_MAX;
int32_t t65 = -2;
static int32_t t66 = -348080;
volatile uint64_t x271 = UINT64_MAX;
static int64_t x277 = -124LL;
int8_t x279 = INT8_MIN;
uint64_t t69 = 53709LLU;
volatile uint64_t x281 = 2300955141311435319LLU;
uint8_t x289 = 29U;
static volatile int32_t t72 = -11;
static int64_t x295 = INT64_MIN;
int64_t t73 = 390886LL;
uint8_t x300 = 0U;
uint16_t x304 = UINT16_MAX;
int16_t x312 = -1;
static volatile uint32_t t78 = 221633556U;
static int64_t t79 = -2049094181102392384LL;
static volatile int32_t x321 = INT32_MIN;
static volatile uint8_t x325 = 6U;
static int8_t x333 = 6;
volatile int32_t x336 = INT32_MIN;
uint32_t x340 = 919U;
volatile int32_t x341 = -1;
int16_t x354 = INT16_MAX;
static int64_t x356 = INT64_MAX;
int8_t x357 = INT8_MIN;
volatile int32_t x358 = -23;
int8_t x360 = -53;
int32_t x361 = 459904752;
uint8_t x362 = 1U;
int32_t x371 = -168875199;
int32_t x374 = -249;
uint8_t x377 = 54U;
volatile int32_t t94 = 4398551;
int16_t x381 = INT16_MIN;
volatile int32_t t95 = 119;
static int32_t t96 = 11692933;
int8_t x393 = INT8_MIN;
int8_t x394 = -6;
static volatile int64_t x395 = INT64_MIN;
volatile int64_t x396 = INT64_MIN;
uint64_t x400 = 438388138709345LLU;
uint64_t t99 = 40LLU;
static int32_t t100 = 73;
static volatile int16_t x405 = INT16_MIN;
int64_t x408 = -2496417971395158693LL;
volatile int32_t t103 = -1;
uint8_t x420 = UINT8_MAX;
uint16_t x424 = UINT16_MAX;
int64_t x431 = INT64_MAX;
volatile uint16_t x432 = 14U;
static volatile int32_t t107 = -964;
static int32_t x434 = INT32_MIN;
static int16_t x435 = INT16_MIN;
int32_t x437 = INT32_MAX;
uint64_t x439 = 3707886323539LLU;
static int32_t t110 = 7353306;
int8_t x445 = INT8_MAX;
static volatile uint64_t x446 = 17034LLU;
uint32_t x447 = 55029320U;
int64_t t111 = -595059573LL;
int32_t x451 = -13568;
int8_t x455 = INT8_MIN;
int8_t x456 = INT8_MIN;
int32_t t113 = 35848615;
volatile int32_t x458 = -1;
int32_t x462 = INT32_MIN;
int8_t x465 = INT8_MIN;
int16_t x467 = -900;
int16_t x470 = -1;
int16_t x492 = INT16_MIN;
volatile uint16_t x493 = UINT16_MAX;
static int8_t x501 = INT8_MIN;
static int16_t x507 = 198;
volatile uint64_t t127 = 23264LLU;
int8_t x517 = INT8_MIN;
uint32_t x522 = 299064U;
uint32_t x523 = 205U;
volatile uint64_t t130 = 5314579790LLU;
uint64_t x530 = UINT64_MAX;
int16_t x539 = -3;
volatile uint8_t x541 = 1U;
int64_t x546 = INT64_MAX;
int32_t t136 = 80;
static uint32_t x554 = 15U;
int32_t x558 = INT32_MIN;
volatile int32_t t139 = 916796404;
volatile uint64_t x561 = 143184820808311919LLU;
int64_t t140 = -78142567937233LL;
volatile int64_t x565 = INT64_MIN;
static volatile int32_t t141 = 15013955;
uint32_t x570 = 245U;
int32_t x581 = INT32_MIN;
uint16_t x585 = 0U;
volatile int32_t x592 = INT32_MAX;
int32_t x598 = INT32_MIN;
volatile int32_t x599 = INT32_MIN;
int32_t t149 = -19532;
static volatile int64_t t150 = -1023LL;
static uint64_t t151 = 2147841671858399347LLU;
static int8_t x613 = INT8_MAX;
uint32_t x618 = UINT32_MAX;
int16_t x620 = INT16_MAX;
int64_t x621 = INT64_MIN;
uint64_t x624 = 1666024508LLU;
static int64_t x625 = INT64_MIN;
volatile int8_t x627 = INT8_MAX;
int32_t x632 = -1;
volatile int32_t t158 = 5093;
uint8_t x638 = UINT8_MAX;
volatile uint64_t t160 = 557481622785227LLU;
uint8_t x649 = UINT8_MAX;
int8_t x651 = -13;
volatile int32_t x652 = -40063705;
int16_t x656 = -1;
int16_t x662 = 1;
int32_t x670 = -1982;
int16_t x672 = -1;
static int32_t t167 = -87283562;
int16_t x673 = 10560;
int8_t x677 = 41;
uint32_t x682 = 7U;
int32_t x696 = INT32_MIN;
volatile int32_t t173 = -118389;
int16_t x697 = INT16_MIN;
uint32_t x701 = 6046733U;
static volatile int64_t x703 = INT64_MIN;
volatile int32_t t175 = -775260;
int16_t x711 = INT16_MIN;
int32_t t178 = 1068882120;
int64_t x718 = -1LL;
uint16_t x719 = 1887U;
static int32_t t179 = 45539;
int8_t x722 = INT8_MIN;
int8_t x727 = -1;
volatile int8_t x728 = INT8_MAX;
uint8_t x730 = 26U;
int32_t x733 = -1;
int16_t x741 = INT16_MIN;
uint16_t x751 = UINT16_MAX;
uint64_t x752 = 114692LLU;
int64_t x754 = INT64_MAX;
static uint16_t x760 = 83U;
volatile int32_t t190 = -362830;
int8_t x765 = -1;
int32_t x775 = INT32_MIN;
uint64_t x776 = 115737444370LLU;
int64_t x777 = -1LL;
static uint32_t x788 = 451U;
volatile uint32_t t196 = 66U;
int32_t t197 = -253;
int32_t x795 = 49523813;
uint64_t t199 = 493869LLU;
void f0(void) {
volatile int8_t x1 = -8;
static volatile int16_t x2 = INT16_MIN;
volatile uint32_t x4 = 514079220U;
uint32_t t0 = 7834080U;
t0 = ((x1>(x2<=x3))&x4);
if (t0 != 0U) { NG(); } else { ; }
}
void f1(void) {
int8_t x5 = -18;
uint16_t x6 = 1704U;
int8_t x8 = INT8_MIN;
int32_t t1 = -59303;
t1 = ((x5>(x6<=x7))&x8);
if (t1 != 0) { NG(); } else { ; }
}
void f2(void) {
uint8_t x9 = 3U;
static int32_t x10 = INT32_MAX;
volatile int32_t x12 = INT32_MAX;
int32_t t2 = -9636503;
t2 = ((x9>(x10<=x11))&x12);
if (t2 != 1) { NG(); } else { ; }
}
void f3(void) {
volatile int16_t x13 = INT16_MIN;
static int16_t x14 = 10761;
volatile uint16_t x15 = 19U;
t3 = ((x13>(x14<=x15))&x16);
if (t3 != 0LL) { NG(); } else { ; }
}
void f4(void) {
static volatile int8_t x18 = INT8_MIN;
volatile int32_t x19 = -1742394;
uint32_t x20 = 5436368U;
t4 = ((x17>(x18<=x19))&x20);
if (t4 != 0U) { NG(); } else { ; }
}
void f5(void) {
int64_t x21 = -862699LL;
volatile uint64_t x22 = 510272112LLU;
uint64_t x23 = 134431414698LLU;
uint8_t x24 = 10U;
volatile int32_t t5 = 115;
t5 = ((x21>(x22<=x23))&x24);
if (t5 != 0) { NG(); } else { ; }
}
void f6(void) {
uint32_t x25 = UINT32_MAX;
volatile int16_t x27 = INT16_MIN;
static int64_t x28 = 377643635968837LL;
t6 = ((x25>(x26<=x27))&x28);
if (t6 != 1LL) { NG(); } else { ; }
}
void f7(void) {
static int16_t x29 = 9401;
static volatile uint64_t x30 = 39093234475246LLU;
uint8_t x31 = 22U;
int8_t x32 = 0;
int32_t t7 = -225118413;
t7 = ((x29>(x30<=x31))&x32);
if (t7 != 0) { NG(); } else { ; }
}
void f8(void) {
int32_t x33 = INT32_MIN;
uint16_t x35 = UINT16_MAX;
volatile uint32_t x36 = 65897490U;
uint32_t t8 = 11648925U;
t8 = ((x33>(x34<=x35))&x36);
if (t8 != 0U) { NG(); } else { ; }
}
void f9(void) {
uint8_t x37 = UINT8_MAX;
int8_t x38 = -3;
volatile int32_t t9 = -419846758;
t9 = ((x37>(x38<=x39))&x40);
if (t9 != 0) { NG(); } else { ; }
}
void f10(void) {
static int32_t x41 = INT32_MIN;
static int32_t x44 = INT32_MAX;
t10 = ((x41>(x42<=x43))&x44);
if (t10 != 0) { NG(); } else { ; }
}
void f11(void) {
int32_t x45 = INT32_MIN;
static uint64_t x47 = 1665115086939600936LLU;
int32_t x48 = 0;
volatile int32_t t11 = -34716233;
t11 = ((x45>(x46<=x47))&x48);
if (t11 != 0) { NG(); } else { ; }
}
void f12(void) {
int64_t x49 = -49786748LL;
volatile int16_t x51 = 1;
uint32_t t12 = 85006U;
t12 = ((x49>(x50<=x51))&x52);
if (t12 != 0U) { NG(); } else { ; }
}
void f13(void) {
int32_t x54 = 24327;
volatile int16_t x56 = INT16_MAX;
t13 = ((x53>(x54<=x55))&x56);
if (t13 != 0) { NG(); } else { ; }
}
void f14(void) {
static uint64_t x57 = 75112383LLU;
static volatile int16_t x58 = INT16_MAX;
uint32_t x59 = 1672309U;
int32_t x60 = -8801;
volatile int32_t t14 = -26;
t14 = ((x57>(x58<=x59))&x60);
if (t14 != 1) { NG(); } else { ; }
}
void f15(void) {
uint8_t x61 = UINT8_MAX;
int8_t x62 = -1;
int64_t x63 = 2072052LL;
static int32_t x64 = INT32_MIN;
volatile int32_t t15 = -28729549;
t15 = ((x61>(x62<=x63))&x64);
if (t15 != 0) { NG(); } else { ; }
}
void f16(void) {
static volatile uint8_t x66 = 119U;
uint64_t x67 = UINT64_MAX;
uint64_t x68 = 342416792LLU;
uint64_t t16 = 40LLU;
t16 = ((x65>(x66<=x67))&x68);
if (t16 != 0LLU) { NG(); } else { ; }
}
void f17(void) {
volatile int64_t x69 = INT64_MIN;
uint32_t x70 = 23U;
int8_t x71 = 23;
static volatile int32_t t17 = 1;
t17 = ((x69>(x70<=x71))&x72);
if (t17 != 0) { NG(); } else { ; }
}
void f18(void) {
int32_t x73 = INT32_MIN;
static int16_t x76 = INT16_MIN;
int32_t t18 = -302034551;
t18 = ((x73>(x74<=x75))&x76);
if (t18 != 0) { NG(); } else { ; }
}
void f19(void) {
static int8_t x78 = -1;
uint64_t t19 = 713336681589219LLU;
t19 = ((x77>(x78<=x79))&x80);
if (t19 != 0LLU) { NG(); } else { ; }
}
void f20(void) {
int8_t x81 = -22;
volatile int64_t x82 = INT64_MAX;
volatile int8_t x83 = INT8_MIN;
int64_t x84 = INT64_MIN;
volatile int64_t t20 = -1106759LL;
t20 = ((x81>(x82<=x83))&x84);
if (t20 != 0LL) { NG(); } else { ; }
}
void f21(void) {
int16_t x86 = 0;
int16_t x87 = INT16_MIN;
uint8_t x88 = 9U;
int32_t t21 = 1;
t21 = ((x85>(x86<=x87))&x88);
if (t21 != 0) { NG(); } else { ; }
}
void f22(void) {
static int8_t x89 = -1;
static volatile int16_t x92 = 284;
volatile int32_t t22 = -1;
t22 = ((x89>(x90<=x91))&x92);
if (t22 != 0) { NG(); } else { ; }
}
void f23(void) {
int64_t x93 = INT64_MIN;
static volatile uint32_t x94 = 97680U;
int8_t x95 = -4;
int16_t x96 = INT16_MIN;
volatile int32_t t23 = -179453044;
t23 = ((x93>(x94<=x95))&x96);
if (t23 != 0) { NG(); } else { ; }
}
void f24(void) {
uint64_t x97 = 3LLU;
volatile int16_t x99 = -1;
volatile int32_t x100 = -259769993;
volatile int32_t t24 = -177224029;
t24 = ((x97>(x98<=x99))&x100);
if (t24 != 1) { NG(); } else { ; }
}
void f25(void) {
volatile int8_t x101 = -59;
int64_t x102 = -1LL;
volatile int8_t x104 = INT8_MIN;
int32_t t25 = 401;
t25 = ((x101>(x102<=x103))&x104);
if (t25 != 0) { NG(); } else { ; }
}
void f26(void) {
static volatile int64_t x106 = -1LL;
static volatile uint8_t x107 = 4U;
uint16_t x108 = UINT16_MAX;
int32_t t26 = -130265;
t26 = ((x105>(x106<=x107))&x108);
if (t26 != 1) { NG(); } else { ; }
}
void f27(void) {
int8_t x109 = INT8_MIN;
int64_t x110 = INT64_MAX;
volatile int32_t x112 = INT32_MIN;
volatile int32_t t27 = -33;
t27 = ((x109>(x110<=x111))&x112);
if (t27 != 0) { NG(); } else { ; }
}
void f28(void) {
static int16_t x113 = INT16_MAX;
uint32_t x114 = 628759U;
volatile uint16_t x115 = 39U;
static int32_t x116 = INT32_MAX;
static volatile int32_t t28 = 79511577;
t28 = ((x113>(x114<=x115))&x116);
if (t28 != 1) { NG(); } else { ; }
}
void f29(void) {
int32_t x118 = INT32_MIN;
uint64_t x119 = 86696742686432319LLU;
volatile int64_t t29 = 443549489LL;
t29 = ((x117>(x118<=x119))&x120);
if (t29 != 0LL) { NG(); } else { ; }
}
void f30(void) {
int16_t x122 = INT16_MIN;
volatile uint64_t x123 = UINT64_MAX;
int64_t x124 = -180664421507585LL;
volatile int64_t t30 = -2926413722LL;
t30 = ((x121>(x122<=x123))&x124);
if (t30 != 0LL) { NG(); } else { ; }
}
void f31(void) {
int8_t x125 = -7;
int8_t x126 = INT8_MIN;
uint64_t t31 = 586221034542841299LLU;
t31 = ((x125>(x126<=x127))&x128);
if (t31 != 0LLU) { NG(); } else { ; }
}
void f32(void) {
volatile uint32_t x129 = 615U;
uint8_t x130 = 76U;
int32_t t32 = 78643;
t32 = ((x129>(x130<=x131))&x132);
if (t32 != 1) { NG(); } else { ; }
}
void f33(void) {
volatile uint32_t x133 = UINT32_MAX;
int16_t x135 = INT16_MAX;
static uint64_t x136 = 6624346884728448LLU;
volatile uint64_t t33 = 12027346443795LLU;
t33 = ((x133>(x134<=x135))&x136);
if (t33 != 0LLU) { NG(); } else { ; }
}
void f34(void) {
int64_t x138 = -1LL;
uint32_t x139 = UINT32_MAX;
volatile int8_t x140 = INT8_MIN;
int32_t t34 = -8021;
t34 = ((x137>(x138<=x139))&x140);
if (t34 != 0) { NG(); } else { ; }
}
void f35(void) {
static uint64_t x141 = 597397712LLU;
int8_t x143 = 1;
uint8_t x144 = UINT8_MAX;
static volatile int32_t t35 = 13;
t35 = ((x141>(x142<=x143))&x144);
if (t35 != 1) { NG(); } else { ; }
}
void f36(void) {
uint32_t x148 = 218517261U;
static volatile uint32_t t36 = 3U;
t36 = ((x145>(x146<=x147))&x148);
if (t36 != 0U) { NG(); } else { ; }
}
void f37(void) {
int16_t x150 = INT16_MIN;
volatile int8_t x151 = 19;
int16_t x152 = INT16_MIN;
int32_t t37 = -226;
t37 = ((x149>(x150<=x151))&x152);
if (t37 != 0) { NG(); } else { ; }
}
void f38(void) {
uint64_t x153 = 184009202570284LLU;
int64_t x154 = -1LL;
volatile int32_t x155 = -1;
uint64_t x156 = 8327LLU;
volatile uint64_t t38 = 548648722357LLU;
t38 = ((x153>(x154<=x155))&x156);
if (t38 != 1LLU) { NG(); } else { ; }
}
void f39(void) {
int8_t x157 = INT8_MIN;
volatile int32_t t39 = -72;
t39 = ((x157>(x158<=x159))&x160);
if (t39 != 0) { NG(); } else { ; }
}
void f40(void) {
int64_t x161 = -111411589435270LL;
volatile uint32_t x162 = 16254180U;
int32_t x163 = INT32_MIN;
uint64_t x164 = 447717465420291063LLU;
t40 = ((x161>(x162<=x163))&x164);
if (t40 != 0LLU) { NG(); } else { ; }
}
void f41(void) {
uint8_t x166 = UINT8_MAX;
volatile int8_t x167 = INT8_MIN;
static volatile uint64_t x168 = 56868LLU;
uint64_t t41 = 222612718453LLU;
t41 = ((x165>(x166<=x167))&x168);
if (t41 != 0LLU) { NG(); } else { ; }
}
void f42(void) {
int32_t x169 = INT32_MAX;
volatile int64_t x170 = 52445526434LL;
volatile int64_t x171 = -1LL;
volatile int16_t x172 = INT16_MIN;
int32_t t42 = -172;
t42 = ((x169>(x170<=x171))&x172);
if (t42 != 0) { NG(); } else { ; }
}
void f43(void) {
volatile int32_t x173 = 17904983;
volatile uint16_t x174 = 15U;
int64_t x175 = -8027LL;
uint32_t x176 = UINT32_MAX;
static uint32_t t43 = 45U;
t43 = ((x173>(x174<=x175))&x176);
if (t43 != 1U) { NG(); } else { ; }
}
void f44(void) {
volatile int32_t x178 = INT32_MAX;
uint16_t x180 = UINT16_MAX;
volatile int32_t t44 = -6838;
t44 = ((x177>(x178<=x179))&x180);
if (t44 != 0) { NG(); } else { ; }
}
void f45(void) {
static int64_t x181 = INT64_MIN;
volatile int8_t x182 = 2;
int64_t x183 = -1LL;
static int32_t x184 = INT32_MIN;
static volatile int32_t t45 = 48663;
t45 = ((x181>(x182<=x183))&x184);
if (t45 != 0) { NG(); } else { ; }
}
void f46(void) {
uint16_t x185 = UINT16_MAX;
uint16_t x186 = 1203U;
uint8_t x187 = UINT8_MAX;
static volatile int32_t t46 = -519328;
t46 = ((x185>(x186<=x187))&x188);
if (t46 != 0) { NG(); } else { ; }
}
void f47(void) {
static int16_t x189 = -1;
static int64_t x190 = 25215425456LL;
int16_t x191 = -62;
uint64_t x192 = 75LLU;
volatile uint64_t t47 = 501524799710472LLU;
t47 = ((x189>(x190<=x191))&x192);
if (t47 != 0LLU) { NG(); } else { ; }
}
void f48(void) {
int16_t x193 = -1;
uint32_t x195 = 55653U;
static volatile uint16_t x196 = 476U;
volatile int32_t t48 = 61722407;
t48 = ((x193>(x194<=x195))&x196);
if (t48 != 0) { NG(); } else { ; }
}
void f49(void) {
int64_t x197 = INT64_MAX;
int32_t x198 = INT32_MIN;
static volatile int8_t x199 = 0;
int8_t x200 = -1;
t49 = ((x197>(x198<=x199))&x200);
if (t49 != 1) { NG(); } else { ; }
}
void f50(void) {
static volatile uint32_t x201 = UINT32_MAX;
uint32_t x202 = 32511364U;
int32_t x204 = -1;
t50 = ((x201>(x202<=x203))&x204);
if (t50 != 1) { NG(); } else { ; }
}
void f51(void) {
volatile uint8_t x205 = 55U;
int8_t x206 = 4;
int64_t x208 = -1LL;
int64_t t51 = -650192646317LL;
t51 = ((x205>(x206<=x207))&x208);
if (t51 != 1LL) { NG(); } else { ; }
}
void f52(void) {
int32_t x210 = 25;
volatile int16_t x211 = 12611;
volatile uint32_t t52 = 204U;
t52 = ((x209>(x210<=x211))&x212);
if (t52 != 0U) { NG(); } else { ; }
}
void f53(void) {
static int64_t x213 = INT64_MAX;
static volatile int32_t x214 = INT32_MIN;
static int32_t x215 = -1;
int16_t x216 = -1;
int32_t t53 = -106428;
t53 = ((x213>(x214<=x215))&x216);
if (t53 != 1) { NG(); } else { ; }
}
void f54(void) {
volatile int8_t x217 = 35;
volatile int16_t x218 = 5817;
volatile int64_t x219 = -16643415LL;
int16_t x220 = 8114;
int32_t t54 = 13;
t54 = ((x217>(x218<=x219))&x220);
if (t54 != 0) { NG(); } else { ; }
}
void f55(void) {
int32_t x221 = 17;
int16_t x222 = 399;
static int32_t t55 = 373348995;
t55 = ((x221>(x222<=x223))&x224);
if (t55 != 0) { NG(); } else { ; }
}
void f56(void) {
int8_t x225 = INT8_MIN;
uint64_t x226 = 76085628419847716LLU;
int32_t x227 = INT32_MIN;
volatile int16_t x228 = -1;
static volatile int32_t t56 = -3;
t56 = ((x225>(x226<=x227))&x228);
if (t56 != 0) { NG(); } else { ; }
}
void f57(void) {
static int16_t x229 = -1;
int16_t x230 = INT16_MIN;
static int32_t x231 = -8491;
int32_t x232 = 11679477;
int32_t t57 = 77;
t57 = ((x229>(x230<=x231))&x232);
if (t57 != 0) { NG(); } else { ; }
}
void f58(void) {
int32_t x233 = -1;
int8_t x234 = INT8_MAX;
int16_t x235 = 14318;
uint16_t x236 = UINT16_MAX;
t58 = ((x233>(x234<=x235))&x236);
if (t58 != 0) { NG(); } else { ; }
}
void f59(void) {
uint32_t x237 = 87650U;
int8_t x238 = -5;
int32_t x239 = INT32_MIN;
static volatile int32_t x240 = -1;
static int32_t t59 = 167197;
t59 = ((x237>(x238<=x239))&x240);
if (t59 != 1) { NG(); } else { ; }
}
void f60(void) {
int8_t x241 = INT8_MIN;
static volatile int32_t x242 = INT32_MAX;
volatile int8_t x243 = INT8_MIN;
volatile int32_t t60 = -11712704;
t60 = ((x241>(x242<=x243))&x244);
if (t60 != 0) { NG(); } else { ; }
}
void f61(void) {
int64_t x246 = -1LL;
uint16_t x247 = 80U;
int64_t x248 = 675484LL;
int64_t t61 = 65145461998612525LL;
t61 = ((x245>(x246<=x247))&x248);
if (t61 != 0LL) { NG(); } else { ; }
}
void f62(void) {
static int8_t x249 = INT8_MIN;
static int32_t x251 = -1;
int64_t x252 = INT64_MAX;
volatile int64_t t62 = -34829084960581439LL;
t62 = ((x249>(x250<=x251))&x252);
if (t62 != 0LL) { NG(); } else { ; }
}
void f63(void) {
int8_t x253 = INT8_MIN;
volatile uint32_t x255 = 1030U;
volatile uint64_t x256 = 5806LLU;
uint64_t t63 = 26024661327987024LLU;
t63 = ((x253>(x254<=x255))&x256);
if (t63 != 0LLU) { NG(); } else { ; }
}
void f64(void) {
static volatile int64_t x257 = -2812718LL;
int8_t x258 = INT8_MIN;
static volatile int8_t x259 = -11;
int16_t x260 = INT16_MIN;
int32_t t64 = -1782;
t64 = ((x257>(x258<=x259))&x260);
if (t64 != 0) { NG(); } else { ; }
}
void f65(void) {
static int8_t x262 = 0;
uint16_t x263 = 5U;
t65 = ((x261>(x262<=x263))&x264);
if (t65 != 1) { NG(); } else { ; }
}
void f66(void) {
int16_t x265 = INT16_MAX;
int32_t x266 = INT32_MIN;
int32_t x267 = -52;
volatile uint16_t x268 = UINT16_MAX;
t66 = ((x265>(x266<=x267))&x268);
if (t66 != 1) { NG(); } else { ; }
}
void f67(void) {
int8_t x269 = INT8_MIN;
int64_t x270 = INT64_MIN;
static int64_t x272 = INT64_MIN;
volatile int64_t t67 = 125LL;
t67 = ((x269>(x270<=x271))&x272);
if (t67 != 0LL) { NG(); } else { ; }
}
void f68(void) {
volatile int32_t x273 = INT32_MIN;
uint16_t x274 = 157U;
uint16_t x275 = UINT16_MAX;
volatile uint16_t x276 = 2183U;
static volatile int32_t t68 = 1;
t68 = ((x273>(x274<=x275))&x276);
if (t68 != 0) { NG(); } else { ; }
}
void f69(void) {
int64_t x278 = INT64_MAX;
uint64_t x280 = 589965753282260910LLU;
t69 = ((x277>(x278<=x279))&x280);
if (t69 != 0LLU) { NG(); } else { ; }
}
void f70(void) {
uint32_t x282 = UINT32_MAX;
int16_t x283 = INT16_MIN;
volatile int32_t x284 = INT32_MIN;
volatile int32_t t70 = -387238053;
t70 = ((x281>(x282<=x283))&x284);
if (t70 != 0) { NG(); } else { ; }
}
void f71(void) {
int16_t x285 = INT16_MIN;
volatile int16_t x286 = INT16_MAX;
volatile int8_t x287 = INT8_MIN;
volatile int32_t x288 = 614929785;
int32_t t71 = 1;
t71 = ((x285>(x286<=x287))&x288);
if (t71 != 0) { NG(); } else { ; }
}
void f72(void) {
int8_t x290 = INT8_MAX;
volatile int64_t x291 = -203096529443LL;
int16_t x292 = INT16_MAX;
t72 = ((x289>(x290<=x291))&x292);
if (t72 != 1) { NG(); } else { ; }
}
void f73(void) {
uint64_t x293 = 257379768025LLU;
uint16_t x294 = 4U;
int64_t x296 = 11168LL;
t73 = ((x293>(x294<=x295))&x296);
if (t73 != 0LL) { NG(); } else { ; }
}
void f74(void) {
volatile uint64_t x297 = UINT64_MAX;
uint16_t x298 = 48U;
volatile int8_t x299 = INT8_MIN;
int32_t t74 = -3611;
t74 = ((x297>(x298<=x299))&x300);
if (t74 != 0) { NG(); } else { ; }
}
void f75(void) {
int16_t x301 = INT16_MIN;
int64_t x302 = INT64_MAX;
uint32_t x303 = UINT32_MAX;
int32_t t75 = 347844;
t75 = ((x301>(x302<=x303))&x304);
if (t75 != 0) { NG(); } else { ; }
}
void f76(void) {
static int64_t x305 = INT64_MAX;
int8_t x306 = 0;
volatile int8_t x307 = INT8_MIN;
int8_t x308 = 2;
int32_t t76 = 10996;
t76 = ((x305>(x306<=x307))&x308);
if (t76 != 0) { NG(); } else { ; }
}
void f77(void) {
volatile uint64_t x309 = UINT64_MAX;
volatile int16_t x310 = 3;
uint8_t x311 = 0U;
int32_t t77 = -362;
t77 = ((x309>(x310<=x311))&x312);
if (t77 != 1) { NG(); } else { ; }
}
void f78(void) {
int64_t x313 = INT64_MIN;
volatile uint8_t x314 = UINT8_MAX;
static uint16_t x315 = UINT16_MAX;
volatile uint32_t x316 = 14945820U;
t78 = ((x313>(x314<=x315))&x316);
if (t78 != 0U) { NG(); } else { ; }
}
void f79(void) {
int16_t x317 = INT16_MIN;
int8_t x318 = -1;
int64_t x319 = INT64_MAX;
int64_t x320 = 15115703168LL;
t79 = ((x317>(x318<=x319))&x320);
if (t79 != 0LL) { NG(); } else { ; }
}
void f80(void) {
volatile uint8_t x322 = UINT8_MAX;
uint32_t x323 = 5799312U;
static int32_t x324 = 26;
volatile int32_t t80 = 11;
t80 = ((x321>(x322<=x323))&x324);
if (t80 != 0) { NG(); } else { ; }
}
void f81(void) {
volatile int64_t x326 = INT64_MAX;
int64_t x327 = INT64_MIN;
static uint8_t x328 = 26U;
volatile int32_t t81 = -5;
t81 = ((x325>(x326<=x327))&x328);
if (t81 != 0) { NG(); } else { ; }
}
void f82(void) {
uint8_t x329 = UINT8_MAX;
volatile int8_t x330 = 0;
static uint64_t x331 = 859394408392LLU;
static uint16_t x332 = 26362U;
volatile int32_t t82 = 27973;
t82 = ((x329>(x330<=x331))&x332);
if (t82 != 0) { NG(); } else { ; }
}
void f83(void) {
uint32_t x334 = UINT32_MAX;
static int32_t x335 = -1812859;
int32_t t83 = -6717375;
t83 = ((x333>(x334<=x335))&x336);
if (t83 != 0) { NG(); } else { ; }
}
void f84(void) {
volatile int16_t x337 = INT16_MIN;
int8_t x338 = INT8_MAX;
int16_t x339 = 0;
volatile uint32_t t84 = 0U;
t84 = ((x337>(x338<=x339))&x340);
if (t84 != 0U) { NG(); } else { ; }
}
void f85(void) {
volatile int64_t x342 = INT64_MIN;
uint8_t x343 = UINT8_MAX;
uint64_t x344 = 107733198199LLU;
static uint64_t t85 = 5452LLU;
t85 = ((x341>(x342<=x343))&x344);
if (t85 != 0LLU) { NG(); } else { ; }
}
void f86(void) {
volatile int16_t x345 = INT16_MIN;
uint8_t x346 = 3U;
int8_t x347 = -1;
volatile int8_t x348 = 48;
static volatile int32_t t86 = -64176359;
t86 = ((x345>(x346<=x347))&x348);
if (t86 != 0) { NG(); } else { ; }
}
void f87(void) {
volatile uint8_t x349 = 8U;
int8_t x350 = INT8_MAX;
volatile uint64_t x351 = 140895474674653357LLU;
int32_t x352 = INT32_MIN;
volatile int32_t t87 = 41783571;
t87 = ((x349>(x350<=x351))&x352);
if (t87 != 0) { NG(); } else { ; }
}
void f88(void) {
uint32_t x353 = 32U;
static int32_t x355 = -1;
volatile int64_t t88 = -4140689051430LL;
t88 = ((x353>(x354<=x355))&x356);
if (t88 != 1LL) { NG(); } else { ; }
}
void f89(void) {
int8_t x359 = 24;
int32_t t89 = 13;
t89 = ((x357>(x358<=x359))&x360);
if (t89 != 0) { NG(); } else { ; }
}
void f90(void) {
int64_t x363 = INT64_MAX;
int16_t x364 = INT16_MAX;
volatile int32_t t90 = -4;
t90 = ((x361>(x362<=x363))&x364);
if (t90 != 1) { NG(); } else { ; }
}
void f91(void) {
int64_t x365 = -147143838971LL;
static volatile int8_t x366 = -1;
volatile uint16_t x367 = UINT16_MAX;
int8_t x368 = 9;
static volatile int32_t t91 = 452761;
t91 = ((x365>(x366<=x367))&x368);
if (t91 != 0) { NG(); } else { ; }
}
void f92(void) {
uint8_t x369 = UINT8_MAX;
static uint8_t x370 = 0U;
int8_t x372 = INT8_MAX;
static int32_t t92 = -38625;
t92 = ((x369>(x370<=x371))&x372);
if (t92 != 1) { NG(); } else { ; }
}
void f93(void) {
uint32_t x373 = UINT32_MAX;
int32_t x375 = -1;
volatile uint64_t x376 = 24LLU;
static volatile uint64_t t93 = 482820954246197LLU;
t93 = ((x373>(x374<=x375))&x376);
if (t93 != 0LLU) { NG(); } else { ; }
}
void f94(void) {
int64_t x378 = -18493500469724931LL;
int64_t x379 = INT64_MIN;
static uint16_t x380 = UINT16_MAX;
t94 = ((x377>(x378<=x379))&x380);
if (t94 != 1) { NG(); } else { ; }
}
void f95(void) {
volatile int16_t x382 = -12;
static int64_t x383 = 48550745069LL;
volatile int8_t x384 = INT8_MIN;
t95 = ((x381>(x382<=x383))&x384);
if (t95 != 0) { NG(); } else { ; }
}
void f96(void) {
int8_t x385 = INT8_MIN;
int32_t x386 = -1;
int64_t x387 = 33621229949938934LL;
uint8_t x388 = 5U;
t96 = ((x385>(x386<=x387))&x388);
if (t96 != 0) { NG(); } else { ; }
}
void f97(void) {
static uint32_t x389 = 1572U;
static uint8_t x390 = UINT8_MAX;
int64_t x391 = INT64_MIN;
int64_t x392 = 1LL;
volatile int64_t t97 = -833LL;
t97 = ((x389>(x390<=x391))&x392);
if (t97 != 1LL) { NG(); } else { ; }
}
void f98(void) {
int64_t t98 = 9LL;
t98 = ((x393>(x394<=x395))&x396);
if (t98 != 0LL) { NG(); } else { ; }
}
void f99(void) {
static uint16_t x397 = 1953U;
volatile int64_t x398 = -1LL;
uint32_t x399 = 675344U;
t99 = ((x397>(x398<=x399))&x400);
if (t99 != 1LLU) { NG(); } else { ; }
}
void f100(void) {
static int16_t x401 = INT16_MAX;
static uint64_t x402 = UINT64_MAX;
static uint64_t x403 = UINT64_MAX;
static uint8_t x404 = 118U;
t100 = ((x401>(x402<=x403))&x404);
if (t100 != 0) { NG(); } else { ; }
}
void f101(void) {
static int8_t x406 = -1;
uint64_t x407 = 11096705858LLU;
volatile int64_t t101 = 1270934904LL;
t101 = ((x405>(x406<=x407))&x408);
if (t101 != 0LL) { NG(); } else { ; }
}
void f102(void) {
int64_t x409 = INT64_MIN;
static volatile int32_t x410 = INT32_MAX;
static volatile uint16_t x411 = 15858U;
volatile uint8_t x412 = UINT8_MAX;
volatile int32_t t102 = -686;
t102 = ((x409>(x410<=x411))&x412);
if (t102 != 0) { NG(); } else { ; }
}
void f103(void) {
int16_t x413 = INT16_MIN;
static int16_t x414 = INT16_MIN;
int16_t x415 = -11;
static int8_t x416 = INT8_MIN;
t103 = ((x413>(x414<=x415))&x416);
if (t103 != 0) { NG(); } else { ; }
}
void f104(void) {
int8_t x417 = -1;
static uint64_t x418 = 2299774076LLU;
uint32_t x419 = UINT32_MAX;
static int32_t t104 = -94471;
t104 = ((x417>(x418<=x419))&x420);
if (t104 != 0) { NG(); } else { ; }
}
void f105(void) {
int16_t x421 = -1;
int16_t x422 = -1;
volatile int16_t x423 = -31;
volatile int32_t t105 = 21;
t105 = ((x421>(x422<=x423))&x424);
if (t105 != 0) { NG(); } else { ; }
}
void f106(void) {
static volatile int64_t x425 = 6425420598LL;
int16_t x426 = -121;
int16_t x427 = -1;
uint64_t x428 = UINT64_MAX;
static volatile uint64_t t106 = 11546LLU;
t106 = ((x425>(x426<=x427))&x428);
if (t106 != 1LLU) { NG(); } else { ; }
}
void f107(void) {
uint64_t x429 = 531609073840LLU;
uint8_t x430 = UINT8_MAX;
t107 = ((x429>(x430<=x431))&x432);
if (t107 != 0) { NG(); } else { ; }
}
void f108(void) {
static int16_t x433 = INT16_MIN;
int64_t x436 = 1LL;
int64_t t108 = 240187LL;
t108 = ((x433>(x434<=x435))&x436);
if (t108 != 0LL) { NG(); } else { ; }
}
void f109(void) {
volatile uint64_t x438 = UINT64_MAX;
volatile int64_t x440 = INT64_MAX;
volatile int64_t t109 = -490673870011LL;
t109 = ((x437>(x438<=x439))&x440);
if (t109 != 1LL) { NG(); } else { ; }
}
void f110(void) {
int32_t x441 = 8094;
int32_t x442 = INT32_MIN;
int64_t x443 = INT64_MAX;
uint8_t x444 = UINT8_MAX;
t110 = ((x441>(x442<=x443))&x444);
if (t110 != 1) { NG(); } else { ; }
}
void f111(void) {
int64_t x448 = INT64_MAX;
t111 = ((x445>(x446<=x447))&x448);
if (t111 != 1LL) { NG(); } else { ; }
}
void f112(void) {
int32_t x449 = 350440;
uint64_t x450 = 261487291LLU;
int8_t x452 = -1;
volatile int32_t t112 = 15;
t112 = ((x449>(x450<=x451))&x452);
if (t112 != 1) { NG(); } else { ; }
}
void f113(void) {
int8_t x453 = INT8_MIN;
int32_t x454 = INT32_MIN;
t113 = ((x453>(x454<=x455))&x456);
if (t113 != 0) { NG(); } else { ; }
}
void f114(void) {
volatile uint8_t x457 = UINT8_MAX;
int64_t x459 = -1LL;
int32_t x460 = INT32_MIN;
int32_t t114 = -190;
t114 = ((x457>(x458<=x459))&x460);
if (t114 != 0) { NG(); } else { ; }
}
void f115(void) {
uint32_t x461 = UINT32_MAX;
uint32_t x463 = UINT32_MAX;
uint8_t x464 = 8U;
static int32_t t115 = 28411;
t115 = ((x461>(x462<=x463))&x464);
if (t115 != 0) { NG(); } else { ; }
}
void f116(void) {
int8_t x466 = INT8_MIN;
int16_t x468 = INT16_MIN;
int32_t t116 = -1966;
t116 = ((x465>(x466<=x467))&x468);
if (t116 != 0) { NG(); } else { ; }
}
void f117(void) {
static int16_t x469 = -368;
static int64_t x471 = -1LL;
int16_t x472 = INT16_MAX;
volatile int32_t t117 = -32788253;
t117 = ((x469>(x470<=x471))&x472);
if (t117 != 0) { NG(); } else { ; }
}
void f118(void) {
int8_t x473 = INT8_MIN;
uint16_t x474 = UINT16_MAX;
int32_t x475 = INT32_MIN;
uint64_t x476 = 93295LLU;
static volatile uint64_t t118 = 34581938706381767LLU;
t118 = ((x473>(x474<=x475))&x476);
if (t118 != 0LLU) { NG(); } else { ; }
}
void f119(void) {
volatile int32_t x477 = -1;
int16_t x478 = 6;
static volatile int64_t x479 = INT64_MIN;
uint64_t x480 = 3880796047075949LLU;
uint64_t t119 = 563LLU;
t119 = ((x477>(x478<=x479))&x480);
if (t119 != 0LLU) { NG(); } else { ; }
}
void f120(void) {
uint64_t x481 = 63304082824442LLU;
uint64_t x482 = 827661960893665769LLU;
int64_t x483 = INT64_MAX;
uint16_t x484 = 4477U;
int32_t t120 = 1;
t120 = ((x481>(x482<=x483))&x484);
if (t120 != 1) { NG(); } else { ; }
}
void f121(void) {
volatile int16_t x485 = INT16_MIN;
static uint64_t x486 = UINT64_MAX;
static int16_t x487 = -12783;
static uint16_t x488 = 14189U;
volatile int32_t t121 = -1941;
t121 = ((x485>(x486<=x487))&x488);
if (t121 != 0) { NG(); } else { ; }
}
void f122(void) {
uint8_t x489 = 0U;
int8_t x490 = -7;
int64_t x491 = INT64_MIN;
int32_t t122 = -57333687;
t122 = ((x489>(x490<=x491))&x492);
if (t122 != 0) { NG(); } else { ; }
}
void f123(void) {
int32_t x494 = 781;
int32_t x495 = -1;
static int8_t x496 = INT8_MAX;
int32_t t123 = -30594;
t123 = ((x493>(x494<=x495))&x496);
if (t123 != 1) { NG(); } else { ; }
}
void f124(void) {
int16_t x497 = INT16_MIN;
uint32_t x498 = 0U;
static volatile int32_t x499 = INT32_MAX;
int64_t x500 = INT64_MAX;
int64_t t124 = 50LL;
t124 = ((x497>(x498<=x499))&x500);
if (t124 != 0LL) { NG(); } else { ; }
}
void f125(void) {
int8_t x502 = -1;
int8_t x503 = INT8_MIN;
uint16_t x504 = 0U;
static volatile int32_t t125 = 140963817;
t125 = ((x501>(x502<=x503))&x504);
if (t125 != 0) { NG(); } else { ; }
}
void f126(void) {
int64_t x505 = 637285279376869LL;
uint8_t x506 = UINT8_MAX;
uint16_t x508 = 4308U;
volatile int32_t t126 = 5;
t126 = ((x505>(x506<=x507))&x508);
if (t126 != 0) { NG(); } else { ; }
}
void f127(void) {
static uint64_t x509 = 7984LLU;
uint32_t x510 = 1014856808U;
int32_t x511 = INT32_MAX;
uint64_t x512 = 258512LLU;
t127 = ((x509>(x510<=x511))&x512);
if (t127 != 0LLU) { NG(); } else { ; }
}
void f128(void) {
volatile uint16_t x513 = UINT16_MAX;
volatile int64_t x514 = INT64_MIN;
int8_t x515 = -1;
uint32_t x516 = UINT32_MAX;
volatile uint32_t t128 = 3745942U;
t128 = ((x513>(x514<=x515))&x516);
if (t128 != 1U) { NG(); } else { ; }
}
void f129(void) {
uint8_t x518 = UINT8_MAX;
uint8_t x519 = 5U;
int64_t x520 = INT64_MAX;
int64_t t129 = -2033428761LL;
t129 = ((x517>(x518<=x519))&x520);
if (t129 != 0LL) { NG(); } else { ; }
}
void f130(void) {
uint32_t x521 = 719621U;
volatile uint64_t x524 = 313LLU;
t130 = ((x521>(x522<=x523))&x524);
if (t130 != 1LLU) { NG(); } else { ; }
}
void f131(void) {
int8_t x525 = -12;
int64_t x526 = -872629689268014325LL;
int8_t x527 = INT8_MIN;
int8_t x528 = INT8_MIN;
volatile int32_t t131 = -30618378;
t131 = ((x525>(x526<=x527))&x528);
if (t131 != 0) { NG(); } else { ; }
}
void f132(void) {
volatile uint8_t x529 = UINT8_MAX;
volatile int8_t x531 = -1;
int64_t x532 = INT64_MIN;
static int64_t t132 = 40830227898374555LL;
t132 = ((x529>(x530<=x531))&x532);
if (t132 != 0LL) { NG(); } else { ; }
}
void f133(void) {
uint32_t x533 = 112239934U;
static volatile int64_t x534 = INT64_MAX;
static int32_t x535 = INT32_MIN;
volatile int16_t x536 = INT16_MIN;
int32_t t133 = -91571;
t133 = ((x533>(x534<=x535))&x536);
if (t133 != 0) { NG(); } else { ; }
}
void f134(void) {
uint16_t x537 = 1360U;
uint8_t x538 = 3U;
static volatile uint32_t x540 = 34U;
uint32_t t134 = 6156198U;
t134 = ((x537>(x538<=x539))&x540);
if (t134 != 0U) { NG(); } else { ; }
}
void f135(void) {
volatile int32_t x542 = -1;
int8_t x543 = INT8_MIN;
uint8_t x544 = 9U;
static int32_t t135 = 1340287;
t135 = ((x541>(x542<=x543))&x544);
if (t135 != 1) { NG(); } else { ; }
}
void f136(void) {
uint16_t x545 = 3U;
int64_t x547 = INT64_MAX;
volatile int16_t x548 = -1;
t136 = ((x545>(x546<=x547))&x548);
if (t136 != 1) { NG(); } else { ; }
}
void f137(void) {
volatile int8_t x549 = 45;
static volatile int32_t x550 = 3;
int8_t x551 = INT8_MIN;
int64_t x552 = INT64_MIN;
volatile int64_t t137 = -1487974393879348LL;
t137 = ((x549>(x550<=x551))&x552);
if (t137 != 0LL) { NG(); } else { ; }
}
void f138(void) {
int16_t x553 = INT16_MIN;
uint8_t x555 = UINT8_MAX;
uint16_t x556 = 29473U;
volatile int32_t t138 = 2543;
t138 = ((x553>(x554<=x555))&x556);
if (t138 != 0) { NG(); } else { ; }
}
void f139(void) {
static int64_t x557 = INT64_MIN;
int16_t x559 = -1;
uint16_t x560 = 309U;
t139 = ((x557>(x558<=x559))&x560);
if (t139 != 0) { NG(); } else { ; }
}
void f140(void) {
static uint8_t x562 = 2U;
uint8_t x563 = 89U;
int64_t x564 = -1LL;
t140 = ((x561>(x562<=x563))&x564);
if (t140 != 1LL) { NG(); } else { ; }
}
void f141(void) {
static int64_t x566 = INT64_MIN;
int8_t x567 = INT8_MIN;
static int32_t x568 = INT32_MIN;
t141 = ((x565>(x566<=x567))&x568);
if (t141 != 0) { NG(); } else { ; }
}
void f142(void) {
volatile uint8_t x569 = UINT8_MAX;
int64_t x571 = INT64_MIN;
int64_t x572 = -1LL;
int64_t t142 = -3035LL;
t142 = ((x569>(x570<=x571))&x572);
if (t142 != 1LL) { NG(); } else { ; }
}
void f143(void) {
volatile int32_t x573 = -1;
static uint64_t x574 = UINT64_MAX;
int32_t x575 = INT32_MAX;
int64_t x576 = -1LL;
volatile int64_t t143 = -33746738560053LL;
t143 = ((x573>(x574<=x575))&x576);
if (t143 != 0LL) { NG(); } else { ; }
}
void f144(void) {
static int16_t x577 = 5706;
static uint16_t x578 = UINT16_MAX;
int16_t x579 = 5670;
uint64_t x580 = UINT64_MAX;
uint64_t t144 = 76791618564063LLU;
t144 = ((x577>(x578<=x579))&x580);
if (t144 != 1LLU) { NG(); } else { ; }
}
void f145(void) {
int8_t x582 = -1;
int8_t x583 = INT8_MAX;
uint8_t x584 = 2U;
volatile int32_t t145 = 46689;
t145 = ((x581>(x582<=x583))&x584);
if (t145 != 0) { NG(); } else { ; }
}
void f146(void) {
int8_t x586 = INT8_MAX;
int64_t x587 = -30659635914610LL;
int32_t x588 = INT32_MAX;
int32_t t146 = 992497503;
t146 = ((x585>(x586<=x587))&x588);
if (t146 != 0) { NG(); } else { ; }
}
void f147(void) {
int8_t x589 = -1;
static int8_t x590 = INT8_MIN;
uint8_t x591 = 98U;
static int32_t t147 = -267;
t147 = ((x589>(x590<=x591))&x592);
if (t147 != 0) { NG(); } else { ; }
}
void f148(void) {
int32_t x593 = -1;
int32_t x594 = INT32_MIN;
volatile uint8_t x595 = 63U;
uint8_t x596 = UINT8_MAX;
volatile int32_t t148 = -381;
t148 = ((x593>(x594<=x595))&x596);
if (t148 != 0) { NG(); } else { ; }
}
void f149(void) {
int8_t x597 = -42;
int8_t x600 = -1;
t149 = ((x597>(x598<=x599))&x600);
if (t149 != 0) { NG(); } else { ; }
}
void f150(void) {
static volatile int8_t x601 = INT8_MIN;
static uint32_t x602 = 1969652U;
int64_t x603 = -1LL;
int64_t x604 = INT64_MIN;
t150 = ((x601>(x602<=x603))&x604);
if (t150 != 0LL) { NG(); } else { ; }
}
void f151(void) {
int16_t x605 = INT16_MIN;
uint64_t x606 = UINT64_MAX;
int16_t x607 = INT16_MAX;
uint64_t x608 = UINT64_MAX;
t151 = ((x605>(x606<=x607))&x608);
if (t151 != 0LLU) { NG(); } else { ; }
}
void f152(void) {
int8_t x609 = INT8_MAX;
static int64_t x610 = 122794765916635108LL;
static volatile int32_t x611 = INT32_MIN;
int64_t x612 = 1686329935LL;
volatile int64_t t152 = -23891436465129LL;
t152 = ((x609>(x610<=x611))&x612);
if (t152 != 1LL) { NG(); } else { ; }
}
void f153(void) {
int16_t x614 = INT16_MAX;
uint8_t x615 = UINT8_MAX;
int8_t x616 = INT8_MIN;
volatile int32_t t153 = 2196;
t153 = ((x613>(x614<=x615))&x616);
if (t153 != 0) { NG(); } else { ; }
}
void f154(void) {
volatile int32_t x617 = -1447540;
uint16_t x619 = 490U;
volatile int32_t t154 = 152294;
t154 = ((x617>(x618<=x619))&x620);
if (t154 != 0) { NG(); } else { ; }
}
void f155(void) {
uint16_t x622 = UINT16_MAX;
volatile int32_t x623 = -3;
volatile uint64_t t155 = 2123799046331LLU;
t155 = ((x621>(x622<=x623))&x624);
if (t155 != 0LLU) { NG(); } else { ; }
}
void f156(void) {
int64_t x626 = 461357334LL;
uint16_t x628 = 17669U;
volatile int32_t t156 = -11236;
t156 = ((x625>(x626<=x627))&x628);
if (t156 != 0) { NG(); } else { ; }
}
void f157(void) {
int16_t x629 = -172;
int64_t x630 = -37LL;
static volatile uint8_t x631 = 110U;
static int32_t t157 = 13490;
t157 = ((x629>(x630<=x631))&x632);
if (t157 != 0) { NG(); } else { ; }
}
void f158(void) {
int8_t x633 = INT8_MIN;
volatile int16_t x634 = -42;
uint64_t x635 = 165114854551329817LLU;
int8_t x636 = -1;
t158 = ((x633>(x634<=x635))&x636);
if (t158 != 0) { NG(); } else { ; }
}
void f159(void) {
static volatile int64_t x637 = -490908LL;
int16_t x639 = -3;
uint8_t x640 = 13U;
volatile int32_t t159 = -502795807;
t159 = ((x637>(x638<=x639))&x640);
if (t159 != 0) { NG(); } else { ; }
}
void f160(void) {
int32_t x641 = -1;
uint64_t x642 = 128659LLU;
int32_t x643 = 829474585;
uint64_t x644 = 2059834LLU;
t160 = ((x641>(x642<=x643))&x644);
if (t160 != 0LLU) { NG(); } else { ; }
}
void f161(void) {
static int16_t x645 = INT16_MAX;
volatile int64_t x646 = INT64_MAX;
static int16_t x647 = -1;
static volatile uint8_t x648 = UINT8_MAX;
static volatile int32_t t161 = 753259136;
t161 = ((x645>(x646<=x647))&x648);
if (t161 != 1) { NG(); } else { ; }
}
void f162(void) {
int64_t x650 = INT64_MIN;
volatile int32_t t162 = 1;
t162 = ((x649>(x650<=x651))&x652);
if (t162 != 1) { NG(); } else { ; }
}
void f163(void) {
int64_t x653 = -1LL;
static int8_t x654 = INT8_MIN;
uint8_t x655 = 0U;
static int32_t t163 = 454580;
t163 = ((x653>(x654<=x655))&x656);
if (t163 != 0) { NG(); } else { ; }
}
void f164(void) {
int8_t x657 = -50;
int32_t x658 = INT32_MIN;
uint64_t x659 = 124136LLU;
int8_t x660 = INT8_MIN;
volatile int32_t t164 = -4981;
t164 = ((x657>(x658<=x659))&x660);
if (t164 != 0) { NG(); } else { ; }
}
void f165(void) {
uint8_t x661 = 119U;
volatile uint16_t x663 = 208U;
static int16_t x664 = -107;
int32_t t165 = 880;
t165 = ((x661>(x662<=x663))&x664);
if (t165 != 1) { NG(); } else { ; }
}
void f166(void) {
uint32_t x665 = 8275559U;
int64_t x666 = INT64_MIN;
int64_t x667 = INT64_MIN;
int32_t x668 = INT32_MIN;
volatile int32_t t166 = -1;
t166 = ((x665>(x666<=x667))&x668);
if (t166 != 0) { NG(); } else { ; }
}
void f167(void) {
static int32_t x669 = INT32_MIN;
int16_t x671 = -1;
t167 = ((x669>(x670<=x671))&x672);
if (t167 != 0) { NG(); } else { ; }
}
void f168(void) {
static int8_t x674 = INT8_MIN;
int16_t x675 = -11;
static int64_t x676 = 20234869379LL;
static int64_t t168 = -15549145716LL;
t168 = ((x673>(x674<=x675))&x676);
if (t168 != 1LL) { NG(); } else { ; }
}
void f169(void) {
uint64_t x678 = UINT64_MAX;
int64_t x679 = -1LL;
uint64_t x680 = UINT64_MAX;
static uint64_t t169 = 71LLU;
t169 = ((x677>(x678<=x679))&x680);
if (t169 != 1LLU) { NG(); } else { ; }
}
void f170(void) {
volatile uint8_t x681 = 11U;
int64_t x683 = INT64_MAX;
int64_t x684 = -3216507152040828092LL;
int64_t t170 = -128LL;
t170 = ((x681>(x682<=x683))&x684);
if (t170 != 0LL) { NG(); } else { ; }
}
void f171(void) {
int32_t x685 = -3981;
volatile int16_t x686 = INT16_MIN;
static uint8_t x687 = 2U;
static int32_t x688 = INT32_MIN;
int32_t t171 = 2;
t171 = ((x685>(x686<=x687))&x688);
if (t171 != 0) { NG(); } else { ; }
}
void f172(void) {
int64_t x689 = INT64_MIN;
uint64_t x690 = 23463131540562251LLU;
int32_t x691 = INT32_MIN;
int16_t x692 = INT16_MIN;
volatile int32_t t172 = -1442478;
t172 = ((x689>(x690<=x691))&x692);
if (t172 != 0) { NG(); } else { ; }
}
void f173(void) {
uint64_t x693 = 5459007LLU;
static int32_t x694 = INT32_MIN;
int8_t x695 = INT8_MIN;
t173 = ((x693>(x694<=x695))&x696);
if (t173 != 0) { NG(); } else { ; }
}
void f174(void) {
static uint16_t x698 = UINT16_MAX;
int8_t x699 = -2;
uint16_t x700 = UINT16_MAX;
static volatile int32_t t174 = 1;
t174 = ((x697>(x698<=x699))&x700);
if (t174 != 0) { NG(); } else { ; }
}
void f175(void) {
int16_t x702 = 1;
int32_t x704 = INT32_MIN;
t175 = ((x701>(x702<=x703))&x704);
if (t175 != 0) { NG(); } else { ; }
}
void f176(void) {
volatile int32_t x705 = -1;
int8_t x706 = -1;
int8_t x707 = -1;
uint8_t x708 = 1U;
volatile int32_t t176 = 1;
t176 = ((x705>(x706<=x707))&x708);
if (t176 != 0) { NG(); } else { ; }
}
void f177(void) {
int32_t x709 = INT32_MAX;
int32_t x710 = 3974;
int8_t x712 = INT8_MIN;
volatile int32_t t177 = 7899;
t177 = ((x709>(x710<=x711))&x712);
if (t177 != 0) { NG(); } else { ; }
}
void f178(void) {
uint16_t x713 = 0U;
static int64_t x714 = INT64_MIN;
uint64_t x715 = 29264617829218824LLU;
static uint16_t x716 = 21339U;
t178 = ((x713>(x714<=x715))&x716);
if (t178 != 0) { NG(); } else { ; }
}
void f179(void) {
int16_t x717 = 0;
static int8_t x720 = INT8_MIN;
t179 = ((x717>(x718<=x719))&x720);
if (t179 != 0) { NG(); } else { ; }
}
void f180(void) {
volatile int64_t x721 = INT64_MAX;
volatile int64_t x723 = INT64_MIN;
int8_t x724 = INT8_MIN;
int32_t t180 = 576;
t180 = ((x721>(x722<=x723))&x724);
if (t180 != 0) { NG(); } else { ; }
}
void f181(void) {
int8_t x725 = -1;
int32_t x726 = INT32_MIN;
volatile int32_t t181 = -1952;
t181 = ((x725>(x726<=x727))&x728);
if (t181 != 0) { NG(); } else { ; }
}
void f182(void) {
int16_t x729 = INT16_MIN;
static uint32_t x731 = 43367U;
volatile int32_t x732 = INT32_MIN;
int32_t t182 = -3333;
t182 = ((x729>(x730<=x731))&x732);
if (t182 != 0) { NG(); } else { ; }
}
void f183(void) {
int64_t x734 = 73024509587435LL;
static int16_t x735 = -1;
int32_t x736 = -1;
int32_t t183 = -15;
t183 = ((x733>(x734<=x735))&x736);
if (t183 != 0) { NG(); } else { ; }
}
void f184(void) {
volatile int16_t x737 = -1;
int32_t x738 = INT32_MAX;
static volatile uint16_t x739 = UINT16_MAX;
uint8_t x740 = 17U;
volatile int32_t t184 = -257356;
t184 = ((x737>(x738<=x739))&x740);
if (t184 != 0) { NG(); } else { ; }
}
void f185(void) {
uint64_t x742 = 6945LLU;
volatile int64_t x743 = INT64_MAX;
static int8_t x744 = INT8_MIN;
int32_t t185 = 220;
t185 = ((x741>(x742<=x743))&x744);
if (t185 != 0) { NG(); } else { ; }
}
void f186(void) {
static volatile uint64_t x745 = 15480708581214310LLU;
static int32_t x746 = -25219;
volatile int16_t x747 = -3;
int16_t x748 = INT16_MAX;
volatile int32_t t186 = 10;
t186 = ((x745>(x746<=x747))&x748);
if (t186 != 1) { NG(); } else { ; }
}
void f187(void) {
uint8_t x749 = UINT8_MAX;
uint8_t x750 = UINT8_MAX;
uint64_t t187 = 107909LLU;
t187 = ((x749>(x750<=x751))&x752);
if (t187 != 0LLU) { NG(); } else { ; }
}
void f188(void) {
static int8_t x753 = 0;
uint16_t x755 = 16626U;
int16_t x756 = INT16_MIN;
volatile int32_t t188 = -9132685;
t188 = ((x753>(x754<=x755))&x756);
if (t188 != 0) { NG(); } else { ; }
}
void f189(void) {
volatile int16_t x757 = 28;
int32_t x758 = INT32_MIN;
int16_t x759 = -1;
static volatile int32_t t189 = 5;
t189 = ((x757>(x758<=x759))&x760);
if (t189 != 1) { NG(); } else { ; }
}
void f190(void) {
int8_t x761 = -8;
int8_t x762 = INT8_MIN;
uint16_t x763 = 16U;
int32_t x764 = INT32_MIN;
t190 = ((x761>(x762<=x763))&x764);
if (t190 != 0) { NG(); } else { ; }
}
void f191(void) {
volatile int16_t x766 = -1;
int64_t x767 = INT64_MAX;
int64_t x768 = INT64_MIN;
int64_t t191 = -429564LL;
t191 = ((x765>(x766<=x767))&x768);
if (t191 != 0LL) { NG(); } else { ; }
}
void f192(void) {
static int64_t x769 = -268516637307951796LL;
int64_t x770 = 28327721528394LL;
uint32_t x771 = 4752687U;
uint16_t x772 = 3U;
volatile int32_t t192 = -31154402;
t192 = ((x769>(x770<=x771))&x772);
if (t192 != 0) { NG(); } else { ; }
}
void f193(void) {
uint32_t x773 = UINT32_MAX;
volatile int32_t x774 = INT32_MIN;
uint64_t t193 = 12LLU;
t193 = ((x773>(x774<=x775))&x776);
if (t193 != 0LLU) { NG(); } else { ; }
}
void f194(void) {
static int32_t x778 = INT32_MIN;
int32_t x779 = INT32_MIN;
int32_t x780 = 232728172;
static int32_t t194 = 510093704;
t194 = ((x777>(x778<=x779))&x780);
if (t194 != 0) { NG(); } else { ; }
}
void f195(void) {
int32_t x781 = 65728976;
volatile int16_t x782 = INT16_MAX;
static int32_t x783 = INT32_MIN;
uint32_t x784 = UINT32_MAX;
uint32_t t195 = 1394U;
t195 = ((x781>(x782<=x783))&x784);
if (t195 != 1U) { NG(); } else { ; }
}
void f196(void) {
int64_t x785 = -478315LL;
int64_t x786 = INT64_MAX;
int8_t x787 = -12;
t196 = ((x785>(x786<=x787))&x788);
if (t196 != 0U) { NG(); } else { ; }
}
void f197(void) {
uint16_t x789 = UINT16_MAX;
volatile uint64_t x790 = 2079LLU;
static volatile int64_t x791 = INT64_MIN;
static volatile int16_t x792 = -1;
t197 = ((x789>(x790<=x791))&x792);
if (t197 != 1) { NG(); } else { ; }
}
void f198(void) {
uint16_t x793 = UINT16_MAX;
static volatile int64_t x794 = INT64_MAX;
static int64_t x796 = -1LL;
volatile int64_t t198 = 459705126809653025LL;
t198 = ((x793>(x794<=x795))&x796);
if (t198 != 1LL) { NG(); } else { ; }
}
void f199(void) {
int16_t x797 = INT16_MIN;
static uint32_t x798 = 273U;
static uint64_t x799 = 104496874854622332LLU;
uint64_t x800 = 80488627443LLU;
t199 = ((x797>(x798<=x799))&x800);
if (t199 != 0LLU) { NG(); } else { ; }
}
int main(void) {
f0();
f1();
f2();
f3();
f4();
f5();
f6();
f7();
f8();
f9();
f10();
f11();
f12();
f13();
f14();
f15();
f16();
f17();
f18();
f19();
f20();
f21();
f22();
f23();
f24();
f25();
f26();
f27();
f28();
f29();
f30();
f31();
f32();
f33();
f34();
f35();
f36();
f37();
f38();
f39();
f40();
f41();
f42();
f43();
f44();
f45();
f46();
f47();
f48();
f49();
f50();
f51();
f52();
f53();
f54();
f55();
f56();
f57();
f58();
f59();
f60();
f61();
f62();
f63();
f64();
f65();
f66();
f67();
f68();
f69();
f70();
f71();
f72();
f73();
f74();
f75();
f76();
f77();
f78();
f79();
f80();
f81();
f82();
f83();
f84();
f85();
f86();
f87();
f88();
f89();
f90();
f91();
f92();
f93();
f94();
f95();
f96();
f97();
f98();
f99();
f100();
f101();
f102();
f103();
f104();
f105();
f106();
f107();
f108();
f109();
f110();
f111();
f112();
f113();
f114();
f115();
f116();
f117();
f118();
f119();
f120();
f121();
f122();
f123();
f124();
f125();
f126();
f127();
f128();
f129();
f130();
f131();
f132();
f133();
f134();
f135();
f136();
f137();
f138();
f139();
f140();
f141();
f142();
f143();
f144();
f145();
f146();
f147();
f148();
f149();
f150();
f151();
f152();
f153();
f154();
f155();
f156();
f157();
f158();
f159();
f160();
f161();
f162();
f163();
f164();
f165();
f166();
f167();
f168();
f169();
f170();
f171();
f172();
f173();
f174();
f175();
f176();
f177();
f178();
f179();
f180();
f181();
f182();
f183();
f184();
f185();
f186();
f187();
f188();
f189();
f190();
f191();
f192();
f193();
f194();
f195();
f196();
f197();
f198();
f199();
return 0;
}
| 18.721671 | 58 | 0.587592 |
ecc7be3a0939bf53ccdf0efa3b323082319d612a | 667 | h | C | engine/audio/private/snd_op_sys/sos_op_map_name.h | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | cstrike15_src/engine/audio/private/snd_op_sys/sos_op_map_name.h | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | cstrike15_src/engine/audio/private/snd_op_sys/sos_op_map_name.h | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //============ Copyright (c) Valve Corporation, All rights reserved. ============
//
//
//
//===============================================================================
#ifndef SOS_OP_MAPNAME_H
#define SOS_OP_MAPNAME_H
#ifdef _WIN32
#pragma once
#endif
#include "sos_op.h"
//-----------------------------------------------------------------------------
// mapname
//-----------------------------------------------------------------------------
struct CSosOperatorMapName_t : CSosOperator_t
{
SOS_OUTPUT_FLOAT( m_flOutput, SO_SINGLE )
};
class CSosOperatorMapName : public CSosOperator
{
SOS_HEADER_DESC( CSosOperatorMapName )
};
#endif // SOS_OP_MAPNAME | 21.516129 | 81 | 0.457271 |
ecc7f9616980d072a8153b84a3444fdcf9a3357b | 54,272 | h | C | CInclude/graphics.h | NCommander/pcgeos | 0d0a2c20425b32589f313861a00b78546c1da46f | [
"Apache-2.0"
] | null | null | null | CInclude/graphics.h | NCommander/pcgeos | 0d0a2c20425b32589f313861a00b78546c1da46f | [
"Apache-2.0"
] | null | null | null | CInclude/graphics.h | NCommander/pcgeos | 0d0a2c20425b32589f313861a00b78546c1da46f | [
"Apache-2.0"
] | null | null | null | /***********************************************************************
*
* Copyright (c) Berkeley Softworks 1991 -- All Rights Reserved
*
* PROJECT: PC GEOS
* FILE: graphics.h
* AUTHOR: Tony Requist: February 14, 1991
*
* DECLARER: Kernel
*
* DESCRIPTION:
* This file defines graphics structures and routines.
*
* $Id: graphics.h,v 1.1 97/04/04 15:56:44 newdeal Exp $
*
***********************************************************************/
#ifndef __GRAPHICS_H
#define __GRAPHICS_H
#include <fontID.h>
#include <font.h>
#include <color.h>
/* return info for GrGetCharInfo */
typedef ByteFlags CharInfo;
#define CI_NEGATIVE_LSB 0x40 /* TRUE if negative left-side bearing */
#define CI_ABOVE_ASCENT 0x20 /* TRUE if very tall */
#define CI_BELOW_DESCENT 0x10 /* TRUE if very low */
#define CI_NO_DATA 0x08 /* TRUE if no data */
#define CI_IS_FIRST_KERN 0x04 /* TRUE if first of a kern pair */
#define CI_IS_SECOND_KERN 0x02 /* TRUE if second of a kern pair */
/* Maximum allowed values */
#define MIN_TRACK_KERNING (-150)
#define MAX_TRACK_KERNING 500
#define MAX_KERN_VALUE 0x7ff0
#define MIN_KERN_VALUE 0x8001
/***/
typedef ByteEnum Justification;
#define J_LEFT 0
#define J_RIGHT 1
#define J_CENTER 2
#define J_FULL 3
/***/
/* structure for a draw mask -- the default mask has all bits set */
typedef byte DrawMask[8];
/* constants for system patterns and draw masks */
typedef ByteEnum SystemDrawMask;
#define SDM_TILE 0
#define SDM_SHADED_BAR 1
#define SDM_HORIZONTAL 2
#define SDM_VERTICAL 3
#define SDM_DIAG_NE 4
#define SDM_DIAG_NW 5
#define SDM_GRID 6
#define SDM_BIG_GRID 7
#define SDM_BRICK 8
#define SDM_SLANT_BRICK 9
#define SDM_0 89
#define SDM_12_5 81
#define SDM_25 73
#define SDM_37_5 65
#define SDM_50 57
#define SDM_62_5 49
#define SDM_75 41
#define SDM_87_5 33
#define SDM_100 25
#define SDM_CUSTOM 0x7f
#define SET_CUSTOM_PATTERN SDM_CUSTOM
/* record to pass to GrSetXXXXMask */
typedef ByteFlags SysDrawMask;
#define SDM_INVERSE 0x80
#define SDM_MASK 0x7f
/* Bitmap / Raster Constants and Structures */
/* Record for ImageFlags */
typedef ByteFlags ImageFlags;
#define IF_BORDER 0x08
#define IF_BITSIZE 0x07
/* Enum for GrDrawImage pixel sizes */
typedef ByteEnum ImageBitSize;
#define IBS_1 0
#define IBS_2 1
#define IBS_4 2
#define IBS_8 3
#define IBS_16 4
/* Enum for B_compact */
typedef ByteEnum BMCompact;
#define BMC_UNCOMPACTED 0
#define BMC_PACKBITS 1
#define BMC_LZG 2
#define BMC_USER_DEFINED 0x80
/* Enum for BMT_FORMAT */
typedef ByteEnum BMFormat;
#define BMF_MONO 0
#define BMF_4BIT 1
#define BMF_8BIT 2
#define BMF_24BIT 3
#define BMF_4CMYK 4
#define BMF_3CMY 5
/* Record for B_type */
typedef ByteFlags BMType;
#define BMT_PALETTE 0x40
#define BMT_HUGE 0x20
#define BMT_MASK 0x10
#define BMT_COMPLEX 0x08
#define BMT_FORMAT 0x07
/* Simple Bitmap Structure */
typedef struct {
word B_width;
word B_height;
byte B_compact;
byte B_type;
} Bitmap;
/* Complex Bitmap Structure */
typedef struct {
Bitmap CB_simple;
word CB_startScan;
word CB_numScans;
word CB_devInfo;
word CB_data;
word CB_palette;
word CB_xres;
word CB_yres;
} CBitmap;
/***/
#define PATTERN_SIZE 8
/* different values for GS_mixMode */
typedef ByteEnum MixMode;
#define MM_CLEAR 0
#define MM_COPY 1
#define MM_NOP 2
#define MM_AND 3
#define MM_INVERT 4
#define MM_XOR 5
#define MM_SET 6
#define MM_OR 7
#define LAST_MIX_MODE MM_OR
/* different values for color mapping modes */
typedef ByteEnum MapColorToMono;
#define CMT_CLOSEST 0
#define CMT_DITHER 1
typedef ByteFlags ColorMapMode;
#define CMM_ON_BLACK 0x04
#define CMM_MAP_TYPE 0x01
#define LAST_MAP_MODE mask CMM_MAP_TYPE or mask CMM_ON_BLACK
/* options for line style */
typedef ByteEnum LineStyle;
#define LS_SOLID 0
#define LS_DASHED 1
#define LS_DOTTED 2
#define LS_DASHDOT 3
#define LS_DASHDDOT 4
#define LS_CUSTOM 5
#define MAX_DASH_ARRAY_PAIRS 5
/* structure for a dash pair array */
typedef word DashPairArray[MAX_DASH_ARRAY_PAIRS*2];
/* constants for line join */
typedef ByteEnum LineJoin;
#define LJ_MITERED 0
#define LJ_ROUND 1
#define LJ_BEVELED 2
#define LAST_LINE_JOIN_TYPE LJ_BEVELED
/* constants for line end */
typedef ByteEnum LineEnd;
#define LE_BUTTCAP 0
#define LE_ROUNDCAP 1
#define LE_SQUARECAP 2
#define LAST_LINE_END_TYPE LE_SQUARECAP
/* text styles */
typedef ByteFlags TextStyle;
#define TS_OUTLINE 0x40
#define TS_BOLD 0x20
#define TS_ITALIC 0x10
#define TS_SUPERSCRIPT 0x08
#define TS_SUBSCRIPT 0x04
#define TS_STRIKE_THRU 0x02
#define TS_UNDERLINE 0x01
/* text modes */
typedef ByteFlags TextMode;
#define TM_DRAW_CONTROL_CHARS 0x80
/* Does the following mapping when drawing text:
C_SPACE -> C_CNTR_DOT
C_NONBRKSPACE -> C_CNTR_DOT
C_CR -> C_PARAGRAPH
C_TAB -> C_LOGICAL_NOT */
#define TM_TRACK_KERN 0x40
#define TM_PAIR_KERN 0x20
#define TM_PAD_SPACES 0x10
#define TM_DRAW_BASE 0x08
#define TM_DRAW_BOTTOM 0x04
#define TM_DRAW_ACCENT 0x02
#define TM_DRAW_OPTIONAL_HYPHENS 0x01
/* For Directional text support -- lshields 02/12/2002 */
typedef ByteEnum TextDirection ;
#define TD_LEFT_TO_RIGHT 0
#define TD_RIGHT_TO_LEFT 1
/* text misc modes */
typedef ByteFlags TextMiscMode;
#define TMMF_CHARACTER_JUSTIFICATION 0x80
/* Region Constants */
typedef word Region;
#define EOREGREC 0x8000
#define EOREG_HIGH 0x80
/* structure of a rectangular region */
typedef struct {
word RR_y1M1;
word RR_eo1; /* EOREGREC */
word RR_y2;
word RR_x1;
word RR_x2;
word RR_eo2; /* EOREGREC */
word RR_eo3; /* EOREGREC */
} RectRegion;
/* macro for creating rectangular regions */
#define MakeRectRegion(left, top, right, bottom) \
{(left), (top), (right), (bottom), (top) - 1, (EOREGREC), \
(bottom), (left), (right), (EOREGREC), (EOREGREC)}
/*
* (x,y) values are often returned from functions. To allow their easy return,
* the type XYValueAsDWord is returned. The DWORD_X() and DWORD_Y() macros
* can be used to access the x and y components.
* For functions returning 16-bit values, there is the possibility (with some
* functions) that the return value for either X or Y cannot be expressed in
* 16-bits. This will happen most often if there is an extended (32-bit)
* translation applied to the GState Transformation Matrix. In those cases,
* the value ERROR_COORD will be returned.
*/
typedef dword XYValueAsDWord;
#define DWORD_X(val) ((sword)( (val) & 0xffff ))
#define DWORD_Y(val) ((sword)( ((val) >> 16) & 0xffff ))
#define ERROR_COORD 0x8000
/* standard structure for an X,Y pair */
typedef struct {
sword P_x;
sword P_y;
} Point;
typedef struct {
WWFixed PF_x;
WWFixed PF_y;
} PointWWFixed;
typedef struct {
WBFixed PWBF_x;
WBFixed PWBF_y;
} PointWBFixed;
typedef struct {
DWFixed PDF_x;
DWFixed PDF_y;
} PointDWFixed;
typedef struct {
sdword PD_x;
sdword PD_y;
} PointDWord;
typedef struct {
sword XYO_x;
sword XYO_y;
} XYOffset;
typedef struct {
word XYS_width;
word XYS_height;
} XYSize;
/* standard structure for a rectangle */
typedef struct {
sword R_left;
sword R_top;
sword R_right;
sword R_bottom;
} Rectangle;
typedef struct {
sdword RD_left;
sdword RD_top;
sdword RD_right;
sdword RD_bottom;
} RectDWord;
/***/
/* constants for region fill rule */
typedef ByteEnum RegionFillRule;
#define ODD_EVEN 0
#define WINDING 1
/* constants for GrNewPage */
typedef ByteEnum PageEndCommand;
#define PEC_FORM_FEED 0
#define PEC_NO_FORM_FEED 1
/* constants for filled arcs */
typedef enum /* word */ {
ACT_OPEN, /* Illegal for filled arcs */
ACT_CHORD, /* draw/fill as a chord */
ACT_PIE /* draw/fill as a pie */
} ArcCloseType;
/*
* For backwards compatibility:
*/
#define OPEN ACT_OPEN
#define CHORD ACT_CHORD
#define PIE ACT_PIE
typedef struct {
ArcCloseType TPAP_close;
PointWWFixed TPAP_point1;
PointWWFixed TPAP_point2;
PointWWFixed TPAP_point3;
} ThreePointArcParams;
typedef struct {
ArcCloseType TPATP_close;
PointWWFixed TPATP_point2;
PointWWFixed TPATP_point3;
} ThreePointArcToParams;
typedef struct {
ArcCloseType TPRATP_close;
PointWWFixed TPRATP_delta2;
PointWWFixed TPRATP_delta3;
} ThreePointRelArcToParams;
/* Structures & Constants for Patterns */
typedef ByteEnum PatternType;
#define PT_SOLID 0
#define PT_SYSTEM_HATCH 1
#define PT_SYSTEM_BITMAP 2
#define PT_USER_HATCH 3
#define PT_USER_BITMAP 4
#define PT_CUSTOM_HATCH 5
#define PT_CUSTOM_BITMAP 6
typedef ByteEnum SystemHatch;
#define SH_VERTICAL 0
#define SH_HORIZONTAL 1
#define SH_45_DEGREE 2
#define SH_135_DEGREE 3
#define SH_BRICK 4
#define SH_SLANTED_BRICK 5
typedef struct {
PatternType HP_type;
byte HP_data;
} GraphicPattern;
/* Structures & Constants for Hatch Patterns */
typedef struct {
WWFixed HD_on;
WWFixed HD_off;
} HatchDash;
typedef struct {
PointWWFixed HL_origin;
WWFixed HL_deltaX;
WWFixed HL_deltaY;
WWFixed HL_angle;
ColorQuad HL_color;
word HL_numDashes;
/* array of HatchDash structures follows here */
} HatchLine;
typedef struct {
word HP_numLines;
/* array of HatchLine structures follows here */
} HatchPattern;
#define MAX_CUSTOM_PATTERN_SIZE 16384
/* Constants for DrawRegion and DrawString */
#define PARAM_0 0x5000
#define PARAM_1 0x7000
#define PARAM_2 0x9000
#define PARAM_3 0xb000
/* Structure passed to transformation matrix routines */
/*
* This structure defines a 3x3 transformation matrix. Since only six of the
* nine elements are actually used, the structure only has six elements.
*
* e11 e12 0
* e21 e22 0
* e31 e32 1
*/
typedef struct {
WWFixed TM_e11;
WWFixed TM_e12;
WWFixed TM_e21;
WWFixed TM_e22;
DWFixed TM_e31;
DWFixed TM_e32;
} TransMatrix;
#define LARGEST_POSITIVE_COORDINATE 0x4000
#define LARGEST_NEGATIVE_COORDINATE 0xffffc000
#define MAX_COORD LARGEST_POSITIVE_COORDINATE
#define MIN_COORD LARGEST_NEGATIVE_COORDINATE
/*
* Pointer Picture Definition Structure
*/
#define STANDARD_CURSOR_IMAGE_SIZE 32
#define CURSOR_IMAGE_SIZE_32 128
#define CURSOR_IMAGE_SIZE_64 512
typedef struct {
byte PD_width;
byte PD_height;
sbyte PD_hotX;
sbyte PD_hotY;
byte PD_mask[STANDARD_CURSOR_IMAGE_SIZE];
byte PD_image[STANDARD_CURSOR_IMAGE_SIZE];
} PointerDef16;
typedef struct {
byte PD_width;
byte PD_height;
sbyte PD_hotX;
sbyte PD_hotY;
byte PD_mask[CURSOR_IMAGE_SIZE_32];
byte PD_image[CURSOR_IMAGE_SIZE_32];
} PointerDef32;
typedef struct {
byte PD_width;
byte PD_height;
sbyte PD_hotX;
sbyte PD_hotY;
byte PD_mask[CURSOR_IMAGE_SIZE_64];
byte PD_image[CURSOR_IMAGE_SIZE_64];
} PointerDef64;
/***/
typedef ByteEnum GStringElement;
#define GR_END_GSTRING 0
#define GR_COMMENT 1
#define GR_NULL_OP 2
#define GR_SET_GSTRING_BOUNDS 3
#define GR_MISC_4 4
#define GR_MISC_5 5
#define GR_MISC_6 6
#define GR_MISC_7 7
#define GR_MISC_8 8
#define GR_MISC_9 9
#define GR_MISC_A 10
#define GR_MISC_B 11
#define GR_MISC_C 12
#define GR_LABEL 13
#define GR_ESCAPE 14
#define GR_NEW_PAGE 15
#define GR_APPLY_ROTATION 16
#define GR_APPLY_SCALE 17
#define GR_APPLY_TRANSLATION 18
#define GR_APPLY_TRANSFORM 19
#define GR_APPLY_TRANSLATION_DWORD 20
#define GR_SET_TRANSFORM 21
#define GR_SET_NULL_TRANSFORM 22
#define GR_SET_DEFAULT_TRANSFORM 23
#define GR_INIT_DEFAULT_TRANSFORM 24
#define GR_SAVE_TRANSFORM 25
#define GR_RESTORE_TRANSFORM 26
#define GR_XFORM_1B 27
#define GR_XFORM_1C 28
#define GR_XFORM_1D 29
#define GR_XFORM_1E 30
#define GR_XFORM_1F 31
#define GR_DRAW_LINE 32
#define GR_DRAW_LINE_TO 33
#define GR_DRAW_REL_LINE_TO 34
#define GR_DRAW_HLINE 35
#define GR_DRAW_HLINE_TO 36
#define GR_DRAW_VLINE 37
#define GR_DRAW_VLINE_TO 38
#define GR_DRAW_POLYLINE 39
#define GR_DRAW_ARC 40
#define GR_DRAW_ARC_3POINT 41
#define GR_DRAW_ARC_3POINT_TO 42
#define GR_DRAW_REL_ARC_3POINT_TO 43
#define GR_DRAW_RECT 44
#define GR_DRAW_RECT_TO 45
#define GR_DRAW_ROUND_RECT 46
#define GR_DRAW_ROUND_RECT_TO 47
#define GR_DRAW_SPLINE 48
#define GR_DRAW_SPLINE_TO 49
#define GR_DRAW_CURVE 50
#define GR_DRAW_CURVE_TO 51
#define GR_DRAW_REL_CURVE_TO 52
#define GR_DRAW_ELLIPSE 53
#define GR_DRAW_POLYGON 54
#define GR_DRAW_POINT 55
#define GR_DRAW_POINT_CP 56
#define GR_BRUSH_POLYLINE 57
#define GR_DRAW_CHAR 58
#define GR_DRAW_CHAR_CP 59
#define GR_DRAW_TEXT 60
#define GR_DRAW_TEXT_CP 61
#define GR_DRAW_TEXT_FIELD 62
#define GR_DRAW_TEXT_PTR 63
#define GR_DRAW_TEXT_OPTR 64
#define GR_DRAW_PATH 65
#define GR_FILL_RECT 66
#define GR_FILL_RECT_TO 67
#define GR_FILL_ROUND_RECT 68
#define GR_FILL_ROUND_RECT_TO 69
#define GR_FILL_ARC 70
#define GR_FILL_POLYGON 71
#define GR_FILL_ELLIPSE 72
#define GR_FILL_PATH 73
#define GR_FILL_ARC_3POINT 74
#define GR_FILL_ARC_3POINT_TO 75
#define GR_FILL_BITMAP 76
#define GR_FILL_BITMAP_CP 77
#define GR_FILL_BITMAP_OPTR 78
#define GR_FILL_BITMAP_PTR 79
#define GR_DRAW_BITMAP 80
#define GR_DRAW_BITMAP_CP 81
#define GR_DRAW_BITMAP_OPTR 82
#define GR_DRAW_BITMAP_PTR 83
#define GSE_BITMAP_SLICE 84
#define GR_OUTPUT_55 85
#define GR_OUTPUT_56 86
#define GR_OUTPUT_57 87
#define GR_OUTPUT_58 88
#define GR_OUTPUT_59 89
#define GR_OUTPUT_5A 90
#define GR_OUTPUT_5B 91
#define GR_OUTPUT_5C 92
#define GR_OUTPUT_5D 93
#define GR_OUTPUT_5E 94
#define GR_OUTPUT_5F 95
#define GR_SAVE_STATE 96
#define GR_RESTORE_STATE 97
#define GR_SET_MIX_MODE 98
#define GR_MOVE_TO 99
#define GR_REL_MOVE_TO 100
#define GR_CREATE_PALETTE 101
#define GR_DESTROY_PALETTE 102
#define GR_SET_PALETTE_ENTRY 103
#define GR_SET_PALETTE 104
#define GR_SET_LINE_COLOR 105
#define GR_SET_LINE_MASK 106
#define GR_SET_LINE_COLOR_MAP 107
#define GR_SET_LINE_WIDTH 108
#define GR_SET_LINE_JOIN 109
#define GR_SET_LINE_END 110
#define GR_SET_LINE_ATTR 111
#define GR_SET_MITER_LIMIT 112
#define GR_SET_LINE_STYLE 113
#define GR_SET_LINE_COLOR_INDEX 114
#define GR_SET_CUSTOM_LINE_MASK 115
#define GR_SET_CUSTOM_LINE_STYLE 116
#define GR_SET_AREA_COLOR 117
#define GR_SET_AREA_MASK 118
#define GR_SET_AREA_COLOR_MAP 119
#define GR_SET_AREA_ATTR 120
#define GR_SET_AREA_COLOR_INDEX 121
#define GR_SET_CUSTOM_AREA_MASK 122
#define GR_SET_AREA_PATTERN 123
#define GR_SET_CUSTOM_AREA_PATTERN 124
#define GR_SET_TEXT_COLOR 125
#define GR_SET_TEXT_MASK 126
#define GR_SET_TEXT_COLOR_MAP 127
#define GR_SET_TEXT_STYLE 128
#define GR_SET_TEXT_MODE 129
#define GR_SET_TEXT_SPACE_PAD 130
#define GR_SET_TEXT_ATTR 131
#define GR_SET_FONT 132
#define GR_SET_TEXT_COLOR_INDEX 133
#define GR_SET_CUSTOM_TEXT_MASK 134
#define GR_SET_TRACK_KERN 135
#define GR_SET_FONT_WEIGHT 136
#define GR_SET_FONT_WIDTH 137
#define GR_SET_SUPERSCRIPT_ATTR 138
#define GR_SET_SUBSCRIPT_ATTR 139
#define GR_SET_TEXT_PATTERN 140
#define GR_SET_CUSTOM_TEXT_PATTERN 141
#define GR_MOVE_TO_WWFIXED 142
#define GR_ATTR_8F 143
#define GR_ATTR_90 144
#define GR_ATTR_91 145
#define GR_ATTR_92 146
#define GR_ATTR_93 147
#define GR_ATTR_94 148
#define GR_ATTR_95 149
#define GR_ATTR_96 150
#define GR_ATTR_97 151
#define GR_ATTR_98 152
#define GR_ATTR_99 153
#define GR_ATTR_9A 154
#define GR_ATTR_9B 155
#define GR_ATTR_9C 156
#define GR_ATTR_9D 157
#define GR_ATTR_9E 158
#define GR_ATTR_9F 159
#define GR_BEGIN_PATH 160
#define GR_END_PATH 161
#define GR_SET_CLIP_RECT 162
#define GR_SET_WIN_CLIP_RECT 163
#define GR_CLOSE_SUB_PATH 164
#define GR_SET_CLIP_PATH 165
#define GR_SET_WIN_CLIP_PATH 166
#define GR_SET_STROKE_PATH 167
#define GR_PATH_A8 168
#define GR_PATH_A9 169
#define GR_PATH_AA 170
#define GR_PATH_AB 171
#define GR_PATH_AC 172
#define GR_PATH_AD 173
#define GR_PATH_AE 174
#define GR_PATH_AF 175
#define NUM_GSTRING_CMDS 176
/***/
extern dword /* width << 16 */
_pascal GrCharWidth(GStateHandle gstate, word ch);
/***/
extern word /*XXX*/
_pascal GrTextWidth(GStateHandle gstate, const char *str, word size);
/***/
extern CharInfo /*XXX*/
_pascal GrGetCharInfo(GStateHandle gstate, word ch);
/***/
extern dword /* width << 16 */ /*XXX*/
_pascal GrTextWidthWWFixed(GStateHandle gstate, const char *str, word size);
/***/
extern MemHandle /*XXX*/
_pascal GrGetBitmap(GStateHandle gstate, sword x, sword y, word width,
word height, XYSize *sizeCopied);
/***/
extern RGBColorAsDWord /*XXX*/
_pascal GrGetPoint(GStateHandle gstate, sword x, sword y);
/***/
extern VMBlockHandle /*XXX*/
_pascal GrCreateBitmap(BMFormat initFormat, word initWidth, word initHeight,
VMFileHandle vmFile, optr exposureOD, GStateHandle *bmgs);
/***/
extern VMBlockHandle /*XXX*/
_pascal GrCreateBitmapRaw(BMFormat initFormat, word initWidth, word initHeight,
VMFileHandle vmFile);
/***/
extern GStateHandle /*XXX*/
_pascal GrEditBitmap(VMFileHandle vmFile, VMBlockHandle vmBlock, optr exposureOD);
/***/
extern VMBlockHandle /*XXX*/
_pascal GrCompactBitmap(VMFileHandle srcFile, VMBlockHandle srcBlock, VMFileHandle destFile);
/***/
extern VMBlockHandle /*XXX*/
_pascal GrUncompactBitmap(VMFileHandle srcFile, VMBlockHandle srcBlock, VMFileHandle destFile);
/***/
typedef ByteEnum BMDestroy;
#define BMD_KILL_DATA 0
#define BMD_LEAVE_DATA 1
extern void /*XXX*/
_pascal GrDestroyBitmap(GStateHandle gstate, BMDestroy flags);
/***/
typedef WordFlags BitmapMode;
#define BM_EDIT_MASK 0x0002
#define BM_CLUSTERED_DITHER 0x0001
extern void /*XXX*/
_pascal GrSetBitmapMode(GStateHandle gstate, word flags, MemHandle colorCorr);
/***/
extern word /*XXX*/
_pascal GrGetBitmapMode(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrSetBitmapRes(GStateHandle gstate, word xRes, word yRes);
/***/
extern XYValueAsDWord /*XXX*/
_pascal GrGetBitmapRes(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrClearBitmap(GStateHandle gstate);
/***/
extern XYValueAsDWord /*XXX*/
_pascal GrGetBitmapSize(const Bitmap *bm);
/***/
extern XYValueAsDWord
_pascal GrGetHugeBitmapSize(VMFileHandle vmFile, VMBlockHandle vmBlk);
/***/
extern void /*XXX*/
_pascal GrDrawRegion(GStateHandle gstate, sword xPos, sword yPos,
const Region *reg, word cxParam, word dxParam);
/***/
extern void /*XXX*/
_pascal GrDrawRegionAtCP(GStateHandle gstate, const Region *reg,
word axParam, word bxParam, word cxParam, word dxParam);
/***/
extern void /*XXX*/
_pascal GrMoveReg(Region *reg, sword xOffset, sword yOffset);
/***/
extern word /* returns region size */ /*XXX*/
_pascal GrGetPtrRegBounds(const Region *reg, Rectangle *bounds);
/***/
extern Boolean /*XXX*/
_pascal GrTestPointInReg(const Region *reg, word xPos, word yPos,
Rectangle *boundingRect);
/***/
typedef ByteEnum TestRectReturnType;
#define TRRT_OUT 0
#define TRRT_PARTIAL 1
#define TRRT_IN 2
extern TestRectReturnType /*XXX*/
_pascal GrTestRectInReg(const Region *reg, sword left, sword top,
sword right, sword bottom);
/***/
extern TestRectReturnType /*XXX*/
_pascal GrTestRectInMask(GStateHandle gstate, sword left, sword top,
sword right, sword bottom);
/***/
#define WWFIXED_OVERFLOW 0x80000000
extern WWFixedAsDWord
_pascal GrMulWWFixed(WWFixedAsDWord i, WWFixedAsDWord j);
/***/
extern void /*XXX*/
_pascal GrMulDWFixed(const DWFixed *i, const DWFixed *j, DWFixed *result);
/***/
extern WWFixedAsDWord /*XXX*/
_pascal GrSDivWWFixed(WWFixedAsDWord dividend, WWFixedAsDWord divisor);
/***/
extern WWFixedAsDWord
_pascal GrUDivWWFixed(WWFixedAsDWord dividend, WWFixedAsDWord divisor);
/***/
extern WWFixedAsDWord /*XXX*/
_pascal GrSqrRootWWFixed(WWFixedAsDWord i);
/***/
extern void /*XXX*/
_pascal GrSDivDWFbyWWF(const DWFixed *dividend,
const WWFixed *divisor,
DWFixed *quotient);
/***/
extern WWFixedAsDWord /*XXX*/
_pascal GrQuickSine(WWFixedAsDWord angle);
/***/
extern WWFixedAsDWord /*XXX*/
_pascal GrQuickCosine(WWFixedAsDWord angle);
/***/
extern WWFixedAsDWord /*XXX*/
_pascal GrQuickTangent(WWFixedAsDWord angle);
/***/
extern WWFixedAsDWord /*XXX*/
_pascal GrQuickArcSine(WWFixedAsDWord deltaYDivDistance, word origDeltaX);
/***/
extern GStateHandle
_pascal GrCreateState(WindowHandle win);
/***/
extern void
_pascal GrDestroyState(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrSetVMFile(GStateHandle gstate, VMFileHandle vmFile);
/***/
extern GStateHandle /*XXX*/
_pascal GrGetExclusive(GeodeHandle videoDriver);
/***/
extern void /*XXX*/
_pascal GrGrabExclusive(GeodeHandle videoDriver, GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrReleaseExclusive(GeodeHandle videoDriver, GStateHandle gstate,
Rectangle *bounds);
/***/
extern void /*XXX*/
_pascal GrTransformWWFixed(GStateHandle gstate, WWFixedAsDWord xPos,
WWFixedAsDWord yPos, PointWWFixed *deviceCoordinates);
/***/
extern void /*XXX*/
_pascal GrTransformDWFixed(GStateHandle gstate, PointDWFixed *coord);
/***/
extern void /*XXX*/
_pascal GrUntransformWWFixed(GStateHandle gstate,
WWFixedAsDWord xPos,
WWFixedAsDWord yPos,
PointWWFixed *documentCoordinates);
/***/
extern void /*XXX*/
_pascal GrUntransformDWFixed(GStateHandle gstate, PointDWFixed *coord);
/***/
typedef enum /* word */ {
BLTM_COPY,
BLTM_MOVE,
BLTM_CLEAR
} BLTMode;
extern void /*XXX*/
_pascal GrBitBlt(GStateHandle gstate, sword sourceX, sword sourceY, sword destX,
sword destY, word width, word height, BLTMode mode);
/***/
extern XYValueAsDWord /*XXX*/
_pascal GrTransform(GStateHandle gstate, sword xCoord, sword yCoord);
/***/
extern void /*XXX*/
_pascal GrTransformDWord(GStateHandle gstate, sdword xCoord,
sdword yCoord, PointDWord *deviceCoordinates);
/***/
extern XYValueAsDWord /*XXX*/
_pascal GrUntransform(GStateHandle gstate, sword xCoord, sword yCoord);
/***/
extern void /*XXX*/
_pascal GrUntransformDWord(GStateHandle gstate, sdword xCoord,
sdword yCoord, PointDWord *documentCoordinates);
/***/
extern RGBColorAsDWord /*XXX*/
_pascal GrMapColorIndex(GStateHandle gstate, Color c);
/***/
extern RGBColorAsDWord /*XXX*/
_pascal GrMapColorRGB(GStateHandle gstate, word red, word green, word blue,
Color _far *index);
/***/
typedef ByteEnum GetPalType;
#define GPT_ACTIVE 0
#define GPT_DEFAULT 1
extern MemHandle /*XXX*/
_pascal GrGetPalette(GStateHandle gstate, GetPalType flag);
/***/
extern void /*XXX*/
_pascal GrSetPrivateData(GStateHandle gstate, word dataAX, word dataBX,
word dataCX, word dataDX);
/***/
extern MixMode /*XXX*/
_pascal GrGetMixMode(GStateHandle gstate);
/***/
extern RGBColorAsDWord /*XXX*/
_pascal GrGetLineColor(GStateHandle gstate);
/***/
extern RGBColorAsDWord /*XXX*/
_pascal GrGetAreaColor(GStateHandle gstate);
/***/
extern RGBColorAsDWord /*XXX*/
_pascal GrGetTextColor(GStateHandle gstate);
/***/
typedef ByteEnum GetMaskType;
#define GMT_ENUM 0
#define GMT_BUFFER 1
extern word /* SysDrawMask */ /*XXX*/
_pascal GrGetLineMask(GStateHandle gstate, DrawMask *dm);
/***/
extern word /* SysDrawMask */ /*XXX*/
_pascal GrGetAreaMask(GStateHandle gstate, DrawMask *dm);
/***/
extern word /* SysDrawMask */ /*XXX*/
_pascal GrGetTextMask(GStateHandle gstate, DrawMask *dm);
/***/
extern word /* ColorMapMode */ /*XXX*/
_pascal GrGetLineColorMap(GStateHandle gstate);
/***/
extern word /* ColorMapMode */ /*XXX*/
_pascal GrGetAreaColorMap(GStateHandle gstate);
/***/
extern word /* ColorMapMode */ /*XXX*/
_pascal GrGetTextColorMap(GStateHandle gstate);
/***/
extern WWFixedAsDWord /*XXX*/
_pascal GrGetTextSpacePad(GStateHandle gstate);
/***/
extern word /* TextStyle */ /*XXX*/
_pascal GrGetTextStyle(GStateHandle gstate);
/***/
extern word /* TextDrawOffset */ /*XXX*/
_pascal GrGetTextDrawOffset(GStateHandle gstate);
/***/
extern word /* TextMode */ /*XXX*/
_pascal GrGetTextMode(GStateHandle gstate);
/***/
extern WWFixedAsDWord /*XXX*/
_pascal GrGetLineWidth(GStateHandle gstate);
/***/
extern LineEnd /*XXX*/
_pascal GrGetLineEnd(GStateHandle gstate);
/***/
extern LineJoin /*XXX*/
_pascal GrGetLineJoin(GStateHandle gstate);
/***/
extern LineStyle /*XXX*/
_pascal GrGetLineStyle(GStateHandle gstate);
/***/
extern WWFixedAsDWord /*XXX*/
_pascal GrGetMiterLimit(GStateHandle gstate);
/***/
extern XYValueAsDWord
_pascal GrGetCurPos(GStateHandle gstate);
/***/
extern void
_pascal GrGetCurPosWWFixed(GStateHandle gstate,
PointWWFixed _far *cp);
/***/
typedef enum /* word */ {
GIT_PRIVATE_DATA=0,
GIT_WINDOW=2,
GIT_PEN_POS=4
} GrInfoType;
extern void /*XXX*/
_pascal GrGetInfo(GStateHandle gstate, GrInfoType type, void *data);
/***/
extern void /*XXX*/
_pascal GrGetTransform(GStateHandle gstate, TransMatrix *tm);
/***/
extern FontID /*XXX*/
_pascal GrGetFont(GStateHandle gstate, WWFixedAsDWord *pointSize);
/***/
extern word /*XXX*/
_pascal GrGetTrackKern(GStateHandle gstate);
/***/
extern Boolean /*XXX*/
_pascal GrTestPointInPolygon(GStateHandle gstate, RegionFillRule rule, Point *list,
word numPoints, sword xCoord, sword yCoord);
/***/
typedef enum /* word */ {
GSET_NO_ERROR,
GSET_DISK_FULL
} GStringErrorType;
extern GStringErrorType /*XXX*/
_pascal GrEndGString(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrComment(GStateHandle gstate, const void *data, word size);
/***/
extern void /*XXX*/
_pascal GrNullOp(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrEscape(GStateHandle gstate, word code, const void *data, word size);
/***/
extern void /*XXX*/
_pascal GrSaveState(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrRestoreState(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrNewPage(GStateHandle gstate, PageEndCommand pageEndCommand);
/***/
extern void
_pascal GrApplyRotation(GStateHandle gstate, WWFixedAsDWord angle);
/***/
extern void /*XXX*/
_pascal GrApplyScale(GStateHandle gstate, WWFixedAsDWord xScale,
WWFixedAsDWord yScale);
/***/
extern void /*XXX*/
_pascal GrApplyTranslation(GStateHandle gstate, WWFixedAsDWord xTrans,
WWFixedAsDWord yTrans);
/***/
extern void /*XXX*/
_pascal GrApplyTranslationDWord(GStateHandle gstate, sdword xTrans, sdword yTrans);
/***/
extern void /*XXX*/
_pascal GrSetTransform(GStateHandle gstate, const TransMatrix *tm);
/***/
extern void /*XXX*/
_pascal GrApplyTransform(GStateHandle gstate, const TransMatrix *tm);
/***/
extern void /*XXX*/
_pascal GrSaveTransform(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrRestoreTransform(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrSetNullTransform(GStateHandle gstate);
/***/
extern void
_pascal GrDrawLine(GStateHandle gstate, sword x1, sword y1, sword x2, sword y2);
/***/
extern void /*XXX*/
_pascal GrDrawLineTo(GStateHandle gstate, sword x, sword y);
/***/
extern void
_pascal GrDrawRect(GStateHandle gstate, sword left, sword top, sword right,
sword bottom);
/***/
extern void /*XXX*/
_pascal GrDrawRectTo(GStateHandle gstate, sword x, sword y);
/***/
extern void /*XXX*/
_pascal GrDrawHLine(GStateHandle gstate, sword x1, sword y, sword x2);
/***/
extern void /*XXX*/
_pascal GrDrawHLineTo(GStateHandle gstate, sword x);
/***/
extern void /*XXX*/
_pascal GrDrawVLine(GStateHandle gstate, sword x, sword y1, sword y2);
/***/
extern void /*XXX*/
_pascal GrDrawVLineTo(GStateHandle gstate, sword y);
/***/
extern void /*XXX*/
_pascal GrDrawRoundRect(GStateHandle gstate, sword left, sword top, sword right,
sword bottom, word radius);
/***/
extern void /*XXX*/
_pascal GrDrawRoundRectTo(GStateHandle gstate, sword bottom, sword right,
word radius);
/***/
extern void /*XXX*/
_pascal GrDrawPoint(GStateHandle gstate, sword x, sword y);
/***/
extern void /*XXX*/
_pascal GrDrawPointAtCP(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrDrawBitmap(GStateHandle gstate, sword x, sword y, const Bitmap *bm,
PCB(Bitmap *, callback, (Bitmap *bm)));
/***/
extern void /*XXX*/
_pascal GrDrawBitmapAtCP(GStateHandle gstate, const Bitmap *bm,
PCB(Bitmap *, callback, (Bitmap *bm)));
/***/
extern void /*XXX*/
_pascal GrFillBitmap(GStateHandle gstate, sword x, sword y, const Bitmap *bm,
PCB(Bitmap *, callback, (Bitmap *bm)));
/***/
extern void /*XXX*/
_pascal GrFillBitmapAtCP(GStateHandle gstate, const Bitmap *bm,
PCB(Bitmap *, callback, (Bitmap *bm)));
/***/
extern void /*XXX*/
_pascal GrDrawHugeBitmap(GStateHandle gstate, sword x, sword y,
VMFileHandle vmFile, VMBlockHandle vmBlk);
/***/
extern void /*XXX*/
_pascal GrDrawHugeBitmapAtCP(GStateHandle gstate,
VMFileHandle vmFile, VMBlockHandle vmBlk);
/***/
extern void /*XXX*/
_pascal GrFillHugeBitmap(GStateHandle gstate, sword x, sword y,
VMFileHandle vmFile, VMBlockHandle vmBlk);
/***/
extern void /*XXX*/
_pascal GrFillHugeBitmapAtCP(GStateHandle gstate,
VMFileHandle vmFile, VMBlockHandle vmBlk);
/***/
extern void /*XXX*/
_pascal GrDrawImage(GStateHandle gstate, sword x, sword y, ImageFlags flags,
const Bitmap *bm);
/***/
extern void /*XXX*/
_pascal GrDrawHugeImage(GStateHandle gstate, sword x, sword y, ImageFlags flags,
VMFileHandle vmFile, VMBlockHandle vmBlk);
/***/
extern void /*XXX*/
_pascal GrDrawChar(GStateHandle gstate, sword x, sword y, word ch);
/***/
extern void /*XXX*/
_pascal GrDrawCharAtCP(GStateHandle gstate, word ch);
/***/
extern void
_pascal GrDrawText(GStateHandle gstate, sword x, sword y, const char *str,
word size);
/***/
extern void
_pascal GrDrawTextAtCP(GStateHandle gstate, const char *str, word size);
/***/
extern void /*XXX*/
_pascal GrDrawPolyline(GStateHandle gstate, const Point *points, word numPoints);
/***/
extern void /*XXX*/
_pascal GrBrushPolyline(GStateHandle gstate, const Point *points, word numPoints,
word brushH, word brushW);
/***/
extern void /*XXX*/
_pascal GrDrawEllipse(GStateHandle gstate, sword left, sword top,
sword right, sword bottom);
/***/
extern void /*XXX*/
_pascal GrDrawArc(GStateHandle gstate, sword left,
sword top, sword right, sword bottom,
word startAngle, word endAngle,
ArcCloseType closeType);
/***/
extern void /*XXX*/
_pascal GrDrawArc3Point (GStateHandle gstate,
const ThreePointArcParams *params);
/***/
extern void /*XXX*/
_pascal GrDrawArc3PointTo (GStateHandle gstate,
const ThreePointArcToParams *params);
/***/
extern void /*XXX*/
_pascal GrDrawRelArc3PointTo (GStateHandle gstate,
const ThreePointRelArcToParams *params);
/***/
extern void /*XXX*/
_pascal GrDrawPolygon(GStateHandle gstate, const Point *points, word numPoints);
/***/
extern void /*XXX*/
_pascal GrDrawSpline(GStateHandle gstate, const Point *points, word numPoints);
/***/
extern void /*XXX*/
_pascal GrDrawSplineTo(GStateHandle gstate, const Point *points, word numPoints);
/***/
extern void /*XXX*/
_pascal GrDrawCurve(GStateHandle gstate, const Point *points);
/***/
extern void /*XXX*/
_pascal GrDrawCurveTo(GStateHandle gstate, const Point *points);
/***/
extern void
_pascal GrFillRect(GStateHandle gstate, sword left, sword top, sword right,
sword bottom);
/***/
extern void /*XXX*/
_pascal GrFillRectTo(GStateHandle gstate, sword x, sword y);
/***/
extern void /*XXX*/
_pascal GrFillRoundRect(GStateHandle gstate, sword left, sword top, sword right,
sword bottom, word radius);
/***/
extern void /*XXX*/
_pascal GrFillRoundRectTo(GStateHandle gstate, sword right, sword bottom,
word radius);
/***/
extern void /*XXX*/
_pascal GrFillArc(GStateHandle gstate, sword left,
sword top, sword right, sword bottom,
word startAngle, word endAngle,
ArcCloseType closeType);
/***/
extern void /*XXX*/
_pascal GrFillArc3Point (GStateHandle gstate,
const ThreePointArcParams *params);
/***/
extern void /*XXX*/
_pascal GrFillArc3PointTo (GStateHandle gstate,
const ThreePointArcToParams *params);
/***/
extern void
_pascal GrFillPolygon(GStateHandle gstate, RegionFillRule windingRule,
const Point *points, word numPoints);
/***/
extern void
_pascal GrFillEllipse(GStateHandle gstate, sword left, sword top, sword right,
sword bottom);
/***/
extern void /*XXX*/
_pascal GrSetMixMode(GStateHandle gstate, MixMode mode);
/***/
extern void /*XXX*/
_pascal GrRelMoveTo(GStateHandle gstate, WWFixedAsDWord x, WWFixedAsDWord y);
/***/
extern void /*XXX*/
_pascal GrMoveToWWFixed(GStateHandle gstate, WWFixedAsDWord x, WWFixedAsDWord y);
/***/
extern void /*XXX*/
_pascal GrDrawRelLineTo(GStateHandle gstate, WWFixedAsDWord x, WWFixedAsDWord y);
/***/
extern void
_pascal GrMoveTo(GStateHandle gstate, sword x, sword y);
/***/
extern void
_pascal GrSetLineColor(GStateHandle gstate, ColorFlag flag, word redOrIndex,
word green, word blue);
/***/
extern void /*XXX*/
_pascal GrSetLineMaskSys(GStateHandle gstate, word sysDM);
extern void /*XXX*/
_pascal GrSetLineMaskCustom(GStateHandle gstate, const DrawMask *dm);
/***/
extern void /*XXX*/
_pascal GrSetLineColorMap(GStateHandle gstate, word colorMap);
/***/
extern void
_pascal GrSetLineWidth(GStateHandle gstate, WWFixedAsDWord width);
/***/
extern void /*XXX*/
_pascal GrSetLineJoin(GStateHandle gstate, LineJoin join);
/***/
extern void /*XXX*/
_pascal GrSetLineEnd(GStateHandle gstate, LineEnd end);
/***/
typedef struct {
byte LA_colorFlag;
RGBValue LA_color;
SystemDrawMask LA_mask;
ColorMapMode LA_mapMode;
LineEnd LA_end;
LineJoin LA_join;
LineStyle LA_style;
WWFixed LA_width;
} LineAttr;
extern void /*XXX*/
_pascal GrSetLineAttr(GStateHandle gstate, const LineAttr *la);
/***/
extern void /*XXX*/
_pascal GrSetMiterLimit(GStateHandle gstate, WWFixedAsDWord limit);
/***/
extern void /*XXX*/
_pascal GrSetLineStyle(GStateHandle gstate, LineStyle style, word skipDistance,
const DashPairArray *dpa, word numPairs);
/***/
extern void
_pascal GrSetAreaColor(GStateHandle gstate, ColorFlag flag, word redOrIndex,
word green, word blue);
/***/
extern void /*XXX*/
_pascal GrSetAreaMaskSys(GStateHandle gstate, word sysDM);
extern void /*XXX*/
_pascal GrSetAreaMaskCustom(GStateHandle gstate, const DrawMask *dm);
/***/
extern void /*XXX*/
_pascal GrSetAreaColorMap(GStateHandle gstate, word colorMap);
/***/
typedef struct {
byte AA_colorFlag;
RGBValue AA_color;
SystemDrawMask AA_mask;
ColorMapMode AA_mapMode;
} AreaAttr;
extern void /*XXX*/
_pascal GrSetAreaAttr(GStateHandle gstate, const AreaAttr *aa);
/***/
extern void
_pascal GrSetTextColor(GStateHandle gstate, ColorFlag flag, word redOrIndex,
word green, word blue);
/***/
extern void /*XXX*/
_pascal GrSetTextMaskSys(GStateHandle gstate, SysDrawMask sysDM);
extern void /*XXX*/
_pascal GrSetTextMaskCustom(GStateHandle gstate, const DrawMask *dm);
/***/
extern void /*XXX*/
_pascal GrSetTextColorMap(GStateHandle gstate, word colorMap);
/***/
extern void /*XXX*/
_pascal GrSetTextStyle(GStateHandle gstate, TextStyle bitsToSet,
TextStyle bitsToClear);
/***/
extern void /*XXX*/
_pascal GrSetTextMode(GStateHandle gstate, TextMode bitsToSet,
TextMode bitsToClear);
/***/
extern void /*XXX*/
_pascal GrSetTextDrawOffset(GStateHandle gstate, word numToDraw);
/***/
extern void /*XXX*/
_pascal GrSetTextSpacePad(GStateHandle gstate, WWFixedAsDWord padding);
/***/
typedef struct {
ColorQuad TA_color;
SystemDrawMask TA_mask;
GraphicPattern TA_pattern;
TextStyle TA_styleSet;
TextStyle TA_styleClear;
TextMode TA_modeSet;
TextMode TA_modeClear;
WBFixed TA_spacePad;
FontID TA_font;
WBFixed TA_size;
sword TA_trackKern;
FontWeight TA_fontWeight;
FontWidth TA_fontWidth;
} TextAttr;
extern void /*XXX*/
_pascal GrSetTextAttr(GStateHandle gstate, const TextAttr *ta);
/***/
extern void
_pascal GrSetFont(GStateHandle gstate, FontID id, WWFixedAsDWord pointSize);
/***/
extern void /*XXX*/
_pascal GrSetGStringBounds(GStateHandle gstate, sword left, sword top,
sword right, sword bottom);
/***/
extern word /*XXX*/
_pascal GrCreatePalette(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrDestroyPalette(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrSetPaletteEntry(GStateHandle gstate, word index, word red, word green,
word blue);
/***/
extern void /*XXX*/
_pascal GrSetPalette(GStateHandle gstate, const RGBValue *buffer,
word index, word numEntries);
/***/
extern void /*XXX*/
_pascal GrSetTrackKern(GStateHandle gstate, word tk);
/***/
extern void /*XXX*/
_pascal GrInitDefaultTransform(GStateHandle gstate);
/***/
extern void /*XXX*/
_pascal GrSetDefaultTransform(GStateHandle gstate);
/***/
/*
* Should not be needed anymore
#define SACRF_REPLACE 0x8000
#define SACRF_NULL 0x2000
#define SACRF_RECT 0x1000
*/
typedef enum /* word */ {
PCT_NULL,
PCT_REPLACE,
PCT_UNION,
PCT_INTERSECTION
} PathCombineType;
extern void /*XXX*/
_pascal GrSetClipRect(GStateHandle gstate, PathCombineType flags,
sword left, sword top, sword right, sword bottom);
/***/
extern void /*XXX*/
_pascal GrSetWinClipRect(GStateHandle gstate, PathCombineType flags,
sword left, sword top, sword right, sword bottom);
/***/
extern void /*XXX*/
_pascal GrBeginPath(GStateHandle gstate, PathCombineType params);
extern void /*XXX*/
_pascal GrEndPath(GStateHandle gstate);
extern void /*XXX*/
_pascal GrCloseSubPath(GStateHandle gstate);
extern void /*XXX*/
_pascal GrSetClipPath(GStateHandle gstate, PathCombineType params,
RegionFillRule rule);
extern void /*XXX*/
_pascal GrSetWinClipPath(GStateHandle gstate,PathCombineType params,
RegionFillRule rule);
extern void /*XXX*/
_pascal GrFillPath(GStateHandle gstate, RegionFillRule rule);
extern void /*XXX*/
_pascal GrDrawPath(GStateHandle gstate);
extern void /*XXX*/
_pascal GrSetStrokePath(GStateHandle gstate);
typedef enum /* word */ {
GPT_CURRENT,
GPT_CLIP,
GPT_WIN_CLIP
} GetPathType;
extern Boolean /*XXX*/
_pascal GrGetPathBounds(GStateHandle gstate,GetPathType ptype,Rectangle *bounds);
extern Boolean /*XXX*/
_pascal GrGetPathBoundsDWord(GStateHandle gstate,GetPathType ptype,RectDWord *bounds);
extern Boolean /*XXX*/
_pascal GrTestPath(GStateHandle gstate,GetPathType ptype);
extern void /*XXX*/
_pascal GrInvalRect(GStateHandle gstate, sword left, sword top, sword right,
sword bottom);
extern void /*XXX*/
_pascal GrInvalRectDWord(GStateHandle gstate, const RectDWord *bounds);
extern void /*XXX*/
_pascal GrGetWinBoundsDWord(GStateHandle gstate, RectDWord *bounds);
extern Boolean /*XXX*/
_pascal GrGetMaskBoundsDWord(GStateHandle gstate, RectDWord *bounds);
extern Boolean /*XXX*/
_pascal GrGetWinBounds(GStateHandle gstate, Rectangle *bounds);
extern Boolean /*XXX*/
_pascal GrGetMaskBounds(GStateHandle gstate, Rectangle *bounds);
extern WindowHandle /*XXX*/
_pascal GrGetWinHandle(GStateHandle gstate);
extern Handle /*XXX*/
_pascal GrGetGStringHandle(GStateHandle gstate);
extern void /*XXX*/
_pascal GrSetVMFile(GStateHandle gstate, VMFileHandle vmFile);
extern Boolean /*XXX*/
_pascal GrTestPointInPath(GStateHandle gstate, word xPos, word yPos,
RegionFillRule rule);
extern MemHandle /*XXX*/
_pascal GrGetPath(GStateHandle gstate, GetPathType ptype);
extern Boolean /*XXX*/
_pascal GrTestPath(GStateHandle gstate, GetPathType ptype);
extern MemHandle /*XXX*/
_pascal GrGetPathPoints(GStateHandle gstate, word resolution);
extern MemHandle /*XXX*/
_pascal GrGetPathRegion(GStateHandle gstate, RegionFillRule rule);
extern MemHandle /*XXX*/
_pascal GrGetClipRegion(GStateHandle gstate, RegionFillRule rule);
extern void /*XXX*/
_pascal GrSetAreaPattern (GStateHandle gstate, GraphicPattern pattern);
extern void /*XXX*/
_pascal GrSetCustomAreaPattern (GStateHandle gstate, GraphicPattern pattern,
const void *patternData, word patternSize);
extern void /*XXX*/
_pascal GrSetTextPattern (GStateHandle gstate, GraphicPattern pattern);
extern void /*XXX*/
_pascal GrSetCustomTextPattern (GStateHandle gstate, GraphicPattern pattern,
const void *patternData);
extern GraphicPattern /*XXX*/
_pascal GrGetAreaPattern (GStateHandle gstate,
const MemHandle *customPattern, word *customSize);
extern GraphicPattern /*XXX*/
_pascal GrGetTextPattern (GStateHandle gstate,
const MemHandle *customPattern, word *customSize);
extern Boolean
_pascal GrGetTextBounds(GStateHandle gstate, const char _far *str,
word xpos, word ypos,
word count, Rectangle *bounds);
extern void
_pascal GrSetTextDirection(GStateHandle gstate, TextDirection dir) ;
#ifdef __HIGHC__
pragma Alias(GrCharWidth, "GRCHARWIDTH");
pragma Alias(GrTextWidth, "GRTEXTWIDTH");
pragma Alias(GrGetCharInfo, "GRGETCHARINFO");
pragma Alias(GrTextWidthWWFixed, "GRTEXTWIDTHWWFIXED");
pragma Alias(GrGetBitmap, "GRGETBITMAP");
pragma Alias(GrGetPoint, "GRGETPOINT");
pragma Alias(GrCreateBitmap, "GRCREATEBITMAP");
pragma Alias(GrEditBitmap, "GREDITBITMAP");
pragma Alias(GrCompactBitmap, "GRCOMPACTBITMAP");
pragma Alias(GrUncompactBitmap, "GRUNCOMPACTBITMAP");
pragma Alias(GrDestroyBitmap, "GRDESTROYBITMAP");
pragma Alias(GrSetBitmapMode, "GRSETBITMAPMODE");
pragma Alias(GrGetBitmapMode, "GRGETBITMAPMODE");
pragma Alias(GrSetBitmapRes, "GRSETBITMAPRES");
pragma Alias(GrGetBitmapRes, "GRGETBITMAPRES");
pragma Alias(GrClearBitmap, "GRCLEARBITMAP");
pragma Alias(GrGetBitmapSize, "GRGETBITMAPSIZE");
pragma Alias(GrGetHugeBitmapSize, "GRGETHUGEBITMAPSIZE");
pragma Alias(GrDrawRegion, "GRDRAWREGION");
pragma Alias(GrDrawRegionAtCP, "GRDRAWREGIONATCP");
pragma Alias(GrMoveReg, "GRMOVEREG");
pragma Alias(GrGetPtrRegBounds, "GRGETPTRREGBOUNDS");
pragma Alias(GrTestPointInReg, "GRTESTPOINTINREG");
pragma Alias(GrTestRectInReg, "GRTESTRECTINREG");
pragma Alias(GrTestRectInMask, "GRTESTRECTINMASK");
pragma Alias(GrMulWWFixed, "GRMULWWFIXED");
pragma Alias(GrMulDWFixed, "GRMULDWFIXED");
pragma Alias(GrSDivWWFixed, "GRSDIVWWFIXED");
pragma Alias(GrUDivWWFixed, "GRUDIVWWFIXED");
pragma Alias(GrSqrRootWWFixed, "GRSQRROOTWWFIXED");
pragma Alias(GrSDivDWFbyWWF, "GRSDIVDWFBYWWF");
pragma Alias(GrQuickSine, "GRQUICKSINE");
pragma Alias(GrQuickCosine, "GRQUICKCOSINE");
pragma Alias(GrQuickTangent, "GRQUICKTANGENT");
pragma Alias(GrQuickArcSine, "GRQUICKARCSINE");
pragma Alias(GrCreateState, "GRCREATESTATE");
pragma Alias(GrDestroyState, "GRDESTROYSTATE");
pragma Alias(GrSetVMFile, "GRSETVMFILE");
pragma Alias(GrGetExclusive, "GRGETEXCLUSIVE");
pragma Alias(GrGrabExclusive, "GRGRABEXCLUSIVE");
pragma Alias(GrReleaseExclusive, "GRRELEASEEXCLUSIVE");
pragma Alias(GrTransformWWFixed, "GRTRANSFORMWWFIXED");
pragma Alias(GrTransformDWFixed, "GRTRANSFORMDWFIXED");
pragma Alias(GrUntransformWWFixed, "GRUNTRANSFORMWWFIXED");
pragma Alias(GrUntransformDWFixed, "GRUNTRANSFORMDWFIXED");
pragma Alias(GrBitBlt, "GRBITBLT");
pragma Alias(GrTransform, "GRTRANSFORM");
pragma Alias(GrTransformDWord, "GRTRANSFORMDWORD");
pragma Alias(GrUntransform, "GRUNTRANSFORM");
pragma Alias(GrUntransformDWord, "GRUNTRANSFORMDWORD");
pragma Alias(GrMapColorIndex, "GRMAPCOLORINDEX");
pragma Alias(GrMapColorRGB, "GRMAPCOLORRGB");
pragma Alias(GrGetPalette, "GRGETPALETTE");
pragma Alias(GrSetPrivateData, "GRSETPRIVATEDATA");
pragma Alias(GrGetMixMode, "GRGETMIXMODE");
pragma Alias(GrGetLineColor, "GRGETLINECOLOR");
pragma Alias(GrGetAreaColor, "GRGETAREACOLOR");
pragma Alias(GrGetTextColor, "GRGETTEXTCOLOR");
pragma Alias(GrGetLineMask, "GRGETLINEMASK");
pragma Alias(GrGetAreaMask, "GRGETAREAMASK");
pragma Alias(GrGetTextMask, "GRGETTEXTMASK");
pragma Alias(GrGetLineColorMap, "GRGETLINECOLORMAP");
pragma Alias(GrGetAreaColorMap, "GRGETAREACOLORMAP");
pragma Alias(GrGetTextColorMap, "GRGETTEXTCOLORMAP");
pragma Alias(GrGetTextSpacePad, "GRGETTEXTSPACEPAD");
pragma Alias(GrGetTextStyle, "GRGETTEXTSTYLE");
pragma Alias(GrGetTextDrawOffset, "GRGETTEXTDRAWOFFSET");
pragma Alias(GrGetTextMode, "GRGETTEXTMODE");
pragma Alias(GrGetLineWidth, "GRGETLINEWIDTH");
pragma Alias(GrGetLineEnd, "GRGETLINEEND");
pragma Alias(GrGetLineJoin, "GRGETLINEJOIN");
pragma Alias(GrGetLineStyle, "GRGETLINESTYLE");
pragma Alias(GrGetMiterLimit, "GRGETMITERLIMIT");
pragma Alias(GrGetCurPos, "GRGETCURPOS");
pragma Alias(GrGetCurPosWWFixed, "GRGETCURPOSWWFIXED");
pragma Alias(GrGetInfo, "GRGETINFO");
pragma Alias(GrGetTransform, "GRGETTRANSFORM");
pragma Alias(GrGetFont, "GRGETFONT");
pragma Alias(GrTestPointInPolygon, "GRTESTPOINTINPOLYGON");
pragma Alias(GrEndGString, "GRENDGSTRING");
pragma Alias(GrComment, "GRCOMMENT");
pragma Alias(GrNullOp, "GRNULLOP");
pragma Alias(GrEscape, "GRESCAPE");
pragma Alias(GrSaveState, "GRSAVESTATE");
pragma Alias(GrRestoreState, "GRRESTORESTATE");
pragma Alias(GrNewPage, "GRNEWPAGE");
pragma Alias(GrApplyRotation, "GRAPPLYROTATION");
pragma Alias(GrApplyScale, "GRAPPLYSCALE");
pragma Alias(GrApplyTranslation, "GRAPPLYTRANSLATION");
pragma Alias(GrApplyTranslationDWord, "GRAPPLYTRANSLATIONDWORD");
pragma Alias(GrSetTransform, "GRSETTRANSFORM");
pragma Alias(GrApplyTransform, "GRAPPLYTRANSFORM");
pragma Alias(GrSaveTransform, "GRSAVETRANSFORM");
pragma Alias(GrRestoreTransform, "GRRESTORETRANSFORM");
pragma Alias(GrSetNullTransform, "GRSETNULLTRANSFORM");
pragma Alias(GrDrawLine, "GRDRAWLINE");
pragma Alias(GrDrawLineTo, "GRDRAWLINETO");
pragma Alias(GrDrawRelLineTo, "GRDRAWRELLINETO");
pragma Alias(GrDrawRect, "GRDRAWRECT");
pragma Alias(GrDrawRectTo, "GRDRAWRECTTO");
pragma Alias(GrDrawHLine, "GRDRAWHLINE");
pragma Alias(GrDrawHLineTo, "GRDRAWHLINETO");
pragma Alias(GrDrawVLine, "GRDRAWVLINE");
pragma Alias(GrDrawVLineTo, "GRDRAWVLINETO");
pragma Alias(GrDrawRoundRect, "GRDRAWROUNDRECT");
pragma Alias(GrDrawRoundRectTo, "GRDRAWROUNDRECTTO");
pragma Alias(GrDrawPoint, "GRDRAWPOINT");
pragma Alias(GrDrawPointAtCP, "GRDRAWPOINTATCP");
pragma Alias(GrDrawBitmap, "GRDRAWBITMAP");
pragma Alias(GrDrawBitmapAtCP, "GRDRAWBITMAPATCP");
pragma Alias(GrDrawChar, "GRDRAWCHAR");
pragma Alias(GrDrawCharAtCP, "GRDRAWCHARATCP");
pragma Alias(GrDrawText, "GRDRAWTEXT");
pragma Alias(GrDrawTextAtCP, "GRDRAWTEXTATCP");
pragma Alias(GrDrawPolyline, "GRDRAWPOLYLINE");
pragma Alias(GrDrawEllipse, "GRDRAWELLIPSE");
pragma Alias(GrDrawArc, "GRDRAWARC");
pragma Alias(GrDrawArc3Point, "GRDRAWARC3POINT");
pragma Alias(GrDrawArc3PointTo, "GRDRAWARC3POINTTO");
pragma Alias(GrDrawRelArc3PointTo, "GRDRAWRELARC3POINTTO");
pragma Alias(GrDrawSpline, "GRDRAWSPLINE");
pragma Alias(GrDrawSplineTo, "GRDRAWSPLINETO");
pragma Alias(GrDrawCurve, "GRDRAWCURVE");
pragma Alias(GrDrawCurveTo, "GRDRAWCURVETO");
pragma Alias(GrDrawPolygon, "GRDRAWPOLYGON");
pragma Alias(GrFillRect, "GRFILLRECT");
pragma Alias(GrFillRectTo, "GRFILLRECTTO");
pragma Alias(GrFillRoundRect, "GRFILLROUNDRECT");
pragma Alias(GrFillRoundRectTo, "GRFILLROUNDRECTTO");
pragma Alias(GrFillArc, "GRFILLARC");
pragma Alias(GrFillArc3Point, "GRFILLARC3POINT");
pragma Alias(GrFillArc3PointTo, "GRFILLARC3POINTTO");
pragma Alias(GrFillPolygon, "GRFILLPOLYGON");
pragma Alias(GrFillEllipse, "GRFILLELLIPSE");
pragma Alias(GrSetMixMode, "GRSETMIXMODE");
pragma Alias(GrRelMoveTo, "GRRELMOVETO");
pragma Alias(GrMoveTo, "GRMOVETO");
pragma Alias(GrSetLineColor, "GRSETLINECOLOR");
pragma Alias(GrSetLineMaskSys, "GRSETLINEMASKSYS");
pragma Alias(GrSetLineMaskCustom, "GRSETLINEMASKCUSTOM");
pragma Alias(GrSetLineColorMap, "GRSETLINECOLORMAP");
pragma Alias(GrSetLineWidth, "GRSETLINEWIDTH");
pragma Alias(GrSetLineJoin, "GRSETLINEJOIN");
pragma Alias(GrSetLineEnd, "GRSETLINEEND");
pragma Alias(GrSetLineAttr, "GRSETLINEATTR");
pragma Alias(GrSetMiterLimit, "GRSETMITERLIMIT");
pragma Alias(GrSetLineStyle, "GRSETLINESTYLE");
pragma Alias(GrSetAreaColor, "GRSETAREACOLOR");
pragma Alias(GrSetAreaMaskSys, "GRSETAREAMASKSYS");
pragma Alias(GrSetAreaMaskCustom, "GRSETAREAMASKCUSTOM");
pragma Alias(GrSetAreaColorMap, "GRSETAREACOLORMAP");
pragma Alias(GrSetAreaAttr, "GRSETAREAATTR");
pragma Alias(GrSetTextColor, "GRSETTEXTCOLOR");
pragma Alias(GrSetTextMaskSys, "GRSETTEXTMASKSYS");
pragma Alias(GrSetTextMaskCustom, "GRSETTEXTMASKCUSTOM");
pragma Alias(GrSetTextColorMap, "GRSETTEXTCOLORMAP");
pragma Alias(GrSetTextStyle, "GRSETTEXTSTYLE");
pragma Alias(GrSetTextMode, "GRSETTEXTMODE");
pragma Alias(GrSetTextDrawOffset, "GRSETTEXTDRAWOFFSET");
pragma Alias(GrSetTextSpacePad, "GRSETTEXTSPACEPAD");
pragma Alias(GrSetTextAttr, "GRSETTEXTATTR");
pragma Alias(GrSetFont, "GRSETFONT");
pragma Alias(GrSetGStringBounds, "GRSETGSTRINGBOUNDS");
pragma Alias(GrCreatePalette, "GRCREATEPALETTE");
pragma Alias(GrDestroyPalette, "GRDESTROYPALETTE");
pragma Alias(GrSetPaletteEntry, "GRSETPALETTEENTRY");
pragma Alias(GrSetPalette, "GRSETPALETTE");
pragma Alias(GrSetTrackKern, "GRSETTRACKKERN");
pragma Alias(GrInitDefaultTransform, "GRINITDEFAULTTRANSFORM");
pragma Alias(GrSetDefaultTransform, "GRSETDEFAULTTRANSFORM");
pragma Alias(GrSetClipRect, "GRSETCLIPRECT");
pragma Alias(GrSetWinClipRect, "GRSETWINCLIPRECT");
pragma Alias(GrBeginPath, "GRBEGINPATH");
pragma Alias(GrEndPath, "GRENDPATH");
pragma Alias(GrCloseSubPath, "GRCLOSESUBPATH");
pragma Alias(GrSetClipPath, "GRSETCLIPPATH");
pragma Alias(GrSetWinClipPath, "GRSETWINCLIPPATH");
pragma Alias(GrFillPath, "GRFILLPATH");
pragma Alias(GrDrawPath, "GRDRAWPATH");
pragma Alias(GrSetStrokePath, "GRSETSTROKEPATH");
pragma Alias(GrTestPointInPath, "GRTESTPOINTINPATH");
pragma Alias(GrGetPath, "GRGETPATH");
pragma Alias(GrTestPath, "GRTESTPATH");
pragma Alias(GrGetPathBounds, "GRGETPATHBOUNDS");
pragma Alias(GrGetPathBoundsDWord, "GRGETPATHBOUNDSDWORD");
pragma Alias(GrGetPathPoints, "GRGETPATHPOINTS");
pragma Alias(GrGetPathRegion, "GRGETPATHREGION");
pragma Alias(GrGetClipRegion, "GRGETCLIPREGION");
pragma Alias(GrInvalRect, "GRINVALRECT");
pragma Alias(GrInvalRectDWord, "GRINVALRECTDWORD");
pragma Alias(GrGetWinBoundsDWord, "GRGETWINBOUNDSDWORD");
pragma Alias(GrGetMaskBoundsDWord, "GRGETMASKBOUNDSDWORD");
pragma Alias(GrGetWinBounds, "GRGETWINBOUNDS");
pragma Alias(GrGetMaskBounds, "GRGETMASKBOUNDS");
pragma Alias(GrGetWinHandle, "GRGETWINHANDLE");
pragma Alias(GrBrushPolyline, "GRBRUSHPOLYLINE");
pragma Alias(GrFillBitmap, "GRFILLBITMAP");
pragma Alias(GrFillBitmapAtCP, "GRFILLBITMAPATCP");
pragma Alias(GrGetTrackKern, "GRGETTRACKKERN");
pragma Alias(GrSetAreaPattern, "GRSETAREAPATTERN");
pragma Alias(GrSetCustomAreaPattern, "GRSETCUSTOMAREAPATTERN");
pragma Alias(GrSetTextPattern, "GRSETTEXTPATTERN");
pragma Alias(GrSetCustomTextPattern, "GRSETCUSTOMTEXTPATTERN");
pragma Alias(GrGetAreaPattern, "GRGETAREAPATTERN");
pragma Alias(GrGetTextPattern, "GRGETTEXTPATTERN");
pragma Alias(GrGetTextBounds, "GRGETTEXTBOUNDS");
pragma Alias(GrDrawHugeBitmap, "GRDRAWHUGEBITMAP");
pragma Alias(GrDrawHugeBitmapAtCP, "GRDRAWHUGEBITMAPATCP");
pragma Alias(GrFillHugeBitmap, "GRFILLHUGEBITMAP");
pragma Alias(GrFillHugeBitmapAtCP, "GRFILLHUGEBITMAPATCP");
pragma Alias(GrDrawImage, "GRDRAWIMAGE");
pragma Alias(GrDrawHugeImage, "GRDRAWHUGEIMAGE");
pragma Alias(GrMoveToWWFixed, "GRMOVETOWWFIXED");
pragma Alias(GrGetGStringHandle, "GRGETGSTRINGHANDLE");
#endif
#endif
| 25.806942 | 100 | 0.713738 |
ecc9d1875363c6417a83fa19212ceb3cb3d5ed42 | 503 | h | C | bsp/stm32/stm32f407-atk-explorer/applications/get_matrix.h | morninf/matrix_show | fbc634432c80b8cb44e2de5bbb74d26dbe409ffb | [
"Apache-2.0"
] | 1 | 2020-09-17T09:40:47.000Z | 2020-09-17T09:40:47.000Z | bsp/stm32/stm32f407-atk-explorer/applications/get_matrix.h | morninf/matrix_show | fbc634432c80b8cb44e2de5bbb74d26dbe409ffb | [
"Apache-2.0"
] | null | null | null | bsp/stm32/stm32f407-atk-explorer/applications/get_matrix.h | morninf/matrix_show | fbc634432c80b8cb44e2de5bbb74d26dbe409ffb | [
"Apache-2.0"
] | null | null | null | #ifndef _GET_MATRIX_H_
#define _GET_MATRIX_H_
#include <rtthread.h>
enum
{
code_type_utf8,
code_type_unicode,
code_type_gbk
};
#define ASC_FLASH_ADDRESS ((uint32_t)0x08080000)
#define FONT_FLASH_ADDRESS ((uint32_t)0x080A0000)
#define H2K16_FLASH_ADDRESS ((uint32_t)0x080C0000)
void get_matrix(int type,uint8_t *data_in,int len);
/*
#define ASC_FLASH_ADDRESS ADDR_FLASH_SECTOR_8
#define FONT_FLASH_ADDRESS ADDR_FLASH_SECTOR_9
#define H2K16_FLASH_ADDRESS ADDR_FLASH_SECTOR_10
*/
#endif
| 17.964286 | 51 | 0.807157 |
ecc9e9fc331d6a30dfe748e95bf542e78bb53225 | 2,794 | c | C | kernel/linux-5.4/drivers/mfd/ucb1x00-assabet.c | josehu07/SplitFS | d7442fa67a17de7057664f91defbfdbf10dd7f4a | [
"Apache-2.0"
] | 31 | 2021-04-27T08:50:40.000Z | 2022-03-01T02:26:21.000Z | kernel/linux-5.4/drivers/mfd/ucb1x00-assabet.c | josehu07/SplitFS | d7442fa67a17de7057664f91defbfdbf10dd7f4a | [
"Apache-2.0"
] | 13 | 2021-07-10T04:36:17.000Z | 2022-03-03T10:50:05.000Z | kernel/linux-5.4/drivers/mfd/ucb1x00-assabet.c | josehu07/SplitFS | d7442fa67a17de7057664f91defbfdbf10dd7f4a | [
"Apache-2.0"
] | 12 | 2021-04-06T02:23:10.000Z | 2022-02-28T11:43:19.000Z | // SPDX-License-Identifier: GPL-2.0-only
/*
* linux/drivers/mfd/ucb1x00-assabet.c
*
* Copyright (C) 2001-2003 Russell King, All Rights Reserved.
*
* We handle the machine-specific bits of the UCB1x00 driver here.
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/fs.h>
#include <linux/gpio_keys.h>
#include <linux/input.h>
#include <linux/platform_device.h>
#include <linux/proc_fs.h>
#include <linux/mfd/ucb1x00.h>
#define UCB1X00_ATTR(name,input)\
static ssize_t name##_show(struct device *dev, struct device_attribute *attr, \
char *buf) \
{ \
struct ucb1x00 *ucb = classdev_to_ucb1x00(dev); \
int val; \
ucb1x00_adc_enable(ucb); \
val = ucb1x00_adc_read(ucb, input, UCB_NOSYNC); \
ucb1x00_adc_disable(ucb); \
return sprintf(buf, "%d\n", val); \
} \
static DEVICE_ATTR(name,0444,name##_show,NULL)
UCB1X00_ATTR(vbatt, UCB_ADC_INP_AD1);
UCB1X00_ATTR(vcharger, UCB_ADC_INP_AD0);
UCB1X00_ATTR(batt_temp, UCB_ADC_INP_AD2);
static int ucb1x00_assabet_add(struct ucb1x00_dev *dev)
{
struct ucb1x00 *ucb = dev->ucb;
struct platform_device *pdev;
struct gpio_keys_platform_data keys;
static struct gpio_keys_button buttons[6];
unsigned i;
memset(buttons, 0, sizeof(buttons));
memset(&keys, 0, sizeof(keys));
for (i = 0; i < ARRAY_SIZE(buttons); i++) {
buttons[i].code = BTN_0 + i;
buttons[i].gpio = ucb->gpio.base + i;
buttons[i].type = EV_KEY;
buttons[i].can_disable = true;
}
keys.buttons = buttons;
keys.nbuttons = ARRAY_SIZE(buttons);
keys.poll_interval = 50;
keys.name = "ucb1x00";
pdev = platform_device_register_data(&ucb->dev, "gpio-keys", -1,
&keys, sizeof(keys));
device_create_file(&ucb->dev, &dev_attr_vbatt);
device_create_file(&ucb->dev, &dev_attr_vcharger);
device_create_file(&ucb->dev, &dev_attr_batt_temp);
dev->priv = pdev;
return 0;
}
static void ucb1x00_assabet_remove(struct ucb1x00_dev *dev)
{
struct platform_device *pdev = dev->priv;
if (!IS_ERR(pdev))
platform_device_unregister(pdev);
device_remove_file(&dev->ucb->dev, &dev_attr_batt_temp);
device_remove_file(&dev->ucb->dev, &dev_attr_vcharger);
device_remove_file(&dev->ucb->dev, &dev_attr_vbatt);
}
static struct ucb1x00_driver ucb1x00_assabet_driver = {
.add = ucb1x00_assabet_add,
.remove = ucb1x00_assabet_remove,
};
static int __init ucb1x00_assabet_init(void)
{
return ucb1x00_register_driver(&ucb1x00_assabet_driver);
}
static void __exit ucb1x00_assabet_exit(void)
{
ucb1x00_unregister_driver(&ucb1x00_assabet_driver);
}
module_init(ucb1x00_assabet_init);
module_exit(ucb1x00_assabet_exit);
MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>");
MODULE_DESCRIPTION("Assabet noddy testing only example ADC driver");
MODULE_LICENSE("GPL");
| 26.865385 | 79 | 0.735505 |
eccb16b63b5873cca0ca21b8771081b0b2c3b149 | 459 | c | C | sockets/echo/echoclient.c | shiyu99/CSC2405_ComputingSystemsII | 76b9d9c282744ae820d89aca2f08f81323ef3d51 | [
"MIT"
] | null | null | null | sockets/echo/echoclient.c | shiyu99/CSC2405_ComputingSystemsII | 76b9d9c282744ae820d89aca2f08f81323ef3d51 | [
"MIT"
] | null | null | null | sockets/echo/echoclient.c | shiyu99/CSC2405_ComputingSystemsII | 76b9d9c282744ae820d89aca2f08f81323ef3d51 | [
"MIT"
] | null | null | null | #include "nethelp.h"
/* usage: ./echoclient host port */
int main(int argc, char *argv[])
{
int clientfd, port, n;
char *host, buf[MAXLINE];
host = argv[1];
port = atoi(argv[2]);
clientfd = open_clientfd(host, port);
while (fgets(buf, MAXLINE, stdin) != NULL) {
write(clientfd, buf, strlen(buf));
n = read(clientfd, buf, MAXLINE);
write(1, buf, n);
}
close(clientfd);
exit(0);
}
| 20.863636 | 48 | 0.544662 |
eccb6cf8b5d90f17d8799fab810c1eaaede2d3a9 | 2,494 | h | C | compute/tensor/src/cpu/arm/int8/arm_functions_int8.h | chillingche/bolt | 255307a3a02264dab665a2399f5cd49d57317697 | [
"MIT"
] | 1 | 2021-05-14T06:31:37.000Z | 2021-05-14T06:31:37.000Z | compute/tensor/src/cpu/arm/int8/arm_functions_int8.h | jianfeifeng/bolt | 08577f80291a8a99f64fc24454a17832c56eb02b | [
"MIT"
] | null | null | null | compute/tensor/src/cpu/arm/int8/arm_functions_int8.h | jianfeifeng/bolt | 08577f80291a8a99f64fc24454a17832c56eb02b | [
"MIT"
] | null | null | null | // Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef _H_ARM_FUNCTIONS_INT8
#define _H_ARM_FUNCTIONS_INT8
#include "arm_neon_expand.h"
#include "parameter_spec.h"
inline EE activation_int8(INT8 *input, U32 len, ActivationParamSpec activationDesc, INT8 *output)
{
int8x16_t in, out;
int8x16_t zero = vdupq_n_s8(0);
U32 len_main = len / 16;
U32 len_tail = len % 16;
switch (activationDesc.mode) {
case ACTIVATION_NULL: {
break;
}
case ACTIVATION_RELU: {
if (activationDesc.value[0] != 0) {
return NOT_SUPPORTED;
}
for (U32 i = 0; i < len_main; i++) {
in = vld1q_s8(input);
out = vmaxq_s8(zero, in);
vst1q_s8(output, out);
input += 16;
output += 16;
}
for (U32 i = 0; i < len_tail; i++) {
output[i] = (input[i] < 0) ? 0 : input[i];
}
break;
}
default:
return NOT_SUPPORTED;
}
return SUCCESS;
}
inline INT8 round_towards_zero(F32 num, bool clamp = true)
{
INT8 ret;
if (clamp) {
if (num > 127.0) {
return 127;
} else if (num < -127.0) {
return -127;
}
}
if (num > 0) {
ret = floor(num);
} else {
ret = ceil(num);
}
return ret;
}
#endif
| 34.638889 | 149 | 0.621492 |
eccc3c03921f9179d3f40400ccf128375dea9ab3 | 14,640 | h | C | Sources/Elastos/LibCore/inc/elastos/security/KeyStoreSpi.h | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/LibCore/inc/elastos/security/KeyStoreSpi.h | xiaoweiruby/Elastos.RT | 238e9b747f70fc129769ae7850def4362c43e443 | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/LibCore/inc/elastos/security/KeyStoreSpi.h | xiaoweiruby/Elastos.RT | 238e9b747f70fc129769ae7850def4362c43e443 | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//=========================================================================
#ifndef __ELASTOS_SECURITY_KEYSTORESPI_H__
#define __ELASTOS_SECURITY_KEYSTORESPI_H__
#include "Elastos.CoreLibrary.Security.h"
#include "elastos/core/Object.h"
using Elastos::Core::Object;
using Elastos::IO::IInputStream;
using Elastos::IO::IOutputStream;
using Elastos::Utility::IEnumeration;
using Elastos::Utility::IDate;
namespace Elastos {
namespace Security {
class ECO_PUBLIC KeyStoreSpi
: public Object
, public IKeyStoreSpi
{
public:
CAR_INTERFACE_DECL()
/**
* Returns the key with the given alias, using the password to recover the
* key from the store.
*
* @param alias
* the alias for the entry.
* @param password
* the password used to recover the key.
* @return the key with the specified alias, or {@code null} if the
* specified alias is not bound to an entry.
* @throws NoSuchAlgorithmException
* if the algorithm for recovering the key is not available.
* @throws UnrecoverableKeyException
* if the key can not be recovered.
*/
virtual CARAPI EngineGetKey(
/* [in] */ const String& alias,
/* [in] */ ArrayOf<Char32> *password,
/*[out] */ IKey **key) = 0;
/**
* Returns the certificate chain for the entry with the given alias.
*
* @param alias
* the alias for the entry
* @return the certificate chain for the entry with the given alias, or
* {@code null} if the specified alias is not bound to an entry.
*/
virtual CARAPI EngineGetCertificateChain(
/* [in] */ const String& alias,
/* [out, callee] */ ArrayOf<Elastos::Security::Cert::ICertificate*> **certChain) = 0;
/**
* Returns the trusted certificate for the entry with the given alias.
*
* @param alias
* the alias for the entry.
* @return the trusted certificate for the entry with the given alias, or
* {@code null} if the specified alias is not bound to an entry.
*/
virtual CARAPI EngineGetCertificate(
/* [in] */ const String& alias,
/* [out] */ Elastos::Security::Cert::ICertificate **cert) = 0;
/**
* Returns the creation date of the entry with the given alias.
*
* @param alias
* the alias for the entry.
* @return the creation date, or {@code null} if the specified alias is not
* bound to an entry.
*/
virtual CARAPI EngineGetCreationDate(
/* [in] */ const String& alias,
/* [out] */ IDate **creationDate) = 0;
/**
* Associates the given alias with the key, password and certificate chain.
* <p>
* If the specified alias already exists, it will be reassigned.
*
* @param alias
* the alias for the key.
* @param key
* the key.
* @param password
* the password.
* @param chain
* the certificate chain.
* @throws KeyStoreException
* if the specified key can not be protected, or if this
* operation fails for another reason.
* @throws IllegalArgumentException
* if {@code key} is a {@code PrivateKey} and {@code chain} does
* not contain any certificates.
*/
virtual CARAPI EngineSetKeyEntry(
/* [in] */ const String& alias,
/* [in] */ IKey *key,
/* [in] */ ArrayOf<Char32> *password,
/* [in] */ ArrayOf<Elastos::Security::Cert::ICertificate*> *chain) = 0;
/**
* Associates the given alias with a key and a certificate chain.
* <p>
* If the specified alias already exists, it will be reassigned.
*
* @param alias
* the alias for the key.
* @param key
* the key in an encoded format.
* @param chain
* the certificate chain.
* @throws KeyStoreException
* if this operation fails.
* @throws IllegalArgumentException
* if {@code key} is a {@code PrivateKey} and {@code chain}
* does.
*/
virtual CARAPI EngineSetKeyEntry(
/* [in] */ const String& alias,
/* [in] */ ArrayOf<Byte> *key,
/* [in] */ ArrayOf<Elastos::Security::Cert::ICertificate*> *chain) = 0;
/**
* Associates the given alias with a certificate.
* <p>
* If the specified alias already exists, it will be reassigned.
*
* @param alias
* the alias for the certificate.
* @param cert
* the certificate.
* @throws KeyStoreException
* if an existing alias is not associated to an entry containing
* a trusted certificate, or this method fails for any other
* reason.
*/
virtual CARAPI EngineSetCertificateEntry(
/* [in] */ const String& alias,
/* [in] */ Elastos::Security::Cert::ICertificate *cert) = 0;
/**
* Deletes the entry identified with the given alias from this {@code
* KeyStoreSpi}.
*
* @param alias
* the alias for the entry.
* @throws KeyStoreException
* if the entry can not be deleted.
*/
virtual CARAPI EngineDeleteEntry(
/* [in] */ const String& alias) = 0;
/**
* Returns an {@code Enumeration} over all alias names stored in this
* {@code KeyStoreSpi}.
*
* @return an {@code Enumeration} over all alias names stored in this
* {@code KeyStoreSpi}.
*/
virtual CARAPI EngineAliases(
/* [out] */ IEnumeration **aliases) = 0;
/**
* Indicates whether the given alias is present in this {@code KeyStoreSpi}.
*
* @param alias
* the alias of an entry.
* @return {@code true} if the alias exists, {@code false} otherwise.
*/
virtual CARAPI EngineContainsAlias(
/* [in] */ const String& alias,
/* [out] */ Boolean *result) = 0;
/**
* Returns the number of entries stored in this {@code KeyStoreSpi}.
*
* @return the number of entries stored in this {@code KeyStoreSpi}.
*/
virtual CARAPI EngineSize(
/* [out] */ Int32 *size) = 0;
/**
* Indicates whether the specified alias is associated with either a
* {@link KeyStore.PrivateKeyEntry} or a {@link KeyStore.SecretKeyEntry}.
*
* @param alias
* the alias of an entry.
* @return {@code true} if the given alias is associated with a key entry.
*/
virtual CARAPI EngineIsKeyEntry(
/* [in] */ const String& alias,
/* [out] */ Boolean *result) = 0;
/**
* Indicates whether the specified alias is associated with a
* {@link KeyStore.TrustedCertificateEntry}.
*
* @param alias
* the alias of an entry.
* @return {@code true} if the given alias is associated with a certificate
* entry.
*/
virtual CARAPI EngineIsCertificateEntry(
/* [in] */ const String& alias,
/* [out] */ Boolean *result) = 0;
/**
* Returns the alias associated with the first entry whose certificate
* matches the specified certificate.
*
* @param cert
* the certificate to find the associated entry's alias for.
* @return the alias or {@code null} if no entry with the specified
* certificate can be found.
*/
virtual CARAPI EngineGetCertificateAlias(
/* [in] */ Elastos::Security::Cert::ICertificate *cert,
/* [out] */ String* alias) = 0;
/**
* Writes this {@code KeyStoreSpi} to the specified {@code OutputStream}.
* The data written to the {@code OutputStream} is protected by the
* specified password.
*
* @param stream
* the {@code OutputStream} to write the store's data to.
* @param password
* the password to protect the data.
* @throws IOException
* if a problem occurred while writing to the stream.
* @throws NoSuchAlgorithmException
* if the required algorithm is not available.
* @throws CertificateException
* if the an exception occurred while storing the certificates
* of this code {@code KeyStoreSpi}.
*/
virtual CARAPI EngineStore(
/* [in] */ IOutputStream *stream,
/* [in] */ ArrayOf<Char32> *password) = 0;
/**
* Stores this {@code KeyStoreSpi} using the specified {@code
* LoadStoreParameter}.
*
* @param param
* the {@code LoadStoreParameter} that specifies how to store
* this {@code KeyStoreSpi}, maybe {@code null}.
* @throws IOException
* if a problem occurred while writing to the stream.
* @throws NoSuchAlgorithmException
* if the required algorithm is not available.
* @throws CertificateException
* if the an exception occurred while storing the certificates
* of this code {@code KeyStoreSpi}.
* @throws IllegalArgumentException
* if the given {@link KeyStore.LoadStoreParameter} is not
* recognized.
*/
virtual CARAPI EngineStore(
/* [in] */ IKeyStoreLoadStoreParameter *param);
/**
* Loads this {@code KeyStoreSpi} from the given {@code InputStream}.
* Utilizes the given password to verify the stored data.
*
* @param stream
* the {@code InputStream} to load this {@code KeyStoreSpi}'s
* data from.
* @param password
* the password to verify the stored data, maybe {@code null}.
* @throws IOException
* if a problem occurred while reading from the stream.
* @throws NoSuchAlgorithmException
* if the required algorithm is not available.
* @throws CertificateException
* if the an exception occurred while loading the certificates
* of this code {@code KeyStoreSpi}.
*/
virtual CARAPI EngineLoad(
/* [in] */ IInputStream *stream,
/* [in] */ ArrayOf<Char32> *password) = 0;
/**
* Loads this {@code KeyStoreSpi} using the specified {@code
* LoadStoreParameter}.
*
* @param param
* the {@code LoadStoreParameter} that specifies how to load this
* {@code KeyStoreSpi}, maybe {@code null}.
* @throws IOException
* if a problem occurred while reading from the stream.
* @throws NoSuchAlgorithmException
* if the required algorithm is not available.
* @throws CertificateException
* if the an exception occurred while loading the certificates
* of this code {@code KeyStoreSpi}.
* @throws IllegalArgumentException
* if the given {@link KeyStore.LoadStoreParameter} is not
* recognized.
*/
virtual CARAPI EngineLoad(
/* [in] */ IKeyStoreLoadStoreParameter *param);
/**
* Returns the {@code Entry} with the given alias, using the specified
* {@code ProtectionParameter}.
*
* @param alias
* the alias of the requested entry.
* @param protParam
* the {@code ProtectionParameter}, used to protect the requested
* entry, maybe {@code null}.
* @return he {@code Entry} with the given alias, using the specified
* {@code ProtectionParameter}.
* @throws NoSuchAlgorithmException
* if the required algorithm is not available.
* @throws UnrecoverableEntryException
* if the entry can not be recovered.
* @throws KeyStoreException
* if this operation fails
*/
virtual CARAPI EngineGetEntry(
/* [in] */ const String& alias,
/* [in] */ IKeyStoreProtectionParameter *protParam,
/* [out] */ IKeyStoreEntry **entry);
/**
* Stores the given {@code Entry} in this {@code KeyStoreSpi} and associates
* the entry with the given {@code alias}. The entry is protected by the
* specified {@code ProtectionParameter}.
* <p>
* If the specified alias already exists, it will be reassigned.
*
* @param alias
* the alias for the entry.
* @param entry
* the entry to store.
* @param protParam
* the {@code ProtectionParameter} to protect the entry.
* @throws KeyStoreException
* if this operation fails.
*/
virtual CARAPI EngineSetEntry(
/* [in] */ const String& alias,
/* [in] */ IKeyStoreEntry *entry,
/* [in] */ IKeyStoreProtectionParameter *protParam);
/**
* Indicates whether the entry for the given alias is assignable to the
* provided {@code Class}.
*
* @param alias
* the alias for the entry.
* @param entryClass
* the type of the entry.
* @return {@code true} if the {@code Entry} for the alias is assignable to
* the specified {@code entryClass}.
*/
virtual CARAPI EngineEntryInstanceOf(
/* [in] */ const String& alias,
/* [in] */ const ClassID& entryClass,
/* [out] */ Boolean *result);
/*
* This method returns password which is encapsulated in
* CallbackHandlerProtection object If there is no implementation of
* CallbackHandler then this method returns null
*/
static CARAPI GetPasswordFromCallBack(
/* [in] */ IKeyStoreProtectionParameter *protParam,
/* [out, callee] */ ArrayOf<Char32> **pwd);
};
} // namespace Security
} // namespace Elastos
#endif // __ELASTOS_SECURITY_KEYSTORESPI_H__
| 36.78392 | 97 | 0.58627 |
ecccbbfb7e0ab568488748f87d65a608d529d15c | 1,921 | c | C | internal/ccall/ast/pathaccess.c | edamato/go-graphviz | c6e832de6f05c754b430d996f3493d507ab7061a | [
"MIT"
] | 343 | 2020-01-28T15:13:22.000Z | 2022-03-29T08:03:06.000Z | internal/ccall/ast/pathaccess.c | edamato/go-graphviz | c6e832de6f05c754b430d996f3493d507ab7061a | [
"MIT"
] | 31 | 2020-02-21T16:09:37.000Z | 2022-03-29T12:23:19.000Z | internal/ccall/ast/pathaccess.c | edamato/go-graphviz | c6e832de6f05c754b430d996f3493d507ab7061a | [
"MIT"
] | 38 | 2020-02-05T11:09:55.000Z | 2022-03-23T19:09:03.000Z | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
/*
* Glenn Fowler
* AT&T Bell Laboratories
*
* return path to file a/b with access mode using : separated dirs
* both a and b may be 0
* if (mode&PATH_REGULAR) then path must not be a directory
* if (mode&PATH_ABSOLUTE) then path must be rooted
* path returned in path buffer
*/
#include <ast.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#else
#include <compat_unistd.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
/* #include <ls.h> */
char *pathcanon(char *path, int flags);
char *pathaccess(register char *path, register const char *dirs,
const char *a, const char *b, register int mode)
{
register int m = 0;
int sep = ':';
char cwd[PATH_MAX];
struct stat st;
#ifdef EFF_ONLY_OK
m |= EFF_ONLY_OK;
#endif
#ifdef EX_OK
if (mode == (PATH_EXECUTE | PATH_REGULAR)) {
mode &= ~PATH_REGULAR;
m |= EX_OK;
} else
#endif
{
if (mode & PATH_READ)
m |= R_OK;
if (mode & PATH_WRITE)
m |= W_OK;
if (mode & PATH_EXECUTE)
m |= X_OK;
}
do {
dirs = pathcat(path, dirs, sep, a, b);
pathcanon(path, 0);
if (!access(path, m)) {
if ((mode & PATH_REGULAR)
&& (stat(path, &st) || S_ISDIR(st.st_mode)))
continue;
if (*path == '/' || !(mode & PATH_ABSOLUTE))
return (path);
dirs = getcwd(cwd, sizeof(cwd));
sep = 0;
}
} while (dirs);
return (0);
}
| 24.628205 | 75 | 0.590318 |
ecd0d0982d4c37efb320f8f2ea411b1302a9ad1f | 2,693 | h | C | src/js/builtin/Profilers.h | fengjixuchui/blazefox | d5c732ac7305a79fe20704c2d134c130f14eca83 | [
"MIT"
] | 149 | 2018-12-23T09:08:00.000Z | 2022-02-02T09:18:38.000Z | src/js/builtin/Profilers.h | fengjixuchui/blazefox | d5c732ac7305a79fe20704c2d134c130f14eca83 | [
"MIT"
] | null | null | null | src/js/builtin/Profilers.h | fengjixuchui/blazefox | d5c732ac7305a79fe20704c2d134c130f14eca83 | [
"MIT"
] | 56 | 2018-12-23T18:11:40.000Z | 2021-11-30T13:18:17.000Z | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* Functions for controlling profilers from within JS: Valgrind, Perf,
* Shark, etc.
*/
#ifndef builtin_Profilers_h
#define builtin_Profilers_h
#include "jstypes.h"
#ifdef _MSC_VER
typedef int pid_t;
#else
#include <unistd.h>
#endif
/**
* Start any profilers that are available and have been configured on for this
* platform. This is NOT thread safe.
*
* The profileName is used by some profilers to describe the current profiling
* run. It may be used for part of the filename of the output, but the
* specifics depend on the profiler. Many profilers will ignore it. Passing in
* nullptr is legal; some profilers may use it to output to stdout or similar.
*
* Returns true if no profilers fail to start.
*/
extern MOZ_MUST_USE JS_PUBLIC_API(bool)
JS_StartProfiling(const char* profileName, pid_t pid);
/**
* Stop any profilers that were previously started with JS_StartProfiling.
* Returns true if no profilers fail to stop.
*/
extern MOZ_MUST_USE JS_PUBLIC_API(bool)
JS_StopProfiling(const char* profileName);
/**
* Write the current profile data to the given file, if applicable to whatever
* profiler is being used.
*/
extern MOZ_MUST_USE JS_PUBLIC_API(bool)
JS_DumpProfile(const char* outfile, const char* profileName);
/**
* Pause currently active profilers (only supported by some profilers). Returns
* whether any profilers failed to pause. (Profilers that do not support
* pause/resume do not count.)
*/
extern MOZ_MUST_USE JS_PUBLIC_API(bool)
JS_PauseProfilers(const char* profileName);
/**
* Resume suspended profilers
*/
extern MOZ_MUST_USE JS_PUBLIC_API(bool)
JS_ResumeProfilers(const char* profileName);
/**
* The profiling API calls are not able to report errors, so they use a
* thread-unsafe global memory buffer to hold the last error encountered. This
* should only be called after something returns false.
*/
JS_PUBLIC_API(const char*)
JS_UnsafeGetLastProfilingError();
#ifdef MOZ_CALLGRIND
extern MOZ_MUST_USE JS_FRIEND_API(bool)
js_StopCallgrind();
extern MOZ_MUST_USE JS_FRIEND_API(bool)
js_StartCallgrind();
extern MOZ_MUST_USE JS_FRIEND_API(bool)
js_DumpCallgrind(const char* outfile);
#endif /* MOZ_CALLGRIND */
#ifdef __linux__
extern MOZ_MUST_USE JS_FRIEND_API(bool)
js_StartPerf();
extern MOZ_MUST_USE JS_FRIEND_API(bool)
js_StopPerf();
#endif /* __linux__ */
#endif /* builtin_Profilers_h */
| 28.052083 | 79 | 0.757891 |
ecd2691a78c5f1da1554f7e686c541a42ebf7725 | 3,516 | h | C | include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/ExtendedTaintAnalysis/JoinEdgeFunction.h | clayne/phasar | ba0e60aa4131dfdf2854bab4cb29653d0e5b86d8 | [
"MIT"
] | 1 | 2022-02-15T07:56:29.000Z | 2022-02-15T07:56:29.000Z | include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/ExtendedTaintAnalysis/JoinEdgeFunction.h | fabianbs96/phasar | 5b8acd046d8676f72ce0eb85ca20fdb0724de444 | [
"MIT"
] | null | null | null | include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/ExtendedTaintAnalysis/JoinEdgeFunction.h | fabianbs96/phasar | 5b8acd046d8676f72ce0eb85ca20fdb0724de444 | [
"MIT"
] | null | null | null | /******************************************************************************
* Copyright (c) 2020 Fabian Schiebel.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Fabian Schiebel and others
*****************************************************************************/
#ifndef PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_PROBLEMS_EXTENDEDTAINTANALYSIS_JOINEDGEFUNCTION_H
#define PHASAR_PHASARLLVM_DATAFLOWSOLVER_IFDSIDE_PROBLEMS_EXTENDEDTAINTANALYSIS_JOINEDGEFUNCTION_H
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallVector.h"
#include "phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/ExtendedTaintAnalysis/Helpers.h"
#include "phasar/PhasarLLVM/DataFlowSolver/IfdsIde/Problems/ExtendedTaintAnalysis/XTaintEdgeFunctionBase.h"
namespace psr::XTaint {
class JoinEdgeFunction : public EdgeFunctionBase {
struct EFDenseSetInfo {
static inline EdgeFunctionPtrType getEmptyKey() {
static EdgeFunctionPtrType EmptyKey(
llvm::DenseMapInfo<EdgeFunction<l_t> *>::getEmptyKey(),
[](const EdgeFunction<l_t> * /*unused*/) {});
return EmptyKey;
}
static inline EdgeFunctionPtrType getTombstoneKey() {
static EdgeFunctionPtrType TombstoneKey(
llvm::DenseMapInfo<EdgeFunction<l_t> *>::getTombstoneKey(),
[](const EdgeFunction<l_t> * /*unused*/) {});
return TombstoneKey;
}
static unsigned getHashValue(const EdgeFunctionPtrType &EF) {
return XTaint::getHashCode(EF);
}
static bool isEqual(const EdgeFunctionPtrType &LHS,
const EdgeFunctionPtrType &RHS) {
if (&*LHS == &*RHS) {
return true;
}
if (&*LHS == llvm::DenseMapInfo<EdgeFunction<l_t> *>::getEmptyKey() ||
&*LHS == llvm::DenseMapInfo<EdgeFunction<l_t> *>::getTombstoneKey()) {
return false;
}
if (&*RHS == llvm::DenseMapInfo<EdgeFunction<l_t> *>::getEmptyKey() ||
&*RHS == llvm::DenseMapInfo<EdgeFunction<l_t> *>::getTombstoneKey()) {
return false;
}
return LHS->equal_to(RHS);
}
};
using SubEdgeFuctionsTy =
llvm::SmallDenseSet<EdgeFunctionPtrType, 2, EFDenseSetInfo>;
// The set of joined edge-functions. Is not empty
SubEdgeFuctionsTy SubEF;
// The joined edge-value of collected constants (GenEdgeFunction and
// JoinConstEdgeFunction)
EdgeDomain Seed;
JoinEdgeFunction(BasicBlockOrdering &BBO,
std::initializer_list<EdgeFunctionPtrType> SubEF,
const EdgeDomain &Seed);
public:
// FOR INTERNAL USE ONLY! USE JoiEdgeFunction::create INSTEAD
JoinEdgeFunction(BasicBlockOrdering &BBO, SubEdgeFuctionsTy &&SubEF,
const EdgeDomain &Seed);
// Replaces the constructor and aims to deduplicate the sub-edge-functions if
// one or more of {First, Second} are also JoinEdgeFunctions
static EdgeFunctionPtrType create(BasicBlockOrdering &BBO,
EdgeFunctionPtrType First,
EdgeFunctionPtrType Second);
l_t computeTarget(l_t Source) override;
bool equal_to(EdgeFunctionPtrType OtherFunction) const override;
void print(llvm::raw_ostream &OS, bool IsForDebug = false) const override;
llvm::hash_code getHashCode() const override;
static inline bool classof(const EdgeFunctionBase *EF) {
return EF->getKind() == EFKind::Join;
}
};
} // namespace psr::XTaint
#endif
| 36.247423 | 107 | 0.663254 |
ecd27340a6b2a3ce11c01361c29ae9204043d57b | 752 | h | C | libs/editline/inc/editline.h | mrds90/firmware_v3 | 52e36085fd3fa8917786bdffc2143de2ae3d1b9a | [
"BSD-3-Clause"
] | 23 | 2019-08-01T07:55:41.000Z | 2021-11-28T15:44:52.000Z | libs/editline/inc/editline.h | td3-frm/freeRTOS | 967665cafb3d8e1d626f063898fa0bb4d6111eb5 | [
"BSD-3-Clause"
] | 21 | 2019-10-04T13:20:02.000Z | 2021-08-07T00:16:08.000Z | libs/editline/inc/editline.h | td3-frm/freeRTOS | 967665cafb3d8e1d626f063898fa0bb4d6111eb5 | [
"BSD-3-Clause"
] | 52 | 2019-07-20T22:56:21.000Z | 2022-02-10T20:03:16.000Z | /*=============================================================================
* Copyright (c) 2019, Martin Ribelotta <martinribelotta@gmail.com>
* All rights reserved.
* License: bsd-2-clause (see LICENSE.txt)
* Date: 2019/10/06
* Version: 0.1
*===========================================================================*/
#ifndef __EDITLINE_H__
#define __EDITLINE_H__
#include <stddef.h>
typedef struct {
char *lineBuf;
int lineBufSize;
int lineBufIdx;
void (*putstr)(const char*);
void (*execute)(char*);
} lineEditor_t;
extern void editLineInit(lineEditor_t *ed, char *buf, size_t size, void (*put)(const char*), void (*executor)(char*));
extern void editLineProcess(lineEditor_t *ed, int c);
#endif /* __EDITLINE_H__ */
| 28.923077 | 118 | 0.555851 |
ecd2e78b103942a0d12238ff9c5df1cf2db6d7e0 | 1,785 | h | C | RepetierHost/RepetierHost/models/RHPrintjob.h | dmopalmer/Repetier-Host-Mac | 6abea894c8c7d6007273bb47f6c28653b8d5ab5d | [
"ECL-2.0",
"Apache-2.0"
] | 14 | 2015-01-20T21:10:50.000Z | 2020-11-01T04:28:11.000Z | RepetierHost/RepetierHost/models/RHPrintjob.h | dmopalmer/Repetier-Host-Mac | 6abea894c8c7d6007273bb47f6c28653b8d5ab5d | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2015-02-13T16:54:11.000Z | 2019-09-16T02:15:54.000Z | RepetierHost/RepetierHost/models/RHPrintjob.h | dmopalmer/Repetier-Host-Mac | 6abea894c8c7d6007273bb47f6c28653b8d5ab5d | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2015-01-18T09:10:19.000Z | 2020-06-16T00:06:11.000Z | /*
Copyright 2011 repetier repetierdev@googlemail.com
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.
*/
#import <Foundation/Foundation.h>
#import "RHLinkedList.h"
#import "GCode.h"
#import "GCodeAnalyzer.h"
@interface RHPrintjob : NSObject {
RHLinkedList *jobList;
//RHLinkedList *times;
NSDate *jobStarted, *jobFinished;
GCodeAnalyzer *_ana;
//NSLock *timeLock;
NSDateFormatter *dateFormatter;
NSDateFormatter *timeFormatter;
@public
BOOL etaTimeLeft;
BOOL dataComplete;
int totalLines;
int linesSend;
BOOL exclusive;
double computedPrintingTime;
int maxLayer;
int mode; // 0 = no job defines, 1 = printing, 2 = finished, 3 = aborted
}
@property (retain) NSDate *jobStarted;
@property (retain) NSDate *jobFinished;
@property (retain) GCodeAnalyzer *ana;
-(id)init;
-(void)dealloc;
-(void) beginJob;
-(void) endJob;
-(void) killJob;
-(void) doEndKillActions;
-(void) pushData:(NSString*)code;
// Push array of GCodeShort elements
-(void)pushShortArray:(NSArray*)codes;
-(BOOL) hasData;
-(GCode*) peekData;
-(GCode*)popData;
-(float) percentDone;
-(NSString*) ETA;
-(void) updateJobButtons;
@end
@interface PrintTime : NSObject {
@public
int line;
double time;
}
-(id)initWithLine:(int)linenumber;
-(void)dealloc;
@end
| 25.140845 | 76 | 0.72493 |
ecd4841a9a7861cddbbd4b298b91a8b4ca8dec50 | 536 | h | C | android/jni/AndroidAppThreadAssertions/AndroidAppThreadAssertions.h | usamakhan049/assignment | 40eb153e8fd74f73ba52ce29417d8220ab744b5d | [
"BSD-2-Clause"
] | 69 | 2017-06-07T10:47:03.000Z | 2022-03-24T08:33:33.000Z | android/jni/AndroidAppThreadAssertions/AndroidAppThreadAssertions.h | usamakhan049/assignment | 40eb153e8fd74f73ba52ce29417d8220ab744b5d | [
"BSD-2-Clause"
] | 23 | 2017-06-07T10:47:00.000Z | 2020-07-09T10:31:17.000Z | android/jni/AndroidAppThreadAssertions/AndroidAppThreadAssertions.h | usamakhan049/assignment | 40eb153e8fd74f73ba52ce29417d8220ab744b5d | [
"BSD-2-Clause"
] | 31 | 2017-08-12T13:19:32.000Z | 2022-01-04T20:33:40.000Z | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#pragma once
namespace ExampleApp
{
namespace AndroidAppThreadAssertions
{
void NominateCurrentlyRunningThreadAsUiThread();
void AssertCurrentlyRunningOnNominatedUiThread(const char* file, int line);
void RemoveNominationForUiThread();
void NominateCurrentlyRunningThreadAsNativeThread();
void AssertCurrentlyRunningOnNominatedNativeThread(const char* file, int line);
void RemoveNominationForNativeThread();
}
}
| 24.363636 | 87 | 0.742537 |
ecd57bcd8d2d6f3abb1ab081ba0c21c3f406ccf5 | 8,277 | h | C | sample_project/env/include/qt/QtQml/5.9.7/QtQml/private/qv4dateobject_p.h | Istiakmorsalin/ML-Data-Science | 681e68059b146343ef55b0671432dc946970730d | [
"MIT"
] | 1 | 2021-12-15T05:32:24.000Z | 2021-12-15T05:32:24.000Z | sample_project/env/include/qt/QtQml/5.9.7/QtQml/private/qv4dateobject_p.h | Istiakmorsalin/ML-Data-Science | 681e68059b146343ef55b0671432dc946970730d | [
"MIT"
] | null | null | null | sample_project/env/include/qt/QtQml/5.9.7/QtQml/private/qv4dateobject_p.h | Istiakmorsalin/ML-Data-Science | 681e68059b146343ef55b0671432dc946970730d | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtQml module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or (at your option) the GNU General
** Public license version 3 or any later version approved by the KDE Free
** Qt Foundation. The licenses are as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
** https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QV4DATEOBJECT_P_H
#define QV4DATEOBJECT_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include "qv4object_p.h"
#include "qv4functionobject_p.h"
#include <QtCore/private/qnumeric_p.h>
QT_BEGIN_NAMESPACE
class QDateTime;
namespace QV4 {
namespace Heap {
struct DateObject : Object {
void init()
{
Object::init();
date = qt_qnan();
}
void init(const Value &date)
{
Object::init();
this->date = date.toNumber();
}
void init(const QDateTime &date);
void init(const QTime &time);
double date;
};
struct DateCtor : FunctionObject {
void init(QV4::ExecutionContext *scope);
};
}
struct DateObject: Object {
V4_OBJECT2(DateObject, Object)
Q_MANAGED_TYPE(DateObject)
V4_PROTOTYPE(datePrototype)
double date() const { return d()->date; }
void setDate(double date) { d()->date = date; }
QDateTime toQDateTime() const;
};
template<>
inline const DateObject *Value::as() const {
return isManaged() && m()->vtable()->type == Managed::Type_DateObject ? static_cast<const DateObject *>(this) : 0;
}
struct DateCtor: FunctionObject
{
V4_OBJECT2(DateCtor, FunctionObject)
static void construct(const Managed *, Scope &scope, CallData *callData);
static void call(const Managed *that, Scope &scope, CallData *);
};
struct DatePrototype: DateObject
{
V4_PROTOTYPE(objectPrototype)
void init(ExecutionEngine *engine, Object *ctor);
static double getThisDate(Scope &scope, CallData *callData);
static void method_parse(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_UTC(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_now(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_toString(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_toDateString(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_toTimeString(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_toLocaleString(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_toLocaleDateString(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_toLocaleTimeString(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_valueOf(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getTime(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getYear(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getFullYear(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getUTCFullYear(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getMonth(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getUTCMonth(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getDate(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getUTCDate(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getDay(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getUTCDay(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getHours(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getUTCHours(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getMinutes(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getUTCMinutes(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getSeconds(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getUTCSeconds(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getMilliseconds(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getUTCMilliseconds(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_getTimezoneOffset(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setTime(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setMilliseconds(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setUTCMilliseconds(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setSeconds(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setUTCSeconds(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setMinutes(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setUTCMinutes(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setHours(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setUTCHours(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setDate(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setUTCDate(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setMonth(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setUTCMonth(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setYear(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setFullYear(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_setUTCFullYear(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_toUTCString(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_toISOString(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_toJSON(const BuiltinFunction *, Scope &scope, CallData *callData);
static void timezoneUpdated();
};
}
QT_END_NAMESPACE
#endif // QV4ECMAOBJECTS_P_H
| 45.729282 | 118 | 0.736257 |
ecd59f7e1f78b1275fe0fdad6fedb3759734ca06 | 895 | h | C | AI-searching/Backtrack.h | andrasigneczi/TravelOptimiser | b08805f97f0823fd28975a36db67193386aceb22 | [
"Apache-2.0"
] | 1 | 2016-04-20T08:35:44.000Z | 2016-04-20T08:35:44.000Z | AI-searching/Backtrack.h | andrasigneczi/TravelOptimiser | b08805f97f0823fd28975a36db67193386aceb22 | [
"Apache-2.0"
] | null | null | null | AI-searching/Backtrack.h | andrasigneczi/TravelOptimiser | b08805f97f0823fd28975a36db67193386aceb22 | [
"Apache-2.0"
] | null | null | null | #ifndef _BACKTRACK_H
#define _BACKTRACK_H
#include "AI.h"
#include <set>
class Backtrack : public AI {
public:
struct BtNode {
BtNode( const Context::CtNode* node, int index ) : mCtNode( node), mIndex( index ) {}
const Context::CtNode* mCtNode;
int mIndex; // index of Context::Node::mLinks
};
std::vector<Connection> seachTheBestWay( Context* context ) override;
private:
void init();
bool isGoal();
bool genNextPath();
void printPath(const std::vector<Backtrack::BtNode>& path );
void printAllPaths();
void savePath();
bool isMatch(int pathIndex, std::string goal, Connection::Type linkType);
void deleteLastPathItem();
std::vector<Backtrack::BtNode> mPath;
std::vector<std::vector<Backtrack::BtNode>> mMatches;
std::vector<Backtrack::BtNode> mAlreadyUsedPath;
bool mTerminated;
std::set<std::string> mInserted;
};
#endif // BACKTRACK
| 24.189189 | 90 | 0.699441 |
ecd6323ee51ed5801c3204419fb392b3369ae6eb | 14,725 | c | C | src/net/collective/ethernet/ethernet_collective.c | abu-bakar-nu/nautilus | 9c5046d714e2ff2a00f757ba42dc887024365be6 | [
"MIT"
] | 28 | 2018-10-12T17:44:54.000Z | 2022-01-27T19:30:56.000Z | src/net/collective/ethernet/ethernet_collective.c | abu-bakar-nu/nautilus | 9c5046d714e2ff2a00f757ba42dc887024365be6 | [
"MIT"
] | 31 | 2018-12-08T19:39:32.000Z | 2021-01-19T18:37:57.000Z | src/net/collective/ethernet/ethernet_collective.c | abu-bakar-nu/nautilus | 9c5046d714e2ff2a00f757ba42dc887024365be6 | [
"MIT"
] | 26 | 2018-08-04T03:58:13.000Z | 2022-03-02T18:53:09.000Z | /*
* This file is part of the Nautilus AeroKernel developed
* by the Hobbes and V3VEE Projects with funding from the
* United States National Science Foundation and the Department of Energy.
*
* The V3VEE Project is a joint project between Northwestern University
* and the University of New Mexico. The Hobbes Project is a collaboration
* led by Sandia National Laboratories that includes several national
* laboratories and universities. You can find out more at:
* http://www.v3vee.org and
* http://xstack.sandia.gov/hobbes
*
* Copyright (c) 2018, Peter Dinda <pdinda@northwestern.edu>
* Copyright (c) 2018, The V3VEE Project <http://www.v3vee.org>
* The Hobbes Project <http://xstack.sandia.gov/hobbes>
* All rights reserved.
*
* Author: Peter Dinda <pdinda@northwestern.edu>
*
* This is free software. You are permitted to use,
* redistribute, and modify it as specified in the file "LICENSE.txt".
*/
#include <nautilus/nautilus.h>
#include <nautilus/list.h>
#include <nautilus/spinlock.h>
#include <nautilus/netdev.h>
#include <nautilus/scheduler.h>
#include <net/collective/ethernet/ethernet_collective.h>
#ifndef NAUT_CONFIG_DEBUG_NET_COLLECTIVE_ETHERNET
#undef DEBUG_PRINT
#define DEBUG_PRINT(fmt, args...)
#endif
#define ERROR(fmt, args...) ERROR_PRINT("ether_col: " fmt, ##args)
#define DEBUG(fmt, args...) DEBUG_PRINT("ether_col: " fmt, ##args)
#define INFO(fmt, args...) INFO_PRINT("ether_col: " fmt, ##args)
// Fast L2 collective communication, currently just barriers and rings
// Also currently assumes no packet loss
// Also currently assumes synchrony barrier
// This is a work in progress
typedef enum {COLLECTIVE_IDLE=0, COLLECTIVE_BARRIER, COLLECTIVE_RING} mode_t;
typedef enum {BARRIER_IDLE=0, BARRIER_UP, BARRIER_DOWN} barrier_state_t;
typedef enum {RING_IDLE=0, RING_RECEIVE_LEFT} ring_state_t;
// collective message types
#define COLLECTIVE_RING_TYPE 0x1
#define COLLECTIVE_BARRIER_TYPE 0x2
struct nk_net_ethernet_collective {
mode_t current_mode; // what operation we are handling
// for barrier operations
barrier_state_t barrier_state;
uint32_t curlevel;
uint32_t maxlevel;
// for ring operations
ring_state_t ring_state;
int initiator;
void *token;
uint64_t token_len;
// the network device to use - this is supplied by an ethernet agent
// it must support the ethernet agent send/receive packet interface
struct nk_net_dev *netdev;
struct nk_net_dev_characteristics netchar;
// general metadata for collective operations
uint32_t num_nodes; // size of the collective
uint32_t my_node; // my own index in the mac array (e.g., my rank)
uint16_t type; // ethernet type to use for collective operations
ethernet_mac_addr_t macs[0]; // members of the collective - extended as per number requested
};
static inline void encode_packet(nk_ethernet_packet_t *p, ethernet_mac_addr_t dest, ethernet_mac_addr_t src, uint16_t basetype, uint16_t subtype, void *data, uint16_t len)
{
memcpy(p->header.dst,dest,6);
memcpy(p->header.src,src,6);
p->header.type = htons(basetype);
memcpy(p->data,&subtype,2);
memcpy(p->data+2,&len,2);
memcpy(p->data+4,data,len);
p->len = 14 + 2 + 2 + len;
}
// we match against basetype, and subtype, and return -1 if this is not a match
// otherwise we deconstruct the packet
// len is an i/o argument, in: size of buffer, out: amount of data
static inline int decode_packet(nk_ethernet_packet_t *p, ethernet_mac_addr_t dest, ethernet_mac_addr_t src, uint16_t basetype, uint16_t subtype, void *data, uint16_t *len)
{
uint16_t t;
t = ntohs(p->header.type);
if (t!=basetype) {
return -1;
}
memcpy(&t,p->data,2);
if (t!=subtype) {
return -1;
}
// matching packet, so decode
memcpy(dest,p->header.dst,6);
memcpy(src,p->header.src,6);
memcpy(&t,p->data+2,2);
if (t < *len) {
*len = t;
}
memcpy(data, p->data+4, *len);
return 0;
}
// we match against basetype, and subtype, and return -1 if this is not a match
// otherwise we deconstruct the packet
// len is an i/o argument, in: size of buffer, out: amount of data
static inline int decode_packet_in_place(nk_ethernet_packet_t *p, ethernet_mac_addr_t **dest, ethernet_mac_addr_t **src, uint16_t basetype, uint16_t subtype, void **data, uint16_t *len)
{
uint16_t t;
t = ntohs(p->header.type);
if (t!=basetype) {
return -1;
}
memcpy(&t,p->data,2);
if (t!=subtype) {
return -1;
}
*dest = &p->header.dst;
*src = &p->header.src;
memcpy(&t,p->data+2,2);
*len = t;
*data = p->data+4;
return 0;
}
#if 0
typedef struct barrier_data {
uint8_t dir; // 0=UP, 1=DOWN
uint32_t level;
} __packed barrier_data_t;
uint32_t log2_ceil(uint32_t n)
{
return 32-(__builtin_clz(n)+1);
}
uint32_t pow2(uint32_t n)
{
return 2<<n;
}
static void barrier_recv_callback(nk_net_ethernet_dev_status_t status,
nk_ethernet_packet_t *packet,
void *state)
{
struct nk_net_ethernet_collective *col = (struct nk_net_ethernet_collective *)state;
ethernet_mac_addr_t *dest, *src;
uint16_t subtype;
char buf[5];
uint32_t level;
uint8_t dir;
barrier_data_t *bar;
uint16_t barlen;
if (status!=NK_NET_ETHERNET_DEV_STATUS_SUCCESS) {
ERROR("Receive failure - the barrier may be dead..\n");
return;
}
if (decode_packet_in_place(packet,
&dest,
&src,
col->type,
COLLECTIVE_BARRIER_TYPE,
&bar,
&barlen)) {
DEBUG("Packet does not match current operation\n");
return;
}
if (col->barrier_state == BARRIER_UP) {
if (bar->dir!=0) {
DEBUG("Discarding barrier packet for wrong direction...\n");
nk_net_ethernet_release_packet(p);
return;
}
if (bar->level != (col->curlevel+1)) {
DEBUG("Discarding barrier packet for wrong level...\n");
nk_net_ethernet_release_packet(p);
return;
}
col->curlevel = bar->level;
if (col->curlevel == col->maxlevel) {
// We are at the top of the tree and need to send the first packet down
// we will reuse
bar->dir=1;
bar->
subtype!=COLLECTIVE_BARRIER_TYPE) {
// failed or not a packet for me, do another receive
if (nk_net_ethernet_dev_receive_packet(col->netdev,
col->recv_buf,
col->token_len+PACKET_HEADER_LEN,
NK_DEV_REQ_CALLBACK,
barrier_recv_callback,
col)) {
ERROR("Cannot re-initiate receive\n");
return;
}
return;
}
level = *(uint32_t*)buf;
dir = (uint8_t) buf[4];
if ((level != col->curlevel) ||
(dir==0 && col->barrier_state!=BARRIER_UP) ||
(dir!=0 && col->barrier_state!=BARRIER_DOWN)) {
// uh oh
ERROR("Received level %u %s message, but we are currently at level %u %s\n",
level, dir==0 ? "UP" : "DOWN",
col->curlevel,
col->barrier_state==BARRIER_UP ? "UP" : "DOWN");
return;
}
if (col->barrier_state==BARRIER_UP) {
if ((0x1UL << level) >= col->num_nodes
if ((col->my_node >> (level+1))&0x1) {
// we are a sender in this round
if (!col->initiator) {
// if we aren't the source of the token, we need to send it to our neighbor
int len = encode_packet(col->send_buf,
col->macs[(col->my_node + 1) % col->num_nodes],
col->macs[col->my_node],
COLLECTIVE_RING_TYPE,
col->token,
col->token_len);
if (nk_net_ethernet_dev_send_packet(col->netdev,
col->send_buf,
len,
NK_DEV_REQ_NONBLOCKING,
0, 0)) {
ERROR("Cannot launch packet mid ring\n");
return;
}
}
// now we are done
col->ring_state = RING_IDLE;
col->current_mode = COLLECTIVE_IDLE;
}
// The actual barrier can be executed as many times as desired
int nk_net_ethernet_collective_barrier(struct nk_net_ethernet_collective *col)
{
if (col->num_nodes == 1) {
return 0;
}
if (!__sync_bool_compare_and_swap(&col->current_mode,COLLECTIVE_IDLE,COLLECTIVE_BARRIER)) {
DEBUG("Collective operation already in progress\n");
return -1;
}
col->curlevel = 0; // leaves
col->maxlevel = log2_ceil(col->num_nodes);
col->barrier_state = BARRIER_UP;
if (!(col->my_node % pow2(col->curlevel+1))) {
// even nodes receive (from right odd node)
col->curlevel = 1;
if (nk_net_ethernet_agent_device_receive_packet(col->netdev,
0,
NK_DEV_REQ_CALLBACK,
barrier_recv_callback,
col)) {
ERROR("Cannot initiate receive\n");
return -1;
}
} else {
// odd nodes
// will send to left shark
nk_ethernet_packet_t *p = nk_net_ethernet_alloc_packet(-1);
if (!p) {
ERROR("Cannot allocate packet\n");
return -1;
}
barrier_data_t b = {.dir=0, .level=col->curlevel+1 };
encode_packet(p,
col->macs[col->my_node - pow2(col->curlevel)],
col->macs[col->my_node],
col->type,
COLLECTIVE_BARRIER_TYPE,
&b,
sizeof(b));
if (nk_net_ethernet_agent_device_send_packet(col->netdev,
p,
NK_DEV_REQ_NONBLOCKING,
0, 0)) {
DEBUG("Initiator cannot launch packet\n");
return -1;
}
}
uint64_t start = nk_sched_get_realtime();
// wait for completion
while (__sync_fetch_and_or(&col->current_mode,0)==COLLECTIVE_BARRIER) {
// barriers do not regenerate...
}
return 0;
}
#else
int nk_net_ethernet_collective_barrier(struct nk_net_ethernet_collective *col)
{
return -1;
}
#endif
// Data in a ring packet: token
//
static void ring_recv_callback(nk_net_dev_status_t status,
nk_ethernet_packet_t *packet,
void *state)
{
struct nk_net_ethernet_collective *col = (struct nk_net_ethernet_collective *)state;
ethernet_mac_addr_t *dest, *src;
uint16_t subtype;
void *token;
uint16_t token_len;
if (status!=NK_NET_DEV_STATUS_SUCCESS) {
ERROR("Receive failure - the token will have to be regenerated\n");
return;
}
if (decode_packet_in_place(packet,
&dest,
&src,
col->type,
COLLECTIVE_RING_TYPE,
&token,
&token_len)) {
DEBUG("Packet does not match current operation\n");
return;
}
DEBUG("Received token packet\n");
if (token_len<col->token_len) {
token_len = col->token_len;
}
memcpy(col->token,token,token_len);
if (!col->initiator) {
// we will send the same packet to our neighbor;
memcpy(packet->header.dst, col->macs[(col->my_node + 1) % col->num_nodes], 6);
memcpy(packet->header.src,col->macs[col->my_node], 6);
// all else is the same
if (nk_net_ethernet_agent_device_send_packet(col->netdev,
packet,
NK_DEV_REQ_NONBLOCKING,
0, 0)) {
ERROR("Cannot launch packet mid ring\n");
return;
}
}
// now we are done
col->ring_state = RING_IDLE;
col->current_mode = COLLECTIVE_IDLE;
}
#define REGEN_DELAY_NS 10000000
// circulate a token among the nodes in the barrier
// for two nodes, this is a ping-pong
int nk_net_ethernet_collective_ring(struct nk_net_ethernet_collective *col, void *token, uint64_t token_len, int initiate)
{
if (token_len>NET_ETHERNET_COLLECTIVE_MAX_TOKEN_LEN) {
DEBUG("token length unsupported\n");
return -1;
}
if (col->num_nodes == 1) {
return 0;
}
if (!__sync_bool_compare_and_swap(&col->current_mode,COLLECTIVE_IDLE,COLLECTIVE_RING)) {
DEBUG("Collective operation already in progress\n");
return -1;
}
col->initiator = initiate;
col->token = token;
col->token_len = token_len;
col->ring_state = RING_RECEIVE_LEFT;
// everyone posts receive for left
if (nk_net_ethernet_agent_device_receive_packet(col->netdev,
0,
NK_DEV_REQ_CALLBACK,
ring_recv_callback,
col)) {
ERROR("Cannot initiate receive\n");
return -1;
}
do_initiate:
// initiator also launches the first packet
if (initiate) {
nk_ethernet_packet_t *p = nk_net_ethernet_alloc_packet(-1);
if (!p) {
ERROR("Cannot allocate packet\n");
return -1;
}
encode_packet(p,
col->macs[(col->my_node + 1) % col->num_nodes],
col->macs[col->my_node],
col->type,
COLLECTIVE_RING_TYPE,
token,
token_len);
if (nk_net_ethernet_agent_device_send_packet(col->netdev,
p,
NK_DEV_REQ_NONBLOCKING,
0, 0)) {
DEBUG("Initiator cannot launch packet\n");
return -1;
}
}
uint64_t start = nk_sched_get_realtime();
// wait for completion
while (__sync_fetch_and_or(&col->current_mode,0)==COLLECTIVE_RING) {
if ((nk_sched_get_realtime()-start) > REGEN_DELAY_NS) {
// relaunch the packet if we have been waiting too long
goto do_initiate;
}
}
return 0;
}
struct nk_net_ethernet_collective *nk_net_ethernet_collective_create(struct nk_net_ethernet_agent *agent,
uint16_t type,
uint32_t num_nodes,
ethernet_mac_addr_t macs[])
{
uint64_t size = sizeof(struct nk_net_ethernet_collective)+sizeof(ethernet_mac_addr_t)*num_nodes;
uint32_t i;
struct nk_net_ethernet_collective *col = (struct nk_net_ethernet_collective *)malloc(size);
if (!col) {
ERROR("Failed to allocate collective structure for %u nodes\n",num_nodes);
return 0;
}
memset(col,0,sizeof(*col));
col->num_nodes = num_nodes;
col->type = type;
if (!(col->netdev = nk_net_ethernet_agent_register_type(agent, type))) {
ERROR("Cannot register with agent for type %x\n",type);
free(col);
return 0;
}
if (nk_net_dev_get_characteristics(col->netdev, &col->netchar)) {
ERROR("Failed to get network characterstics\n");
free(col);
return 0;
}
col->my_node = -1;
for (i=0;i<num_nodes;i++) {
memcpy(col->macs[i],macs[i],6);
if (!memcmp(col->macs[i],col->netchar.mac,ETHER_MAC_LEN)) {
col->my_node = i;
}
}
if (col->my_node == -1 ) {
ERROR("I can't find myself among given mac addresses\n");
nk_net_ethernet_agent_unregister(col->netdev);
free(col);
return 0;
}
return col;
}
int nk_net_ethernet_collective_destroy(struct nk_net_ethernet_collective *col)
{
if (col->current_mode != COLLECTIVE_IDLE) {
return -1;
} else {
nk_net_ethernet_agent_unregister(col->netdev);
free(col);
return 0;
}
}
int nk_net_ethernet_collective_init()
{
INFO("inited\n");
return 0;
}
void nk_net_ethernet_collective_deinit()
{
INFO("deinited\n");
}
| 25.17094 | 185 | 0.65528 |
ecd71dc679790ae39f742b594add4dd79ec70574 | 1,702 | h | C | install/TexGen/Core/StaggeredPeriodicBoundaries.h | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 14 | 2021-06-17T17:17:07.000Z | 2022-03-26T05:20:20.000Z | install/TexGen/Core/StaggeredPeriodicBoundaries.h | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 6 | 2021-11-01T20:37:39.000Z | 2022-03-11T17:18:53.000Z | install/TexGen/Core/StaggeredPeriodicBoundaries.h | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 8 | 2021-07-20T09:24:23.000Z | 2022-02-26T16:32:00.000Z | /*=============================================================================
TexGen: Geometric textile modeller.
Copyright (C) 2013 Louise Brown
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.
=============================================================================*/
#pragma once
namespace TexGen
{
using namespace std;
/// Class used to generate Abaqus input file for periodic boundary conditions for a textile with staggered offset. Gives reduced unit cell size
class CLASS_DECLSPEC CStaggeredPeriodicBoundaries : public CPeriodicBoundaries
{
public:
CStaggeredPeriodicBoundaries(int NumEdges = 18, int NumVertices = 12);
~CStaggeredPeriodicBoundaries(void);
void SetFaceD( vector<int>& D1, vector<int>& D2 );
void SetOffset( double Offset ) { m_Offset = Offset; }
protected:
void OutputFaceSets( ostream& Output );
/// Output equations for staggered boundary conditions
void OutputEquations( ostream& Output, int iBoundaryConditions );
pair< vector<int>, vector<int> > m_FaceD;
double m_Offset;
};
}; // namespace TexGen | 37 | 144 | 0.701528 |
ecd76125f9e12305fbe5f19e6bee9e21f9b46488 | 8,256 | c | C | contrib/idn/idnkit-1.0-src/lib/unicode.c | BII-Lab/BIND9.9.6-Always-TC | 4f34156c613b4b57c45601da16e31e42459030dd | [
"BSD-2-Clause"
] | 62 | 2018-02-03T01:38:05.000Z | 2022-03-24T22:03:46.000Z | contrib/idn/idnkit-1.0-src/lib/unicode.c | BII-Lab/BIND9.9.6-Always-TC | 4f34156c613b4b57c45601da16e31e42459030dd | [
"BSD-2-Clause"
] | 11 | 2018-03-23T22:34:14.000Z | 2021-02-04T17:31:05.000Z | contrib/idn/idnkit-1.0-src/lib/unicode.c | BII-Lab/BIND9.9.6-Always-TC | 4f34156c613b4b57c45601da16e31e42459030dd | [
"BSD-2-Clause"
] | 19 | 2018-03-23T22:31:30.000Z | 2022-01-26T06:26:08.000Z | #ifndef lint
static char *rcsid = "$Id: unicode.c,v 1.1 2003/06/04 00:26:16 marka Exp $";
#endif
/*
* Copyright (c) 2000,2001,2002 Japan Network Information Center.
* All rights reserved.
*
* By using this file, you agree to the terms and conditions set forth bellow.
*
* LICENSE TERMS AND CONDITIONS
*
* The following License Terms and Conditions apply, unless a different
* license is obtained from Japan Network Information Center ("JPNIC"),
* a Japanese association, Kokusai-Kougyou-Kanda Bldg 6F, 2-3-4 Uchi-Kanda,
* Chiyoda-ku, Tokyo 101-0047, Japan.
*
* 1. Use, Modification and Redistribution (including distribution of any
* modified or derived work) in source and/or binary forms is permitted
* under this License Terms and Conditions.
*
* 2. Redistribution of source code must retain the copyright notices as they
* appear in each source code file, this License Terms and Conditions.
*
* 3. Redistribution in binary form must reproduce the Copyright Notice,
* this License Terms and Conditions, in the documentation and/or other
* materials provided with the distribution. For the purposes of binary
* distribution the "Copyright Notice" refers to the following language:
* "Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved."
*
* 4. The name of JPNIC may not be used to endorse or promote products
* derived from this Software without specific prior written approval of
* JPNIC.
*
* 5. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY JPNIC
* "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 JPNIC 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 DAMAGES.
*/
#include <config.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <idn/result.h>
#include <idn/logmacro.h>
#include <idn/assert.h>
#include <idn/unicode.h>
#define UNICODE_CURRENT "3.2.0"
#define UCS_MAX 0x10ffff
#define END_BIT 0x80000000
/*
* Some constants for Hangul decomposition/composition.
*/
#define SBase 0xac00
#define LBase 0x1100
#define VBase 0x1161
#define TBase 0x11a7
#define LCount 19
#define VCount 21
#define TCount 28
#define SLast (SBase + LCount * VCount * TCount)
/*
* Symbol composition macro.
*/
#define compose_sym(a, b) compose_symX(a, b)
#define compose_symX(a, b) a ## b
struct composition {
unsigned long c2; /* 2nd character */
unsigned long comp; /* composed character */
};
#include "unicodedata_320.c"
#define VERSION v320
#include "unicode_template.c"
#undef VERSION
typedef int (*unicode_canonclassproc)(unsigned long v);
typedef int (*unicode_decomposeproc)(unsigned long c,
const unsigned long **seqp);
typedef int (*unicode_composeproc)(unsigned long c,
const struct composition **compp);
static struct idn__unicode_ops {
char *version;
unicode_canonclassproc canonclass_proc;
unicode_decomposeproc decompose_proc;
unicode_composeproc compose_proc;
} unicode_versions[] = {
#define MAKE_UNICODE_HANDLE(version, suffix) \
{ version, \
compose_sym(canonclass_, suffix), \
compose_sym(decompose_, suffix), \
compose_sym(compose_, suffix) }
MAKE_UNICODE_HANDLE("3.2.0", v320),
{ NULL },
#undef MAKE_UNICODE_HANDLE
};
idn_result_t
idn__unicode_create(const char *version,
idn__unicode_version_t *versionp) {
idn__unicode_version_t v;
assert(versionp != NULL);
TRACE(("idn__unicode_create(version=%-.50s)\n",
version == NULL ? "<NULL>" : version));
if (version == NULL)
version = UNICODE_CURRENT;
for (v = unicode_versions; v->version != NULL; v++) {
if (strcmp(v->version, version) == 0) {
*versionp = v;
return (idn_success);
}
}
return (idn_notfound);
}
void
idn__unicode_destroy(idn__unicode_version_t version) {
assert(version != NULL);
TRACE(("idn__unicode_destroy()\n"));
/* Nothing to do */
}
int
idn__unicode_canonicalclass(idn__unicode_version_t version, unsigned long c) {
if (c > UCS_MAX)
return (0);
return (*version->canonclass_proc)(c);
}
idn_result_t
idn__unicode_decompose(idn__unicode_version_t version,
int compat, unsigned long *v, size_t vlen,
unsigned long c, int *decomp_lenp) {
unsigned long *vorg = v;
int seqidx;
const unsigned long *seq;
assert(v != NULL && vlen >= 0 && decomp_lenp != NULL);
if (c > UCS_MAX)
return (idn_notfound);
/*
* First, check for Hangul.
*/
if (SBase <= c && c < SLast) {
int idx, t_offset, v_offset, l_offset;
idx = c - SBase;
t_offset = idx % TCount;
idx /= TCount;
v_offset = idx % VCount;
l_offset = idx / VCount;
if ((t_offset == 0 && vlen < 2) || (t_offset > 0 && vlen < 3))
return (idn_buffer_overflow);
*v++ = LBase + l_offset;
*v++ = VBase + v_offset;
if (t_offset > 0)
*v++ = TBase + t_offset;
*decomp_lenp = v - vorg;
return (idn_success);
}
/*
* Look up decomposition table. If no decomposition is defined
* or if it is a compatibility decomosition when canonical
* decomposition requested, return 'idn_notfound'.
*/
seqidx = (*version->decompose_proc)(c, &seq);
if (seqidx == 0 || (compat == 0 && (seqidx & DECOMP_COMPAT) != 0))
return (idn_notfound);
/*
* Copy the decomposed sequence. The end of the sequence are
* marked with END_BIT.
*/
do {
unsigned long c;
int dlen;
idn_result_t r;
c = *seq & ~END_BIT;
/* Decompose recursively. */
r = idn__unicode_decompose(version, compat, v, vlen, c, &dlen);
if (r == idn_success) {
v += dlen;
vlen -= dlen;
} else if (r == idn_notfound) {
if (vlen < 1)
return (idn_buffer_overflow);
*v++ = c;
vlen--;
} else {
return (r);
}
} while ((*seq++ & END_BIT) == 0);
*decomp_lenp = v - vorg;
return (idn_success);
}
int
idn__unicode_iscompositecandidate(idn__unicode_version_t version,
unsigned long c) {
const struct composition *dummy;
if (c > UCS_MAX)
return (0);
/* Check for Hangul */
if ((LBase <= c && c < LBase + LCount) || (SBase <= c && c < SLast))
return (1);
/*
* Look up composition table. If there are no composition
* that begins with the given character, it is not a
* composition candidate.
*/
if ((*version->compose_proc)(c, &dummy) == 0)
return (0);
else
return (1);
}
idn_result_t
idn__unicode_compose(idn__unicode_version_t version, unsigned long c1,
unsigned long c2, unsigned long *compp) {
int n;
int lo, hi;
const struct composition *cseq;
assert(compp != NULL);
if (c1 > UCS_MAX || c2 > UCS_MAX)
return (idn_notfound);
/*
* Check for Hangul.
*/
if (LBase <= c1 && c1 < LBase + LCount &&
VBase <= c2 && c2 < VBase + VCount) {
/*
* Hangul L and V.
*/
*compp = SBase +
((c1 - LBase) * VCount + (c2 - VBase)) * TCount;
return (idn_success);
} else if (SBase <= c1 && c1 < SLast &&
TBase <= c2 && c2 < TBase + TCount &&
(c1 - SBase) % TCount == 0) {
/*
* Hangul LV and T.
*/
*compp = c1 + (c2 - TBase);
return (idn_success);
}
/*
* Look up composition table. If the result is 0, no composition
* is defined. Otherwise, upper 16bits of the result contains
* the number of composition that begins with 'c1', and the lower
* 16bits is the offset in 'compose_seq'.
*/
if ((n = (*version->compose_proc)(c1, &cseq)) == 0)
return (idn_notfound);
/*
* The composite sequences are sorted by the 2nd character 'c2'.
* So we can use binary search.
*/
lo = 0;
hi = n - 1;
while (lo <= hi) {
int mid = (lo + hi) / 2;
if (cseq[mid].c2 < c2) {
lo = mid + 1;
} else if (cseq[mid].c2 > c2) {
hi = mid - 1;
} else {
*compp = cseq[mid].comp;
return (idn_success);
}
}
return (idn_notfound);
}
| 26.632258 | 87 | 0.671996 |
ecd76c9deab6f3c9415e45880b21567e698c8b8e | 326 | h | C | src/hlstl_helper.h | hlmmd/hlstl | 961b7e51ab8d6a5a053a0a28b5dddb11d8696ca0 | [
"MIT"
] | 1 | 2021-08-29T16:08:44.000Z | 2021-08-29T16:08:44.000Z | src/hlstl_helper.h | hlmmd/hlstl | 961b7e51ab8d6a5a053a0a28b5dddb11d8696ca0 | [
"MIT"
] | null | null | null | src/hlstl_helper.h | hlmmd/hlstl | 961b7e51ab8d6a5a053a0a28b5dddb11d8696ca0 | [
"MIT"
] | null | null | null | #ifndef HLSTL_HELPER_H
#define HLSTL_HELPER_H
namespace hl
{
template <typename T1, typename T2>
struct is_same_type
{
operator bool() const
{
return false;
}
};
template <typename T1>
struct is_same_type<T1, T1>
{
operator bool() const
{
return true;
}
};
} // namespace hl
#endif | 12.074074 | 35 | 0.638037 |
ecd7f7f7e61c7c819d5eabf963886970141ea23a | 1,320 | h | C | chrome/browser/chromeos/login/enrollment/mock_auto_enrollment_check_screen.h | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/browser/chromeos/login/enrollment/mock_auto_enrollment_check_screen.h | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/browser/chromeos/login/enrollment/mock_auto_enrollment_check_screen.h | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_MOCK_AUTO_ENROLLMENT_CHECK_SCREEN_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_MOCK_AUTO_ENROLLMENT_CHECK_SCREEN_H_
#include "chrome/browser/chromeos/login/enrollment/auto_enrollment_check_screen.h"
#include "chrome/browser/chromeos/login/enrollment/auto_enrollment_check_screen_view.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
class MockAutoEnrollmentCheckScreen : public AutoEnrollmentCheckScreen {
public:
MockAutoEnrollmentCheckScreen(BaseScreenDelegate* base_screen_delegate,
AutoEnrollmentCheckScreenView* view);
~MockAutoEnrollmentCheckScreen() override;
};
class MockAutoEnrollmentCheckScreenView : public AutoEnrollmentCheckScreenView {
public:
MockAutoEnrollmentCheckScreenView();
~MockAutoEnrollmentCheckScreenView() override;
void SetDelegate(Delegate* screen) override;
MOCK_METHOD1(MockSetDelegate, void(Delegate* screen));
MOCK_METHOD0(Show, void());
private:
Delegate* screen_;
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_MOCK_AUTO_ENROLLMENT_CHECK_SCREEN_H_
| 34.736842 | 88 | 0.816667 |
ecda2fdadc7dcb09bebcc780eb408431f413e755 | 5,227 | h | C | device/api/nn_device_api.h | 01org/idlf | 6f9b1986bc67856e3019ae3c83ed8d4b8a3b3972 | [
"BSD-3-Clause"
] | 375 | 2015-03-03T12:09:07.000Z | 2019-01-14T09:22:56.000Z | device/api/nn_device_api.h | davenso/idlf | df34a6b88c1ff1880fbb2b58caccd6075dd414a5 | [
"BSD-3-Clause"
] | 5 | 2015-07-14T02:48:45.000Z | 2016-07-08T08:02:06.000Z | device/api/nn_device_api.h | davenso/idlf | df34a6b88c1ff1880fbb2b58caccd6075dd414a5 | [
"BSD-3-Clause"
] | 103 | 2015-04-18T10:57:02.000Z | 2018-07-29T23:56:12.000Z | /*
Copyright (c) 2014, Intel Corporation
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* 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.
* Neither the name of Intel Corporation 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.
*/
#pragma once
/*
This file contains API common to all Deep Learning Framework devices.
Lifetime of device:
[load device]
Device is loaded into the application.
Creation of per-device structures is kept to a minimum.
User gets a range of supported interface versions together with device type (an identifier),
device name and multi-line description (both in 8-bit ASCII, english).
Comment: this is conceptual "load" operation. Loading dynamic library containing
device itself must be done prior to this step.
[open interface]
User application opens a specific interface version.
Version must be in range of supported versions returned at [interface load] step.
At this step all internal data structures needed by selected interface version are
initialized.
[using the interface]
Interface is used to create workflows, compile them into workloads and execute
those on data.
See nn_device_interface_#.h (# is an interface version in decimal).
[close interface]
Interface is closed, all internal resources are released.
Work that is being performed at closing time is cancelled.
[unload device]
Device is unloaded.
All per-device structures created at [device load] step are released.
Comment: this is conceptual "unload" operation. Unloading dynamic library containing
device itself must be done after this step.
*/
#include <stdint.h>
#include "nn_call_convention.h"
/* enumeration of device types; will be extended in future */
typedef enum {
NN_DEVICE_TYPE_CPU = 0,
NN_DEVICE_TYPE_GPU,
NN_DEVICE_TYPE_LAST = NN_DEVICE_TYPE_GPU
} NN_DEVICE_TYPE;
/* description of device */
typedef struct {
NN_DEVICE_TYPE type; /* device type */
uint16_t version_first; /* first supported API version */
uint16_t version_last; /* last supported API version */
const char *name; /* pointer to read-only memory with device name (single line) */
const char *description; /* pointer to read-only memory with long device description (multi line)*/
} nn_device_description_t;
/*************************************************************************************************/
/* loads & initializes device
If succeeds fills device description structure and returns non-negative value.
Returns:
0: success
-1: load failed
-2: invalid pointer */
NN_API_CALL int32_t NN_API_CALL_CONVENTION nn_device_load(
nn_device_description_t *const description /* pointer to description structure */
);
/* opens interface
Fills interface structure with function pointers that client/scheduler can use.
Returns:
0: success
-1: interface open failed
-2: invalid pointer
-3: unsupported version (not in range returned from nn_device_load) */
NN_API_CALL int32_t NN_API_CALL_CONVENTION nn_device_interface_open(
uint32_t version, /* version of interface to create */
void *const device_interface /* pointer to interface structure */
);
/* closes interface
Clears interface structure and releases any outstanding client memory.
Returns:
0: success
-1: interface close failed
-2: invalid pointer
-3: trying to release interface by driver that did not create it */
NN_API_CALL int32_t NN_API_CALL_CONVENTION nn_device_interface_close(
void *const device_interface /* pointer to interface structure */
);
/* unloads & de-initializes device.
Performs pre-unload steps, releases all resources & If succeeds returns non-negative value.
Returns:
0: success
-1: unload failed */
NN_API_CALL int32_t NN_API_CALL_CONVENTION nn_device_unload();
| 39.007463 | 110 | 0.731012 |
ecda8b658431abb3af84a527be2a5efd920b3a0d | 1,854 | h | C | src/raven_src/src/SurfaceEnergyExchange.h | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | src/raven_src/src/SurfaceEnergyExchange.h | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | src/raven_src/src/SurfaceEnergyExchange.h | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | /*----------------------------------------------------------------
Raven Library Source Code
Copyright (c) 2008-2020 the Raven Development Team
------------------------------------------------------------------
definitions of surface energy transfer classes
----------------------------------------------------------------*/
#ifndef SURFACEEXCHANGE_H
#define SURFACEEXCHANGE_H
#include "RavenInclude.h"
#include "Model.h"
#include "Transport.h"
////////////////////////////////////////////////////////////////////
/// \brief Data abstraction for transfer of energy from atmosphere to land surface (canopy/soil/snow/depression)
//
class CmvPartitionEnergy : public CHydroProcessABC
{
private:/*------------------------------------------------------*/
const CTransportModel *_pTransModel;
double GetStorTemp(int iEnth,int iWatStor,const double &Tair,const double *state_vars) const;
public:/*-------------------------------------------------------*/
//Constructors/destructors:
CmvPartitionEnergy(const CTransportModel *pTransMod);
~CmvPartitionEnergy();
//inherited functions
void Initialize();
void GetRatesOfChange(const double *state_vars,
const CHydroUnit *pHRU,
const optStruct &Options,
const time_struct &tt,
double *rates) const;
void ApplyConstraints(const double *state_vars,
const CHydroUnit *pHRU,
const optStruct &Options,
const time_struct &tt,
double *rates) const;
void GetParticipatingParamList(string *aP,class_type *aPC,int &nP) const;
static void GetParticipatingStateVarList(sv_type *aSV,int *aLev,int &nSV);
};
#endif
| 37.836735 | 113 | 0.503236 |
ecdb18b5f90306288464664b5c4d29676b13ca33 | 2,359 | c | C | Demo/CORTEX_A9_Zynq_Zedboard_SDK/SmallRTOSDemo/src/SmallRTOS/OS/OSMutex.c | PeterPan506/SmallRTOS | 9bbb6be681f6901c0c76f1f4eec9625a0b62c019 | [
"DOC"
] | 1 | 2021-04-01T13:03:22.000Z | 2021-04-01T13:03:22.000Z | Kernel/OS/OSMutex.c | PeterPan506/SmallRTOS | 9bbb6be681f6901c0c76f1f4eec9625a0b62c019 | [
"DOC"
] | null | null | null | Kernel/OS/OSMutex.c | PeterPan506/SmallRTOS | 9bbb6be681f6901c0c76f1f4eec9625a0b62c019 | [
"DOC"
] | 1 | 2016-03-25T00:24:33.000Z | 2016-03-25T00:24:33.000Z | /**********************************************************************************************************
SmallRTOS - Copyright (C) 2012~2016 SmallRTOS.ORG All rights reserved.
http://www.SmallRTOS.org - Documentation, latest information, license and contact details.
http://www.SmallRTOS.com - Commercial support, development, porting, licensing and training services.
***********************************************************************************************************/
#include "SmallRTOS.h"
//#include "OSSemaphore.h"
//#include "OSMutex.h"
#ifdef __cplusplus
extern "C" {
#endif
#if (OS_MUTEX_ON==1)
#define queueMUTEX_GIVE_BLOCK_TIME ( ( uOSTick_t ) 0U )
OSQHandle_t OSQCreateMutex( const uOS8_t ucQueueType )
{
tOSQueue_t *ptNewQ;
/* Allocate the new queue structure. */
ptNewQ = ( tOSQueue_t * ) OSMemMalloc( sizeof( tOSQueue_t ) );
if( ptNewQ != NULL )
{
/* Information required for priority inheritance. */
ptNewQ->pcHead = NULL;
ptNewQ->pxMutexHolder = NULL;//ptNewQ->pcTail = NULL;
/* Queues used as a mutex no data is actually copied into or out
of the queue. */
ptNewQ->pcWriteTo = NULL;
ptNewQ->u.pcReadFrom = NULL;
/* Each mutex has a length of 1 (like a binary semaphore) and
an item size of 0 as nothing is actually copied into or out
of the mutex. */
ptNewQ->uxCurNum = ( uOSBase_t ) 0U;
ptNewQ->uxMaxNum = ( uOSBase_t ) 1U;
ptNewQ->uxItemSize = ( uOSBase_t ) 0U;
ptNewQ->xRxLock = OSQSTATE_UNLOCKED;
ptNewQ->xTxLock = OSQSTATE_UNLOCKED;
ptNewQ->ucQueueType = ucQueueType;
/* Ensure the event queues start with the correct state. */
OSListInitialise( &( ptNewQ->tTaskListSend ) );
OSListInitialise( &( ptNewQ->tTaskListReceive ) );
/* Start with the semaphore in the expected state. */
( void ) OSQSend( ptNewQ, NULL, ( uOSTick_t ) 0U, OSQMODE_SEND_TO_BACK );
}
return ptNewQ;
}
OSMutexHandle_t OSMutexCreate( void )
{
return OSQCreateMutex( OSQTYPE_MUTEX );
}
void OSMutexDelete( OSMutexHandle_t MutexHandle )
{
OSQDelete( ( OSQHandle_t )MutexHandle );
}
sOSBase_t OSMutexLock( OSMutexHandle_t MutexHandle, uOSTick_t xTicksToWait)
{
return OSSemPend( ( OSSemHandle_t )MutexHandle, xTicksToWait);
}
sOSBase_t OSMutexUnlock( OSMutexHandle_t MutexHandle)
{
return OSSemPost( ( OSSemHandle_t )MutexHandle);
}
#endif //(OS_MUTEX_ON==1)
#ifdef __cplusplus
}
#endif
| 29.123457 | 108 | 0.660025 |
ecdc6376ace474dac2143d0e7ccae4ba28f02c8e | 1,194 | h | C | pdfium/core/fxcrt/cfx_readonlymemorystream.h | jdeng/jbig2dec | b84f046d5e394a9e61338d78febb404a402f35fa | [
"Unlicense"
] | 25 | 2019-05-07T16:16:40.000Z | 2022-03-30T09:04:00.000Z | pdfium/core/fxcrt/cfx_readonlymemorystream.h | jdeng/jbig2dec | b84f046d5e394a9e61338d78febb404a402f35fa | [
"Unlicense"
] | 4 | 2020-10-20T13:09:56.000Z | 2021-04-10T00:23:35.000Z | pdfium/core/fxcrt/cfx_readonlymemorystream.h | jdeng/jbig2dec | b84f046d5e394a9e61338d78febb404a402f35fa | [
"Unlicense"
] | 11 | 2019-09-11T20:43:10.000Z | 2022-03-30T09:04:01.000Z | // Copyright 2018 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef CORE_FXCRT_CFX_READONLYMEMORYSTREAM_H_
#define CORE_FXCRT_CFX_READONLYMEMORYSTREAM_H_
#include <memory>
#include "core/fxcrt/fx_memory_wrappers.h"
#include "core/fxcrt/fx_stream.h"
#include "core/fxcrt/retain_ptr.h"
#include "third_party/base/span.h"
class CFX_ReadOnlyMemoryStream final : public IFX_SeekableReadStream {
public:
CONSTRUCT_VIA_MAKE_RETAIN;
// IFX_SeekableReadStream:
FX_FILESIZE GetSize() override;
bool ReadBlockAtOffset(void* buffer,
FX_FILESIZE offset,
size_t size) override;
private:
CFX_ReadOnlyMemoryStream(std::unique_ptr<uint8_t, FxFreeDeleter> data,
size_t size);
explicit CFX_ReadOnlyMemoryStream(pdfium::span<const uint8_t> span);
~CFX_ReadOnlyMemoryStream() override;
std::unique_ptr<uint8_t, FxFreeDeleter> m_data;
const pdfium::span<const uint8_t> m_span;
};
#endif // CORE_FXCRT_CFX_READONLYMEMORYSTREAM_H_
| 31.421053 | 80 | 0.745394 |
ecdc7b5d24f8187087e50710a2df091fd8e67baa | 36,632 | h | C | src/ompl/tools/thunder/SPARSdb.h | ivaROS/ivaOmplCore | 3f5f47bb8f20c5eb82e84564342dd45f39d0c5f9 | [
"BSD-3-Clause"
] | null | null | null | src/ompl/tools/thunder/SPARSdb.h | ivaROS/ivaOmplCore | 3f5f47bb8f20c5eb82e84564342dd45f39d0c5f9 | [
"BSD-3-Clause"
] | null | null | null | src/ompl/tools/thunder/SPARSdb.h | ivaROS/ivaOmplCore | 3f5f47bb8f20c5eb82e84564342dd45f39d0c5f9 | [
"BSD-3-Clause"
] | 2 | 2020-04-16T14:01:10.000Z | 2021-08-20T09:46:59.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, Rutgers the State University of New Jersey, New Brunswick
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * 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.
* * Neither the name of Rutgers University 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.
*********************************************************************/
/* Author: Andrew Dobson, Dave Coleman */
#ifndef OMPL_TOOLS_THUNDER_SPARS_DB_
#define OMPL_TOOLS_THUNDER_SPARS_DB_
#include <ompl/geometric/planners/PlannerIncludes.h>
#include <ompl/datastructures/NearestNeighbors.h>
#include <ompl/geometric/PathSimplifier.h>
#include <ompl/util/Time.h>
#include <boost/range/adaptor/map.hpp>
#include <boost/unordered_map.hpp>
#include <boost/graph/graph_traits.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/filtered_graph.hpp>
#include <boost/graph/graph_utility.hpp>
#include <boost/graph/astar_search.hpp>
#include <boost/graph/connected_components.hpp>
#include <boost/property_map/property_map.hpp>
#include <boost/pending/disjoint_sets.hpp>
#include <boost/function.hpp>
#include <boost/thread.hpp>
#include <iostream>
#include <fstream>
#include <utility>
#include <vector>
#include <map>
namespace ompl
{
namespace geometric
{
/**
@anchor gSPARSdb
@par Short description
SPARSdb is a variant of the SPARS algorithm which removes the
dependency on having the dense graph, D. It works through similar
mechanics, but uses a different approach to identifying interfaces
and computing shortest paths through said interfaces.
This version has been modified for use with Thunder
@par External documentation
A. Dobson, K. Bekris,
Improving Sparse Roadmap Spanners,
<em>IEEE International Conference on Robotics and Automation (ICRA)</em> May 2013.
<a href="http://www.cs.rutgers.edu/~kb572/pubs/spars2.pdf">[PDF]</a>
*/
/** \brief <b> SPArse Roadmap Spanner Version 2.0 </b> */
class SPARSdb : public base::Planner
{
public:
/** \brief Enumeration which specifies the reason a guard is added to the spanner. */
enum GuardType
{
START,
GOAL,
COVERAGE,
CONNECTIVITY,
INTERFACE,
QUALITY,
};
////////////////////////////////////////////////////////////////////////////////////////
// BOOST GRAPH DETAILS
////////////////////////////////////////////////////////////////////////////////////////
/** \brief The type used internally for representing vertex IDs */
typedef unsigned long int VertexIndexType;
/** \brief Pair of vertices which support an interface. */
typedef std::pair< VertexIndexType, VertexIndexType > VertexPair;
////////////////////////////////////////////////////////////////////////////////////////
/** \brief Interface information storage class, which does bookkeeping for criterion four. */
struct InterfaceData
{
/** \brief States which lie inside the visibility region of a vertex and support an interface. */
base::State *pointA_;
base::State *pointB_;
/** \brief States which lie just outside the visibility region of a vertex and support an interface. */
base::State *sigmaA_;
base::State *sigmaB_;
/** \brief Last known distance between the two interfaces supported by points_ and sigmas. */
double d_;
/** \brief Constructor */
InterfaceData() :
pointA_(NULL),
pointB_(NULL),
sigmaA_(NULL),
sigmaB_(NULL),
d_(std::numeric_limits<double>::infinity())
{
}
/** \brief Clears the given interface data. */
void clear(const base::SpaceInformationPtr& si)
{
if (pointA_)
{
si->freeState(pointA_);
pointA_ = NULL;
}
if (pointB_)
{
si->freeState(pointB_);
pointB_ = NULL;
}
if (sigmaA_)
{
si->freeState(sigmaA_);
sigmaA_ = NULL;
}
if (sigmaB_)
{
si->freeState(sigmaB_);
sigmaB_ = NULL;
}
d_ = std::numeric_limits<double>::infinity();
}
/** \brief Sets information for the first interface (i.e. interface with smaller index vertex). */
void setFirst(const base::State *p, const base::State *s, const base::SpaceInformationPtr& si)
{
if (pointA_)
si->copyState(pointA_, p);
else
pointA_ = si->cloneState(p);
if (sigmaA_)
si->copyState(sigmaA_, s);
else
sigmaA_ = si->cloneState(s);
if (pointB_)
d_ = si->distance(pointA_, pointB_);
}
/** \brief Sets information for the second interface (i.e. interface with larger index vertex). */
void setSecond(const base::State *p, const base::State *s, const base::SpaceInformationPtr& si)
{
if (pointB_)
si->copyState(pointB_, p);
else
pointB_ = si->cloneState(p);
if (sigmaB_)
si->copyState(sigmaB_, s);
else
sigmaB_ = si->cloneState(s);
if (pointA_)
d_ = si->distance(pointA_, pointB_);
}
};
/** \brief the hash which maps pairs of neighbor points to pairs of states */
typedef boost::unordered_map< VertexPair, InterfaceData, boost::hash< VertexPair > > InterfaceHash;
////////////////////////////////////////////////////////////////////////////////////////
// The InterfaceHash structure is wrapped inside of this struct due to a compilation error on
// GCC 4.6 with Boost 1.48. An implicit assignment operator overload does not compile with these
// components, so an explicit overload is given here.
// Remove this struct when the minimum Boost requirement is > v1.48.
struct InterfaceHashStruct
{
InterfaceHashStruct& operator=(const InterfaceHashStruct &rhs) { interfaceHash = rhs.interfaceHash; return *this; }
InterfaceHash interfaceHash;
};
////////////////////////////////////////////////////////////////////////////////////////
// Vertex properties
struct vertex_state_t {
typedef boost::vertex_property_tag kind;
};
struct vertex_color_t {
typedef boost::vertex_property_tag kind;
};
struct vertex_interface_data_t {
typedef boost::vertex_property_tag kind;
};
////////////////////////////////////////////////////////////////////////////////////////
// Edge properties
struct edge_collision_state_t {
typedef boost::edge_property_tag kind;
};
/** \brief Possible collision states of an edge */
enum EdgeCollisionState
{
NOT_CHECKED,
IN_COLLISION,
FREE
};
/** \brief Struct for passing around partially solved solutions */
struct CandidateSolution
{
bool isApproximate_;
base::PathPtr path_;
// Edge 0 is edge from vertex 0 to vertex 1. Thus, there is n-1 edges for n vertices
std::vector<EdgeCollisionState> edgeCollisionStatus_;
// TODO save the collision state of the vertexes also?
std::size_t getStateCount()
{
return static_cast<ompl::geometric::PathGeometric&>(*path_).getStateCount();
}
ompl::geometric::PathGeometric& getGeometricPath()
{
return static_cast<ompl::geometric::PathGeometric&>(*path_);
}
};
////////////////////////////////////////////////////////////////////////////////////////
/**
@brief The underlying roadmap graph.
@par Any BGL graph representation could be used here. Because we
expect the roadmap to be sparse (m<n^2), an adjacency_list is more
appropriate than an adjacency_matrix. Edges are undirected.
*Properties of vertices*
- vertex_state_t: an ompl::base::State* is required for OMPL
- vertex_predecessor_t: The incremental connected components algorithm requires it
- vertex_rank_t: The incremental connected components algorithm requires it
- vertex_color_t - TODO
- vertex_interface_data_t - needed by SPARS2 for maintainings its sparse properties
Note: If boost::vecS is not used for vertex storage, then there must also
be a boost:vertex_index_t property manually added.
*Properties of edges*
- edge_weight_t - cost/distance between two vertices
- edge_collision_state_t - used for lazy collision checking, determines if an edge has been checked
already for collision. 0 = not checked/unknown, 1 = in collision, 2 = free
*/
/** Wrapper for the vertex's multiple as its property. */
typedef boost::property < vertex_state_t, base::State*,
boost::property < boost::vertex_predecessor_t, VertexIndexType,
boost::property < boost::vertex_rank_t, VertexIndexType,
boost::property < vertex_color_t, GuardType,
boost::property < vertex_interface_data_t, InterfaceHashStruct > > > > > VertexProperties;
/** Wrapper for the double assigned to an edge as its weight property. */
typedef boost::property < boost::edge_weight_t, double,
boost::property < edge_collision_state_t, int > > EdgeProperties;
/** The underlying boost graph type (undirected weighted-edge adjacency list with above properties). */
typedef boost::adjacency_list <
boost::vecS, // store in std::vector
boost::vecS, // store in std::vector
boost::undirectedS,
VertexProperties,
EdgeProperties
> Graph;
/** \brief Vertex in Graph */
typedef boost::graph_traits<Graph>::vertex_descriptor Vertex;
/** \brief Edge in Graph */
typedef boost::graph_traits<Graph>::edge_descriptor Edge;
////////////////////////////////////////////////////////////////////////////////////////
// Typedefs for property maps
/** \brief Access map that stores the lazy collision checking status of each edge */
typedef boost::property_map<Graph, edge_collision_state_t>::type EdgeCollisionStateMap;
////////////////////////////////////////////////////////////////////////////////////////
/**
* Used to artifically supress edges during A* search.
* @implements ReadablePropertyMapConcept
*/
class edgeWeightMap
{
private:
const Graph &g_; // Graph used
const EdgeCollisionStateMap &collisionStates_;
public:
/** Map key type. */
typedef Edge key_type;
/** Map value type. */
typedef double value_type;
/** Map auxiliary value type. */
typedef double &reference;
/** Map type. */
typedef boost::readable_property_map_tag category;
/**
* Construct map for certain constraints.
* @param graph Graph to use
*/
edgeWeightMap (const Graph &graph, const EdgeCollisionStateMap &collisionStates);
/**
* Get the weight of an edge.
* @param e the edge
* @return infinity if \a e lies in a forbidden neighborhood; actual weight of \a e otherwise
*/
double get (Edge e) const;
};
////////////////////////////////////////////////////////////////////////////////////////
/**
* Thrown to stop the A* search when finished.
*/
class foundGoalException
{
};
////////////////////////////////////////////////////////////////////////////////////////
/**
* Vertex visitor to check if A* search is finished.
* @implements AStarVisitorConcept
*/
class CustomVisitor : public boost::default_astar_visitor
{
private:
Vertex goal; // Goal Vertex of the search
public:
/**
* Construct a visitor for a given search.
* @param goal goal vertex of the search
*/
CustomVisitor (Vertex goal);
/**
* Check if we have arrived at the goal.
* @param u current vertex
* @param g graph we are searching on
* @throw foundGoalException if \a u is the goal
*/
void examine_vertex(Vertex u, const Graph &g) const;
};
////////////////////////////////////////////////////////////////////////////////////////
// SPARS MEMBER FUNCTIONS
////////////////////////////////////////////////////////////////////////////////////////
/** \brief Constructor */
SPARSdb(const base::SpaceInformationPtr &si);
/** \brief Destructor */
virtual ~SPARSdb();
virtual void setProblemDefinition(const base::ProblemDefinitionPtr &pdef);
/** \brief Sets the stretch factor */
void setStretchFactor(double t)
{
stretchFactor_ = t;
}
/** \brief Sets vertex visibility range as a fraction of max. extent. */
void setSparseDeltaFraction( double D )
{
sparseDeltaFraction_ = D;
if (sparseDelta_ > 0.0) // setup was previously called
sparseDelta_ = D * si_->getMaximumExtent();
}
/** \brief Sets interface support tolerance as a fraction of max. extent. */
void setDenseDeltaFraction( double d )
{
denseDeltaFraction_ = d;
if (denseDelta_ > 0.0) // setup was previously called
denseDelta_ = d * si_->getMaximumExtent();
}
/** \brief Sets the maximum failures until termination */
void setMaxFailures( unsigned int m )
{
maxFailures_ = m;
}
/** \brief Retrieve the maximum consecutive failure limit. */
unsigned int getMaxFailures( ) const
{
return maxFailures_;
}
/** \brief Retrieve the dense graph interface support delta. */
double getDenseDeltaFraction( ) const
{
return denseDeltaFraction_;
}
/** \brief Retrieve the sparse graph visibility range delta. */
double getSparseDeltaFraction( ) const
{
return sparseDeltaFraction_;
}
/** \brief Retrieve the spanner's set stretch factor. */
double getStretchFactor( ) const
{
return stretchFactor_;
}
bool getGuardSpacingFactor(const double pathLength, double &numGuards, double &spacingFactor);
/**
* \brief Calculate the distance that should be used in inserting nodes into the db
* \param path length - from the trajectory
* \param num guards - the output result
* \param spacing factor - what fraction of the sparsedelta should be used in placing guards
* \return
*/
bool getGuardSpacingFactor(const double pathLength, int &numGuards, double &spacingFactor);
bool addPathToRoadmap(const base::PlannerTerminationCondition &ptc,
ompl::geometric::PathGeometric& solutionPath);
bool checkStartGoalConnection(ompl::geometric::PathGeometric& solutionPath);
bool addStateToRoadmap(const base::PlannerTerminationCondition &ptc, base::State *newState);
/** \brief Function that can solve the motion planning
problem. This function can be called multiple times on
the same problem, without calling clear() in
between. This allows the planner to continue work for
more time on an unsolved problem, for example. Start
and goal states from the currently specified
ProblemDefinition are cached. This means that between
calls to solve(), input states are only added, not
removed. When using PRM as a multi-query planner, the
input states should be however cleared, without
clearing the roadmap itself. This can be done using
the clearQuery() function. */
virtual base::PlannerStatus solve(const base::PlannerTerminationCondition &ptc);
/** \brief Clear the query previously loaded from the ProblemDefinition.
Subsequent calls to solve() will reuse the previously computed roadmap,
but will clear the set of input states constructed by the previous call to solve().
This enables multi-query functionality for PRM. */
void clearQuery();
virtual void clear();
/** \brief Set a different nearest neighbors datastructure */
template<template<typename T> class NN>
void setNearestNeighbors()
{
nn_.reset(new NN< Vertex >());
if (isSetup())
setup();
}
/**
* \brief Search the roadmap for the best path close to the given start and goal states that is valid
* \param nearestK - unused
* \param start
* \param goal
* \param geometricSolution - the resulting path
* \return
*/
bool getSimilarPaths(int nearestK, const base::State* start, const base::State* goal,
CandidateSolution &candidateSolution,
const base::PlannerTerminationCondition &ptc);
virtual void setup();
/** \brief Retrieve the computed roadmap. */
const Graph& getRoadmap() const
{
return g_;
}
/** \brief Get the number of vertices in the sparse roadmap. */
unsigned int getNumVertices() const
{
return boost::num_vertices(g_);
}
/** \brief Get the number of edges in the sparse roadmap. */
unsigned int getNumEdges() const
{
return boost::num_edges(g_);
}
/** \brief Get the number of disjoint sets in the sparse roadmap. */
unsigned int getNumConnectedComponents() const
{
// Make sure graph is populated
if (!getNumVertices())
return 0;
std::vector<int> components(boost::num_vertices(g_));
// it always overcounts by 1, i think because it is missing vertex 0 which is the new state insertion component
return boost::connected_components(g_, &components[0]) - 1;
}
/** \brief Get the number of times a path was inserted into the database and it failed to have connectivity */
unsigned int getNumPathInsertionFailed() const
{
return numPathInsertionFailures_;
}
/** \brief description */
unsigned int getNumConsecutiveFailures() const
{
return consecutiveFailures_;
}
/** \brief Get the number of iterations the algorithm performed */
long unsigned int getIterations() const
{
return iterations_;
}
/**
* \brief Convert astar results to correctly ordered path
* \param vertexPath - in reverse
* \param start - actual start that is probably not included in new path
* \param goal - actual goal that is probably not included in new path
* \param path - returned solution
* \param disableCollisionWarning - if the func should ignore edges that are not checked
* \return true on success
*/
bool convertVertexPathToStatePath(std::vector<Vertex> &vertexPath,
const base::State* actualStart,
const base::State* actualGoal,
CandidateSolution &candidateSolution,
bool disableCollisionWarning = false);
virtual void getPlannerData(base::PlannerData &data) const;
/**
* \brief Set the sparse graph from file
* \param a pre-built graph
*/
void setPlannerData(const base::PlannerData &data);
/** \brief Returns whether we have reached the iteration failures limit, maxFailures_ */
bool reachedFailureLimit () const;
/** \brief Print debug information about planner */
void printDebug(std::ostream &out = std::cout) const;
/** \brief Clear all past edge state information about in collision or not */
void clearEdgeCollisionStates();
protected:
/** \brief Free all the memory allocated by the planner */
void freeMemory();
/** \brief Check that the query vertex is initialized (used for internal nearest neighbor searches) */
void checkQueryStateInitialization();
/** \brief Checks to see if the sample needs to be added to ensure coverage of the space */
bool checkAddCoverage(const base::State *qNew, std::vector<Vertex> &visibleNeighborhood);
/** \brief Checks to see if the sample needs to be added to ensure connectivity */
bool checkAddConnectivity(const base::State *qNew, std::vector<Vertex> &visibleNeighborhood);
/** \brief Checks to see if the current sample reveals the existence of an interface, and if so, tries to bridge it. */
bool checkAddInterface(const base::State *qNew, std::vector<Vertex> &graphNeighborhood,
std::vector<Vertex> &visibleNeighborhood);
/** \brief Checks vertex v for short paths through its region and adds when appropriate. */
bool checkAddPath( Vertex v );
/** \brief A reset function for resetting the failures count */
void resetFailures();
/** \brief Finds visible nodes in the graph near state */
void findGraphNeighbors(base::State *state, std::vector<Vertex> &graphNeighborhood,
std::vector<Vertex> &visibleNeighborhood);
/**
* \brief Finds nodes in the graph near state NOTE: note tested for visibility
* \param state - vertex to find neighbors around
* \param result
* \return false is no neighbors found
*/
bool findGraphNeighbors(const base::State *state, std::vector<Vertex> &graphNeighborhood);
/** \brief Approaches the graph from a given vertex */
void approachGraph( Vertex v );
/** \brief Finds the representative of the input state, st */
Vertex findGraphRepresentative(base::State *st);
/** \brief Finds representatives of samples near qNew_ which are not his representative */
void findCloseRepresentatives(base::State *workState, const base::State *qNew, Vertex qRep,
std::map<Vertex, base::State*> &closeRepresentatives,
const base::PlannerTerminationCondition &ptc);
/** \brief High-level method which updates pair point information for repV_ with neighbor r */
void updatePairPoints(Vertex rep, const base::State *q, Vertex r, const base::State *s);
/** \brief Computes all nodes which qualify as a candidate v" for v and vp */
void computeVPP(Vertex v, Vertex vp, std::vector<Vertex> &VPPs);
/** \brief Computes all nodes which qualify as a candidate x for v, v', and v" */
void computeX(Vertex v, Vertex vp, Vertex vpp, std::vector<Vertex> &Xs);
/** \brief Rectifies indexing order for accessing the vertex data */
VertexPair index( Vertex vp, Vertex vpp );
/** \brief Retrieves the Vertex data associated with v,vp,vpp */
InterfaceData& getData( Vertex v, Vertex vp, Vertex vpp );
/** \brief Performs distance checking for the candidate new state, q against the current information */
void distanceCheck(Vertex rep, const base::State *q, Vertex r, const base::State *s, Vertex rp);
/** \brief When a new guard is added at state st, finds all guards who must abandon their interface information and deletes that information */
void abandonLists(base::State *st);
/** \brief Construct a guard for a given state (\e state) and store it in the nearest neighbors data structure */
Vertex addGuard(base::State *state, GuardType type);
/** \brief Connect two guards in the roadmap */
void connectGuards( Vertex v, Vertex vp );
/** \brief Check if there exists a solution, i.e., there exists a pair of milestones such that the first is in \e start and the second is in \e goal, and the two milestones are in the same connected component. If a solution is found, the path is saved. */
bool getPaths(const std::vector<Vertex> &candidateStarts,
const std::vector<Vertex> &candidateGoals,
const base::State* actualStart,
const base::State* actualGoal,
CandidateSolution &candidateSolution,
const base::PlannerTerminationCondition &ptc);
/**
* \brief Repeatidly search through graph for connection then check for collisions then repeat
* \return true if a valid path is found
*/
bool lazyCollisionSearch(const Vertex &start,
const Vertex &goal,
const base::State* actualStart,
const base::State* actualGoal,
CandidateSolution &candidateSolution,
const base::PlannerTerminationCondition &ptc);
/** \brief Check recalled path for collision and disable as needed */
bool lazyCollisionCheck(std::vector<Vertex> &vertexPath, const base::PlannerTerminationCondition &ptc);
/** Thread that checks for solution */
void checkForSolution(const base::PlannerTerminationCondition &ptc, base::PathPtr &solution);
/** \brief Given two milestones from the same connected component, construct a path connecting them and set it as the solution
* \param start
* \param goal
* \param vertexPath
* \return true if candidate solution found
*/
bool constructSolution(const Vertex start, const Vertex goal,
std::vector<Vertex> &vertexPath) const;
/** \brief Check if two milestones (\e m1 and \e m2) are part of the same connected component. This is not a const function since we use incremental connected components from boost */
bool sameComponent(Vertex m1, Vertex m2);
/** \brief Compute distance between two milestones (this is simply distance between the states of the milestones) */
double distanceFunction(const Vertex a, const Vertex b) const
{
return si_->distance(stateProperty_[a], stateProperty_[b]);
}
/** \brief Sampler user for generating valid samples in the state space */
base::ValidStateSamplerPtr sampler_;
/** \brief Nearest neighbors data structure */
boost::shared_ptr< NearestNeighbors<Vertex> > nn_;
/** \brief Connectivity graph */
Graph g_;
/** \brief Array of start milestones */
std::vector<Vertex> startM_;
/** \brief Array of goal milestones */
std::vector<Vertex> goalM_;
/** \brief Vertex for performing nearest neighbor queries. */
Vertex queryVertex_;
/** \brief Stretch Factor as per graph spanner literature (multiplicative bound on path quality) */
double stretchFactor_;
/** \brief Maximum visibility range for nodes in the graph as a fraction of maximum extent. */
double sparseDeltaFraction_;
/** \brief Maximum range for allowing two samples to support an interface as a fraction of maximum extent. */
double denseDeltaFraction_;
/** \brief The number of consecutive failures to add to the graph before termination */
unsigned int maxFailures_;
/** \brief Track how many solutions fail to have connectivity at end */
unsigned int numPathInsertionFailures_;
/** \brief Number of sample points to use when trying to detect interfaces. */
unsigned int nearSamplePoints_;
/** \brief A path simplifier used to simplify dense paths added to the graph */
PathSimplifierPtr psimp_;
/** \brief Access to the weights of each Edge */
boost::property_map<Graph, boost::edge_weight_t>::type edgeWeightProperty_; // TODO: this is not used
/** \brief Access to the collision checking state of each Edge */
EdgeCollisionStateMap edgeCollisionStateProperty_;
/** \brief Access to the internal base::state at each Vertex */
boost::property_map<Graph, vertex_state_t>::type stateProperty_;
/** \brief Access to the colors for the vertices */
boost::property_map<Graph, vertex_color_t>::type colorProperty_;
/** \brief Access to the interface pair information for the vertices */
boost::property_map<Graph, vertex_interface_data_t>::type interfaceDataProperty_;
/** \brief Data structure that maintains the connected components */
boost::disjoint_sets<
boost::property_map<Graph, boost::vertex_rank_t>::type,
boost::property_map<Graph, boost::vertex_predecessor_t>::type >
disjointSets_;
/** \brief Random number generator */
RNG rng_;
/** \brief A flag indicating that a solution has been added during solve() */
bool addedSolution_;
/** \brief A counter for the number of consecutive failed iterations of the algorithm */
unsigned int consecutiveFailures_;
/** \brief A counter for the number of iterations of the algorithm */
long unsigned int iterations_;
/** \brief Maximum visibility range for nodes in the graph */
double sparseDelta_;
/** \brief Maximum range for allowing two samples to support an interface */
double denseDelta_;
/** \brief Used by getSimilarPaths */
std::vector<Vertex> startVertexCandidateNeighbors_;
std::vector<Vertex> goalVertexCandidateNeighbors_;
/** \brief Option to enable debugging output */
bool verbose_;
};
}
}
#endif
| 45.618929 | 267 | 0.525988 |
ecdd26b3ba87d7bc693036464196a5b0872c7175 | 4,944 | h | C | include/nbl/system/ILogger.h | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | null | null | null | include/nbl/system/ILogger.h | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | null | null | null | include/nbl/system/ILogger.h | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | null | null | null | #ifndef _NBL_SYSTEM_I_LOGGER_INCLUDED_
#define _NBL_SYSTEM_I_LOGGER_INCLUDED_
#include "nbl/core/IReferenceCounted.h"
#include "nbl/core/decl/smart_refctd_ptr.h"
#include "nbl/core/util/bitflag.h"
#include <string>
#include <cstdint>
#include <chrono>
#include <cassert>
#include <sstream>
#include <iomanip>
#include <regex>
#include <cstdarg>
#include <codecvt>
namespace nbl::system
{
class ILogger : public core::IReferenceCounted
{
public:
enum E_LOG_LEVEL : uint8_t
{
ELL_NONE = 0,
ELL_DEBUG = 1,
ELL_INFO = 2,
ELL_WARNING = 4,
ELL_PERFORMANCE = 8,
ELL_ERROR = 16
};
protected:
static core::bitflag<E_LOG_LEVEL> defaultLogMask();
public:
ILogger(core::bitflag<E_LOG_LEVEL> logLevelMask) : m_logLevelMask(logLevelMask) {}
void log(const std::string_view& fmtString, E_LOG_LEVEL logLevel = ELL_DEBUG, ...)
{
if (logLevel & m_logLevelMask.value)
{
va_list args;
va_start(args, logLevel);
log_impl(fmtString, logLevel, args);
va_end(args);
}
}
inline core::bitflag<E_LOG_LEVEL> getLogLevelMask() const
{
return m_logLevelMask;
}
protected:
virtual void log_impl(const std::string_view& fmtString, E_LOG_LEVEL logLevel, va_list args) = 0;
virtual std::string constructLogString(const std::string_view& fmtString, E_LOG_LEVEL logLevel, va_list l)
{
using namespace std::literals;
using namespace std::chrono;
auto currentTime = std::chrono::system_clock::now();
const std::time_t t = std::chrono::system_clock::to_time_t(currentTime);
// Since there is no real way in c++ to get current time with microseconds, this is my weird approach
auto time_since_epoch = duration_cast<microseconds>(system_clock::now().time_since_epoch());
auto time_since_epoch_s = duration_cast<seconds>(system_clock::now().time_since_epoch());
time_since_epoch -= duration_cast<microseconds>(time_since_epoch_s);
// This while is for the microseconds which are less that 6 digits long to be aligned with the others
while (time_since_epoch.count() / 100000 == 0) time_since_epoch *= 10;
auto time = std::localtime(&t);
constexpr size_t DATE_STR_LENGTH = 28;
std::string timeStr(DATE_STR_LENGTH, '\0');
sprintf(timeStr.data(), "[%02d.%02d.%d %02d:%02d:%02d:%d]", time->tm_mday, time->tm_mon + 1, 1900 + time->tm_year, time->tm_hour, time->tm_min, time->tm_sec, (int)time_since_epoch.count());
std::string messageTypeStr;
switch (logLevel)
{
case ELL_DEBUG:
messageTypeStr = "[DEBUG]";
break;
case ELL_INFO:
messageTypeStr = "[INFO]";
break;
case ELL_WARNING:
messageTypeStr = "[WARNING]";
break;
case ELL_PERFORMANCE:
messageTypeStr = "[PERFORMANCE]";
break;
case ELL_ERROR:
messageTypeStr = "[ERROR]";
break;
case ELL_NONE:
return "";
}
size_t newSize = vsnprintf(nullptr, 0, fmtString.data(), l) + 1;
std::string message(newSize, '\0');
vsnprintf(message.data(), newSize, fmtString.data(), l);
std::string out_str(timeStr.length() + messageTypeStr.length() + message.length() + 3, '\0');
sprintf(out_str.data(), "%s%s: %s\n", timeStr.data(), messageTypeStr.data(), message.data());
return out_str;
return "";
}
virtual std::wstring constructLogWstring(const std::wstring_view& fmtString, E_LOG_LEVEL logLevel, va_list l)
{
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
std::string narrow = converter.to_bytes(std::wstring(fmtString));
std::string narrowStr = constructLogString(narrow, logLevel, l);
std::wstring wide = converter.from_bytes(narrowStr);
return wide;
}
private:
core::bitflag<E_LOG_LEVEL> m_logLevelMask;
};
class logger_opt_ptr final
{
public:
logger_opt_ptr(ILogger* const _logger) : logger(_logger) {}
~logger_opt_ptr() = default;
template<typename... Args>
void log(const std::string_view& fmtString, ILogger::E_LOG_LEVEL logLevel = ILogger::ELL_DEBUG, Args&&... args) const
{
if (logger != nullptr)
return logger->log(fmtString, logLevel, std::forward<Args>(args)...);
}
ILogger* get() const { return logger; }
private:
mutable ILogger* logger;
};
class logger_opt_smart_ptr final
{
public:
logger_opt_smart_ptr(core::smart_refctd_ptr<ILogger>&& _logger) : logger(std::move(_logger)) {}
logger_opt_smart_ptr(std::nullptr_t t) : logger(nullptr) {}
~logger_opt_smart_ptr() = default;
template<typename... Args>
void log(const std::string_view& fmtString, ILogger::E_LOG_LEVEL logLevel = ILogger::ELL_DEBUG, Args&&... args) const
{
if (logger.get() != nullptr)
return logger->log(fmtString, logLevel, std::forward<Args>(args)...);
}
ILogger* getRaw() const { return logger.get(); }
logger_opt_ptr getOptRawPtr() const { return logger_opt_ptr(logger.get()); }
const core::smart_refctd_ptr<ILogger>& get() const { return logger; }
private:
mutable core::smart_refctd_ptr<ILogger> logger;
};
}
#endif | 29.963636 | 192 | 0.703277 |
ece03443b64d356327ec6c388da9c283b04d625f | 928 | h | C | src/shout/shout_lib/SCN/BinaryAntlrInputStream.h | all-in-one-of/CopperFX | 9a50b69a57ebd6aa578d12456e34d792a7c51916 | [
"Unlicense"
] | 2 | 2019-06-25T23:36:55.000Z | 2022-03-07T04:15:50.000Z | src/shout/shout_lib/SCN/BinaryAntlrInputStream.h | all-in-one-of/CopperFX | 9a50b69a57ebd6aa578d12456e34d792a7c51916 | [
"Unlicense"
] | null | null | null | src/shout/shout_lib/SCN/BinaryAntlrInputStream.h | all-in-one-of/CopperFX | 9a50b69a57ebd6aa578d12456e34d792a7c51916 | [
"Unlicense"
] | 1 | 2019-08-22T08:23:37.000Z | 2019-08-22T08:23:37.000Z | #ifndef ANTLR_BINARY_STREAM_H
#define ANTLR_BINARY_STREAM_H
#include <string>
#include "antlr4-runtime.h"
#include "antlr4/runtime/Cpp/runtime/src/ANTLRInputStream.h"
#include "antlr4/runtime/Cpp/runtime/src/CharStream.h"
#include "antlr4/runtime/Cpp/runtime/src/IntStream.h"
class BinaryANTLRInputStream: public antlr4::CharStream {
public:
BinaryANTLRInputStream(std::istream &stream);
public:
void consume() override;
size_t LA(ssize_t i) override;
ssize_t mark() override;
void release(ssize_t marker) override;
size_t index() override;
void seek(size_t index) override;
size_t size() override;
std::string getSourceName() const override;
std::string getText(const antlr4::misc::Interval &interval) override;
std::string toString() const override;
private:
void load(std::istream &stream);
private:
size_t p;
std::string _data;
std::string _name;
};
#endif // ANTLR_BINARY_STERAM_H
| 24.421053 | 71 | 0.755388 |
ece37147ff4bc4cde12846f99fea7f43539651aa | 898 | c | C | Lab-04/kernel8/src/sched.c | andykuo8766/osc2021 | 6dc6789da46bcb4ead2f561dd610a395617a1283 | [
"MIT"
] | 1 | 2021-07-18T13:24:34.000Z | 2021-07-18T13:24:34.000Z | Lab-04/kernel8/src/sched.c | andykuo8766/osc2021 | 6dc6789da46bcb4ead2f561dd610a395617a1283 | [
"MIT"
] | null | null | null | Lab-04/kernel8/src/sched.c | andykuo8766/osc2021 | 6dc6789da46bcb4ead2f561dd610a395617a1283 | [
"MIT"
] | null | null | null | #include "sched.h"
struct task_struct init_task = INIT_TASK;
struct task_struct *current = &(init_task);
int pid_count = 1;
void add_task(){
task_struct *new_task =(task_struct *)kmalloc(sizeof(task_struct));
new_task->state = 0;
new_task->priority = 0;
new_task->preempt = 0;
new_task->pid = pid_count;
pid_count++;
new_task->next = NULL;
current = new_task;
}
void setpriority(char* args) {
int priority = 0;
for(int i = 0; args[i] != '\0'; ++i){
if(args[i] >= '0' && args[i] <= '9') priority = priority * 10 + args[i] - '0';
else priority = 0;
}
current->priority = priority;
}
void preempt(char* args) {
int preempt = 0;
for(int i = 0; args[i] != '\0'; ++i){
if(args[i] >= '0' && args[i] <= '9') preempt = preempt * 10 + args[i] - '0';
else preempt = 0;
}
current->preempt = preempt;
}
void getpid() {
uart_put_int(current->pid);
uart_puts("\n");
}
| 20.409091 | 80 | 0.609131 |
ece38b5a6482af345ec9e8b333f4a94302644b67 | 510 | c | C | gcc-gcc-7_3_0-release/gcc/testsuite/gcc.dg/cpp/trad/mi5.c | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/gcc.dg/cpp/trad/mi5.c | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/gcc.dg/cpp/trad/mi5.c | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | /* Test "ignore redundant include" facility, with -C on.
The disgusting regexp in the dg-error line, when stuck into
dg.exp's compiler-output regexp, matches the correct -H output and
only the correct -H output. It has to be all on one line because
otherwise it will not be interpreted all in one unit. */
/* { dg-do preprocess }
{ dg-options "-H -C -traditional-cpp" }
{ dg-message "mi1c\.h" "redundant include check with -C" { target *-*-* } 0 } */
#include "mi1c.h"
#include "mi1c.h"
| 36.428571 | 83 | 0.67451 |
ece6a58feb4de42024463e8d0a4f4d030079f73e | 1,878 | h | C | model/mosesdecoder/moses/TranslationModel/UG/mm/ug_http_client.h | saeedesm/UNMT_AH | cc171bf66933b5c0ad8a0ab87e57f7364312a7df | [
"Apache-2.0"
] | 3 | 2019-12-02T14:53:29.000Z | 2020-08-12T18:01:49.000Z | tools/mosesdecoder-master/moses/TranslationModel/UG/mm/ug_http_client.h | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2020-11-06T14:40:10.000Z | 2020-12-29T19:03:11.000Z | tools/mosesdecoder-master/moses/TranslationModel/UG/mm/ug_http_client.h | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2020-03-26T16:05:11.000Z | 2020-08-06T16:35:39.000Z | // -*- c++ -*-
// Adapted by Ulrich Germann from:
// async_client.cpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2011 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include <iostream>
#include <istream>
#include <ostream>
#include <string>
#include <sstream>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
namespace Moses
{
using boost::asio::ip::tcp;
std::string uri_encode(std::string const& in);
class http_client
{
std::ostringstream m_content;
std::vector<std::string> m_header;
std::string m_http_version;
unsigned int m_status_code;
std::string m_status_message;
std::ostringstream m_error;
public:
http_client(boost::asio::io_service& io_service, std::string url, std::ostream* log);
http_client(boost::asio::io_service& io_service,
std::string const& server,
std::string const& port,
std::string const& path);
private:
void init(std::string const& server,
std::string const& port,
std::string const& path);
void handle_resolve(const boost::system::error_code& err,
tcp::resolver::iterator endpoint_iterator);
void handle_connect(const boost::system::error_code& err,
tcp::resolver::iterator endpoint_iterator);
void handle_write_request(const boost::system::error_code& err);
void handle_read_status_line(const boost::system::error_code& err);
void handle_read_headers(const boost::system::error_code& err);
void handle_read_content(const boost::system::error_code& err);
tcp::resolver resolver_;
tcp::socket socket_;
boost::asio::streambuf request_;
boost::asio::streambuf response_;
public:
std::string content() const;
std::string error_msg() const { return m_error.str(); }
};
}
| 28.892308 | 87 | 0.712993 |
ece6a6c1b351aca3f5c08a805c087ce728325fb5 | 2,618 | c | C | src/hal/barometer/barometer.c | shaopengyuan/FMT-Firmware | bbdb3649ec4c1cad3d4a7fc3866091f99807fcfc | [
"Apache-2.0"
] | 1 | 2021-12-05T12:48:24.000Z | 2021-12-05T12:48:24.000Z | src/hal/barometer/barometer.c | shaopengyuan/FMT-Firmware | bbdb3649ec4c1cad3d4a7fc3866091f99807fcfc | [
"Apache-2.0"
] | null | null | null | src/hal/barometer/barometer.c | shaopengyuan/FMT-Firmware | bbdb3649ec4c1cad3d4a7fc3866091f99807fcfc | [
"Apache-2.0"
] | 3 | 2021-02-01T02:54:34.000Z | 2021-03-29T13:52:10.000Z | /******************************************************************************
* Copyright 2020 The Firmament Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include <firmament.h>
#include "hal/barometer.h"
static rt_err_t hal_baro_init(struct rt_device* dev)
{
rt_err_t ret = RT_EOK;
baro_dev_t baro;
RT_ASSERT(dev != RT_NULL);
baro = (baro_dev_t)dev;
/* apply configuration */
if(baro->ops->baro_config) {
ret = baro->ops->baro_config(baro, &baro->config);
}
return ret;
}
static rt_size_t hal_baro_read(struct rt_device* dev,
rt_off_t pos,
void* buffer,
rt_size_t size)
{
rt_size_t rb = 0;
baro_dev_t baro;
RT_ASSERT(dev != RT_NULL);
RT_ASSERT(buffer != RT_NULL);
baro = (baro_dev_t)dev;
if(pos == BARO_RD_REPORT && baro->ops->baro_read) {
rb = baro->ops->baro_read(baro, buffer);
}
return rb;
}
static rt_err_t hal_baro_control(struct rt_device* dev,
int cmd,
void* args)
{
rt_err_t ret = RT_EOK;
baro_dev_t baro;
RT_ASSERT(dev != RT_NULL);
baro = (baro_dev_t)dev;
if(baro->ops->baro_control) {
ret = baro->ops->baro_control(baro, cmd, args);
}
return ret;
}
rt_err_t hal_baro_register(baro_dev_t baro, const char* name, rt_uint32_t flag, void* data)
{
rt_err_t ret;
struct rt_device* device;
RT_ASSERT(baro != RT_NULL);
device = &(baro->parent);
device->type = RT_Device_Class_SPIDevice;
device->ref_count = 0;
device->rx_indicate = RT_NULL;
device->tx_complete = RT_NULL;
device->init = hal_baro_init;
device->open = RT_NULL;
device->close = RT_NULL;
device->read = hal_baro_read;
device->write = RT_NULL;
device->control = hal_baro_control;
device->user_data = data;
/* register a character device */
ret = rt_device_register(device, name, flag);
return ret;
} | 26.18 | 91 | 0.603514 |
a2dff6a3fd2ad82dcbc7251240a8af04390c3a7f | 4,739 | h | C | src/gui/Application/ViewWidgets/MeshWindow.h | thewtex/Cleaver2 | 8ef0985c451f3bbba8bb580f1737f0ef88c31147 | [
"MIT"
] | 32 | 2015-08-29T12:40:14.000Z | 2022-03-01T21:15:05.000Z | src/gui/Application/ViewWidgets/MeshWindow.h | thewtex/Cleaver2 | 8ef0985c451f3bbba8bb580f1737f0ef88c31147 | [
"MIT"
] | 98 | 2015-02-04T17:22:56.000Z | 2022-03-22T07:18:10.000Z | src/gui/Application/ViewWidgets/MeshWindow.h | thewtex/Cleaver2 | 8ef0985c451f3bbba8bb580f1737f0ef88c31147 | [
"MIT"
] | 19 | 2015-02-23T15:21:13.000Z | 2022-01-09T00:57:13.000Z | #ifndef MESHWINDOW_H
#define MESHWINDOW_H
#include <QGLWidget>
#include <QOpenGLShaderProgram>
#include <QOpenGLBuffer>
#include <QOpenGLVertexArrayObject>
#include <cleaver/CleaverMesher.h>
#include <cleaver/TetMesh.h>
#include <cleaver/Volume.h>
#include "Camera.h"
#include <QMatrix4x4>
enum StarMode { NoStar, VertexStar, EdgeStar, FaceStar };
class MeshWindow : public QGLWidget
{
Q_OBJECT
public:
explicit MeshWindow(const QGLFormat& format, QObject *parent = 0);
~MeshWindow();
bool connectToTimer(QTimer *timer);
void setDefaultOptions();
void resetView();
void saveView();
void loadView();
void updateMesh();
QVector3D screenToBall(const QVector2D &s);
double angleBetween(const QVector3D &v1, const QVector3D &v2);
QSize sizeHint() const;
//-- mutators --
void setMesh(cleaver::TetMesh *mesh);
void setVolume(cleaver::Volume *volume);
void setMesher(cleaver::CleaverMesher *mesher);
void setAxisVisible(bool value) { m_bShowAxis = value; }
void setBBoxVisible(bool value) { m_bShowBBox = value; }
void setFacesVisible(bool value) { m_bShowFaces = value; }
void setEdgesVisible(bool value) { m_bShowEdges = value; }
void setCutsVisible(bool value) { m_bShowCuts = value; }
void setSyncedClipping(bool value) { m_bSyncedClipping = value; }
void setSurfacesOnly(bool value) { m_bSurfacesOnly = value; }
void setColorByQuality(bool value) {
m_bColorByQuality = value;
m_colorUpdate = true;
}
void setClippingPlaneVisible(bool value) { m_bShowClippingPlane = value; }
void setClipping(bool value) { m_bClipping = value; update_vbos(); }
void setClippingPlane(float plane[4]) {
memcpy(m_4fvClippingPlane, plane, 4 * sizeof(float));
if (!m_bShowClippingPlane || m_bSyncedClipping)
update_vbos();
}
void setMaterialFaceLock(int m, bool value) { m_bMaterialFaceLock[m] = value; }
void setMaterialCellLock(int m, bool value) { m_bMaterialCellLock[m] = value; }
//-- acccessors
bool axisVisible() { return m_bShowAxis; }
bool bboxVisible() { return m_bShowBBox; }
bool facesVisible() { return m_bShowFaces; }
bool edgesVisible() { return m_bShowEdges; }
bool cutsVisible() { return m_bShowCuts; }
bool getMaterialFaceLock(int m) const { return m_bMaterialFaceLock[m]; }
bool getMaterialCellLock(int m) const { return m_bMaterialCellLock[m]; }
cleaver::BoundingBox dataBounds() { return m_dataBounds; }
signals:
void closed(MeshWindow* win);
public slots:
private:
cleaver::Volume * volume_;
cleaver::TetMesh * mesh_;
cleaver::CleaverMesher * mesher_;
cleaver::BoundingBox m_dataBounds;
QMatrix4x4 rotateMatrix_, cameraMatrix_, perspMat_;
StarMode m_starmode;
int m_currentVertex;
int m_currentEdge;
int m_currentFace;
int m_prev_x, m_prev_y;
// render options
bool m_bShowAxis;
bool m_bShowBBox;
bool m_bShowFaces;
bool m_bShowEdges;
bool m_bShowCuts;
bool m_bShowViolationPolytopes;
bool m_bClipping;
bool m_bShowClippingPlane;
bool m_bSyncedClipping;
bool m_bSurfacesOnly;
bool m_bColorByQuality;
bool m_bImportedBeta;
bool m_colorUpdate;
bool m_bOpenGLError;
bool m_bLoadedView;
std::vector<bool> m_bMaterialFaceLock;
std::vector<bool> m_bMaterialCellLock;
float m_shrinkscale;
float m_4fvBBoxColor[4];
float m_4fvCutsColor[4];
float m_4fvClippingPlane[4];
void drawOTCell(cleaver::OTCell *node);
void drawTree();
void drawFaces();
void drawEdges();
void drawCuts();
void drawAxis();
void drawClippingPlane();
void drawBox(const cleaver::BoundingBox &box);
// draw violation regions around vertices
void drawViolationPolytopesForVertices();
void drawViolationPolytopeForVertex(int v);
// worker functions
void setup_vbos();
void update_vbos();
void build_bkgrnd_vbos();
void build_output_vbos();
// star adjacency visualization calls
void drawVertexStar(int v);
void drawEdgeStar(int e);
void drawFaceStar(int f);
QOpenGLShaderProgram faceProg_, edgeProg_, axisProg_;
QOpenGLBuffer * faceVBO_, *edgeVBO_, *cutVBO_, *violVBO_, bboxVBO_, axisVBO_;
QOpenGLVertexArrayObject * faceVAO_, *edgeVAO_, *cutVAO_, *violVAO_, axisVAO_, bboxVAO_;
std::vector<float> faceData_, edgeData_, cutData_, violData_, bboxData_;
bool init;
protected:
void initializeOptions();
void initializeShaders();
void initializeGL();
void paintGL();
void resizeGL(int width, int height);
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void keyPressEvent(QKeyEvent *event);
void keyReleaseEvent(QKeyEvent *event);
void wheelEvent(QWheelEvent *event);
void closeEvent(QCloseEvent *event);
};
#endif // MESHWINDOW_H
| 28.208333 | 90 | 0.743617 |
a2e11ccf63a1b88628a051103f15d1f086443b88 | 1,310 | h | C | TAO/TAO_IDL/be_include/be_visitor_operation/operation_svs.h | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | TAO/TAO_IDL/be_include/be_visitor_operation/operation_svs.h | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | TAO/TAO_IDL/be_include/be_visitor_operation/operation_svs.h | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z |
//=============================================================================
/**
* @file operation_svs.h
*
* $Id: operation_svs.h 89699 2010-03-29 16:26:32Z parsons $
*
* Visitor for generating code for IDL operations in
* CIAO servant implementations
*
*
* @author Jeff Parsons
*/
//=============================================================================
#ifndef _BE_VISITOR_OPERATION_OPERATION_SVS_H_
#define _BE_VISITOR_OPERATION_OPERATION_SVS_H_
// ************************************************************
// Operation visitor for CIAO servant implementations
// ************************************************************
/**
* @class be_visitor_operation_svs
*
* @brief be_visitor_operation_svs
*
* This is a concrete visitor to generate the CIAO servant
* implementations for operation
*/
class be_visitor_operation_svs : public be_visitor_scope
{
public:
be_visitor_operation_svs (be_visitor_context *ctx);
~be_visitor_operation_svs (void);
virtual int visit_operation (be_operation *node);
virtual int visit_argument (be_argument *node);
virtual int post_process (be_decl *bd);
void scope (be_decl *node);
private:
int gen_op_body (be_operation *node);
private:
be_decl *scope_;
};
#endif /* _BE_VISITOR_OPERATION_OPERATION_SVS_H_ */
| 24.259259 | 79 | 0.58855 |
a2e1a1952e109239ade116b128cf19499d0623fa | 33,594 | c | C | lib/mm/mm.c | lambdaxymox/barrelfish | 06a9f54721a8d96874a8939d8973178a562c342f | [
"MIT"
] | 111 | 2015-02-03T02:57:27.000Z | 2022-03-01T23:57:09.000Z | lib/mm/mm.c | lambdaxymox/barrelfish | 06a9f54721a8d96874a8939d8973178a562c342f | [
"MIT"
] | 12 | 2016-03-22T14:44:32.000Z | 2020-03-18T13:30:29.000Z | lib/mm/mm.c | lambdaxymox/barrelfish | 06a9f54721a8d96874a8939d8973178a562c342f | [
"MIT"
] | 55 | 2015-02-03T05:28:12.000Z | 2022-03-31T05:00:03.000Z | /**
* \file
* \brief Memory manager
*
* This code manages memory regions (which may refer to actual RAM, or physical
* address space, or other spaces) and the capabilities to those regions.
*
* The meta-data is structured as a B-tree. Every node has a variable
* power-of-two-sized number of children (up to a limit fixed at initialisation
* time), which is stored in the node itself (as "childbits"). Nodes without
* any children have childbits = -1 (FLAGBITS).
*
* The position of a node in the tree exactly determines its size and address
* relative to the size and address of the region being managed by the
* allocator (all sizes must be powers of two).
*
* A node may be one of four types (see #nodetype):
* 0. A "dummy" node, which exists structurally in the tree, but for which
* we do not have a capability (ie. the region is incomplete).
* 1. A "chunked" node, for which we have a capability, but which has been
* split up into child nodes for smaller allocations.
* 2. A free node, which is a regular free child node in the tree.
* 3. An allocated node.
*/
/*
* Copyright (c) 2008, 2009, 2010, 2011, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
*/
#include <barrelfish/barrelfish.h>
#include <mm/mm.h>
#include <stdio.h>
#include <inttypes.h>
#if 1
bool mm_debug = false;
# define DEBUG(s, x...) do { if (mm_debug) debug_printf("MM: " s, x); } while(0)
#else
# define DEBUG(s, x...) (void)0
#endif
/* Macros to convert from a size in "bits" (ie. power-of-two) to size in bytes */
#define UNBITS_CA(bits) (((cslot_t)1) << (bits))
#define UNBITS_GENPA(bits) (((genpaddr_t)1) << (bits))
#define FLAGBITS ((uint8_t)-1)
/// calculate largest power-of-two region that fits into region of size n
/// starting at base_addr.
static inline int bitaddralign(size_t n, lpaddr_t base_addr)
{
int exponent = sizeof(size_t) * NBBY - 1;
if(n == 0) {
return 0;
}
while ((exponent > 0) && ((base_addr % (1UL << exponent)) != 0)){
exponent--;
}
return((1UL << exponent) > n ? log2floor(n) : exponent);
}
/// Allocate a new node of given type/size. Does NOT initialise children pointers.
static struct mmnode *new_node(struct mm *mm, enum nodetype type,
uint8_t childbits)
{
assert(childbits == FLAGBITS ||
(childbits > 0 && childbits <= mm->maxchildbits));
struct mmnode *node = slab_alloc(&mm->slabs);
if (node != NULL) {
node->type = type;
node->childbits = childbits;
}
return node;
}
/// Reduce the number of children of a node by pushing existing children down.
static errval_t resize_node(struct mm *mm, struct mmnode *node,
uint8_t newchildbits)
{
assert(newchildbits != FLAGBITS);
assert(node->childbits != FLAGBITS);
assert(newchildbits <= mm->maxchildbits);
assert(node->childbits > newchildbits);
DEBUG("resize_node %d -> %d\n", node->childbits, newchildbits);
/* we want to reduce the number of children, moving the existing ones down
* for every new child node, we need to construct one intermediate node */
uint8_t diffchildbits = node->childbits - newchildbits;
for (cslot_t i = 0; i < UNBITS_CA(newchildbits); i++) {
struct mmnode *newnode = NULL;
for (cslot_t j = 0; j < UNBITS_CA(diffchildbits); j++) {
if (node->children[i * UNBITS_CA(diffchildbits) + j] != NULL) {
if (newnode == NULL) {
newnode = new_node(mm, NodeType_Dummy, diffchildbits);
if (newnode == NULL) {
return MM_ERR_NEW_NODE;
}
for (cslot_t k = 0; k < j; k++) {
newnode->children[k] = NULL;
}
}
newnode->children[j] = node->children[i*UNBITS_CA(diffchildbits)+j];
} else if (newnode != NULL) {
newnode->children[j] = NULL;
}
}
node->children[i] = newnode;
}
node->childbits = newchildbits;
return SYS_ERR_OK;
}
/// Add a new cap and node to the tree in the appropriate place.
static errval_t add_node(struct mm *mm, genpaddr_t base, uint8_t sizebits,
struct mmnode *node, genpaddr_t nodebase,
uint8_t nodesizebits, struct mmnode **retnode)
{
errval_t err;
assert(base >= nodebase &&
base + UNBITS_GENPA(sizebits) <= nodebase + UNBITS_GENPA(nodesizebits));
DEBUG("add_node %" PRIxGENPADDR "-%" PRIxGENPADDR " %" PRIxGENPADDR "-%"
PRIxGENPADDR " %d %d\n", base, base + UNBITS_GENPA(sizebits),
nodebase, nodebase + UNBITS_GENPA(nodesizebits), node->type,
node->childbits);
/* is it this node? is it included in an existing cap? */
if ((base == nodebase && sizebits == nodesizebits)
|| node->type != NodeType_Dummy) {
return MM_ERR_ALREADY_PRESENT;
}
/* which child should we recurse into? */
uint8_t childsizebits = nodesizebits - node->childbits;
/* is this a non-leaf node? */
if (node->childbits != FLAGBITS) {
if (childsizebits < sizebits) {
/* we need to resize this node to fit ourselves in between */
childsizebits = sizebits;
err = resize_node(mm, node, nodesizebits - sizebits);
if (err_is_fail(err)) {
return err_push(err, MM_ERR_RESIZE_NODE);
}
}
/* can we recurse into the child node? */
cslot_t nchild = (base - nodebase) / UNBITS_GENPA(childsizebits);
assert(nchild < UNBITS_CA(node->childbits));
if (node->children[nchild] != NULL) {
return add_node(mm, base, sizebits, node->children[nchild],
nodebase + nchild * UNBITS_GENPA(childsizebits),
childsizebits, retnode);
}
if (childsizebits != sizebits) {
/* create dummy child here */
struct mmnode *new = new_node(mm, NodeType_Dummy, FLAGBITS);
if (new == NULL) {
return MM_ERR_NEW_NODE;
}
/* recalculate for new node*/
node->children[nchild] = new;
nodebase += nchild * UNBITS_GENPA(childsizebits);
childsizebits -= node->childbits;
nodesizebits -= node->childbits;
node = new;
}
}
if (node->childbits == FLAGBITS) {
/* create as many maximum-sized children as necessary */
while (nodesizebits > sizebits + mm->maxchildbits) {
node->childbits = mm->maxchildbits;
childsizebits = nodesizebits - mm->maxchildbits;
for (cslot_t i = 0; i < UNBITS_CA(node->childbits); i++) {
node->children[i] = NULL;
}
struct mmnode *new = new_node(mm, NodeType_Dummy, FLAGBITS);
if (new == NULL) {
return MM_ERR_NEW_NODE;
}
/* recurse */
cslot_t nchild = (base - nodebase) / UNBITS_GENPA(childsizebits);
node->children[nchild] = new;
nodebase += nchild * UNBITS_GENPA(childsizebits);
childsizebits -= mm->maxchildbits;
nodesizebits -= mm->maxchildbits;
node = new;
DEBUG("add_node new dummy node %" PRIuCSLOT " %" PRIxGENPADDR "-%"
PRIxGENPADDR "\n",
nchild, nodebase, nodebase + UNBITS_GENPA(nodesizebits));
}
/* set the size appropriately on the last node */
node->childbits = nodesizebits - sizebits;
childsizebits = sizebits;
for (cslot_t i = 0; i < UNBITS_CA(node->childbits); i++) {
node->children[i] = NULL;
}
}
/* we've found the right spot. create a real child here */
cslot_t childslot = (base - nodebase) / UNBITS_GENPA(childsizebits);
DEBUG("add_node inserting at slot %" PRIuCSLOT "\n", childslot);
assert(childsizebits == sizebits);
struct mmnode *new = new_node(mm, NodeType_Free, FLAGBITS);
node->children[childslot] = new;
if (new == NULL) {
return MM_ERR_NEW_NODE;
}
assert(retnode != NULL);
*retnode = new;
return SYS_ERR_OK;
}
/// Finds an unallocated node at least as big as the given size within a region
static errval_t find_node(struct mm *mm, bool do_realloc, uint8_t sizebits,
genpaddr_t minbase, genpaddr_t maxlimit,
struct mmnode *node,
genpaddr_t nodebase, uint8_t nodesizebits,
genpaddr_t *retnodebase, uint8_t *retnodesizebits,
struct mmnode **retnode)
{
DEBUG("find_node %d %d %" PRIxGENPADDR "-%" PRIxGENPADDR " %" PRIxGENPADDR
"-%" PRIxGENPADDR " %d\n", do_realloc, sizebits, minbase,
maxlimit, nodebase, nodebase + UNBITS_GENPA(nodesizebits), node->type);
assert(nodesizebits >= sizebits);
assert(retnode != NULL);
errval_t err;
if (!do_realloc && node->type == NodeType_Allocated) {
return MM_ERR_ALREADY_ALLOCATED;
} else if (node->type == NodeType_Free
|| (do_realloc && node->type == NodeType_Allocated)) {
/* could we allocate within this node */
if (minbase + UNBITS_GENPA(sizebits) <= nodebase + UNBITS_GENPA(nodesizebits)
&& maxlimit - UNBITS_GENPA(sizebits) >= nodebase) {
*retnode = node;
*retnodebase = nodebase;
*retnodesizebits = nodesizebits;
return SYS_ERR_OK;
} else {
return MM_ERR_NOT_FOUND;
}
} else if (do_realloc && node->type == NodeType_Chunked) {
assert(node->childbits != FLAGBITS);
/* does this node match our search? */
if (nodesizebits == sizebits) {
assert(minbase + UNBITS_GENPA(sizebits) <= nodebase + UNBITS_GENPA(nodesizebits)
&& maxlimit - UNBITS_GENPA(sizebits) >= nodebase);
*retnode = node;
*retnodebase = nodebase;
*retnodesizebits = nodesizebits;
return SYS_ERR_OK;
} else if (nodesizebits - node->childbits < sizebits) {
/* We have the region in the allocator, but we've split it up too
* small. We can't satisfy this request without revoking and
* retyping the existing allocations.
*/
return MM_ERR_MISSING_CAPS;
}
}
assert(node->childbits != FLAGBITS);
/* don't try the children if they will be too small */
if (nodesizebits - node->childbits < sizebits) {
DEBUG("find_node -> children too small (%u bits)\n",
nodesizebits - node->childbits);
return MM_ERR_NOT_FOUND;
}
/* find a suitable child node
* FIXME: this is currently a simple first-fit search */
cslot_t start = 0, stop = UNBITS_CA(node->childbits);
if (minbase > nodebase) {
start = (minbase - nodebase) / UNBITS_GENPA(nodesizebits - node->childbits);
}
if (maxlimit < nodebase + UNBITS_GENPA(nodesizebits)) {
stop = DIVIDE_ROUND_UP(maxlimit - nodebase,
UNBITS_GENPA(nodesizebits - node->childbits));
}
for (cslot_t i = start; i < stop; i++) {
if (node->children[i] != NULL) {
DEBUG("find_node %" PRIxGENPADDR "-%" PRIxGENPADDR " -> trying child %"
PRIuCSLOT " (%" PRIxGENPADDR "-%" PRIxGENPADDR ")\n",
nodebase, nodebase + UNBITS_GENPA(nodesizebits), i,
nodebase + i * UNBITS_GENPA(nodesizebits - node->childbits),
nodebase + (i + 1) * UNBITS_GENPA(nodesizebits - node->childbits));
struct mmnode *n = NULL;
err = find_node(mm, do_realloc, sizebits, minbase, maxlimit,
node->children[i],
nodebase + i * UNBITS_GENPA(nodesizebits - node->childbits),
nodesizebits - node->childbits,
retnodebase, retnodesizebits, &n);
if (err_is_ok(err) || !(err_no(err) == MM_ERR_NOT_FOUND
|| err_no(err) == MM_ERR_ALREADY_ALLOCATED
|| err_no(err) == MM_ERR_MISSING_CAPS)) {
if (err_is_ok(err)) {
assert(n != NULL);
*retnode = n;
}
return err;
}
}
}
DEBUG("find_node %" PRIxGENPADDR "-%" PRIxGENPADDR " -> no suitable children "
"(tried %" PRIuCSLOT "-%" PRIuCSLOT " %" PRIxGENPADDR "-%" PRIxGENPADDR ")\n",
nodebase, nodebase + UNBITS_GENPA(nodesizebits), start, stop,
nodebase + start * UNBITS_GENPA(nodesizebits - node->childbits),
nodebase + stop * UNBITS_GENPA(nodesizebits - node->childbits));
return MM_ERR_NOT_FOUND;
}
/**
* \brief Chunk up a node, returning the chunk including the desired region and size
*
* \param mm Memory allocator context
* \param sizebits Desired chunk size (number of valid bits), must be smaller than node's size
* \param minbase Base address of desired return chunk
* \param maxlimit Limit address of desired return chunk
* \param node Node to chunk up
* \param nodebase Input: Base address of node, Output: Base address of return chunk
* \param nodesizebits Input: Size of node, Output: Size of return chunk
* \param retnode Node to return chunk
*
* \return Error status (#SYS_ERR_OK on success).
*/
static errval_t chunk_node(struct mm *mm, uint8_t sizebits,
genpaddr_t minbase, genpaddr_t maxlimit,
struct mmnode *node,
genpaddr_t *nodebase, uint8_t *nodesizebits,
struct mmnode **retnode)
{
errval_t err;
assert(node->type == NodeType_Free || node->type == NodeType_Allocated);
assert(node->childbits == FLAGBITS);
assert(*nodesizebits > sizebits);
/* split up the source cap into at most maxchildbits sub-caps */
uint8_t childbits = *nodesizebits - sizebits;
if (childbits > mm->maxchildbits) {
childbits = mm->maxchildbits;
}
DEBUG("chunk_node %d %" PRIxGENPADDR "-%" PRIxGENPADDR " %" PRIxGENPADDR "-%"
PRIxGENPADDR " -> %" PRIuCSLOT "\n", sizebits, minbase,
maxlimit, *nodebase, *nodebase + UNBITS_GENPA(*nodesizebits),
UNBITS_CA(childbits));
struct capref cap;
err = mm->slot_alloc(mm->slot_alloc_inst, UNBITS_CA(childbits), &cap);
// Try to refill slot allocator if we have a refill function
if (err_no(err) == LIB_ERR_SLOT_ALLOC_NO_SPACE && mm->slot_refill) {
err = mm->slot_refill(mm->slot_alloc_inst);
if (err_is_fail(err)) {
DEBUG_ERR(err, "mm slot_alloc refill");
return err_push(err, MM_ERR_CHUNK_SLOT_ALLOC);
}
// Try alloc again after refilling
err = mm->slot_alloc(mm->slot_alloc_inst, UNBITS_CA(childbits), &cap);
}
if (err_is_fail(err)) {
return err_push(err, MM_ERR_CHUNK_SLOT_ALLOC);
}
// retype node into 2^(maxchildbits) smaller nodes
DEBUG("retype: current size: %zu, child size: %zu, count: %u\n",
(size_t)1 << *nodesizebits, (size_t)1 << (*nodesizebits - childbits),
UNBITS_CA(childbits));
err = cap_retype(cap, node->cap, 0, mm->objtype,
1UL << (*nodesizebits - childbits),
UNBITS_CA(childbits));
if (err_is_fail(err)) {
// This is only a failure if the node was free. Otherwise,
// the caller could've deleted the cap already.
// XXX: I have no way to find out whether cap_retype()
// failed due to source cap not found. The error stack
// convolutes the root cause of the error. I'm assuming here
// that that's the case.
if(node->type == NodeType_Free) {
return err_push(err, LIB_ERR_CAP_RETYPE);
}
// TODO: Should deallocate the unused slots from mm->slot_alloc()
}
/* construct child nodes */
for (cslot_t i = 0; i < UNBITS_CA(childbits); i++) {
struct mmnode *new = new_node(mm, node->type, FLAGBITS);
if (new == NULL) {
return MM_ERR_NEW_NODE;
}
node->children[i] = new;
new->cap = cap;
cap.slot++;
}
// If configured to delete chunked capabilities, we do so now
// The slot stays available so we could meld chunks later (NYI)
if(mm->delete_chunked) {
err = cap_delete(node->cap);
// Can fail if node was not free (e.g. deleted already)
if(err_is_fail(err) && node->type == NodeType_Free) {
DEBUG_ERR(err, "cap_delete for chunked cap failed(node->type = %d) Ignoring.", node->type);
}
}
node->type = NodeType_Chunked;
node->childbits = childbits;
*nodesizebits -= node->childbits;
/* take the first cap that includes the desired region */
cslot_t nchild = 0;
if (minbase > *nodebase) {
if (*nodesizebits == sizebits) {
// this is the final size, so it must be wholly within the region!
nchild = DIVIDE_ROUND_UP(minbase - *nodebase, UNBITS_GENPA(*nodesizebits));
} else {
nchild = (minbase - *nodebase) / UNBITS_GENPA(*nodesizebits);
}
}
*nodebase += nchild * UNBITS_GENPA(*nodesizebits);
DEBUG("-> picked %" PRIuCSLOT " (%" PRIxGENPADDR "-%" PRIxGENPADDR ")\n", nchild,
*nodebase, *nodebase + UNBITS_GENPA(*nodesizebits));
assert(minbase + UNBITS_GENPA(sizebits) <= *nodebase + UNBITS_GENPA(*nodesizebits));
assert(maxlimit - UNBITS_GENPA(sizebits) >= *nodebase);
assert(retnode != NULL);
*retnode = node->children[nchild];
return SYS_ERR_OK;
}
/**
* \brief Debug printout of the status of all nodes
*
* \param mmnode Struct mmnode to print from
* \param space Call with 0, used to track depth for pretty printing
*/
void mm_debug_print(struct mmnode *mmnode, int space)
{
if (!mmnode) {
return;
}
for(int i = 0; i < space; i++) {
printf(" ");
}
printf("%d. type %d, children %d\n",
space, mmnode->type, 1<<mmnode->childbits);
if ((mmnode->type == NodeType_Chunked) || (mmnode->type == NodeType_Dummy)) {
for(int i = 0; i < (1<<mmnode->childbits); i++) {
mm_debug_print(mmnode->children[i], space + 1);
}
}
}
/**
* \brief Initialise a memory manager instance
*
* \param mm Pointer to memory manager instance, to be filled-in
* \param objtype Kernel object type to be managed
* \param base Base address of region to be managed
* \param sizebits Size (in bits) of region to be managed
* \param maxchildbits Maximum number of children (in bits) at each node
* \param slab_refill_func Function to be used to refill slab allocator
* If this is NULL, the caller must provide static storage with slab_grow.
* \param slot_alloc_func Slot allocator function
* \param slot_refill_func Slot allocator refill function
* \param slot_alloc_inst Slot allocator opaque instance pointer
* \param delete_chunked Whether to delete chunked caps
*
* \note Setting maxchildbits > 1 saves substantial space, but may lead to the
* situation where an allocation request cannot be satisfied despite memory
* being available, because the memory has been chunked up into smaller caps
* that, while free, cannot be recombined without revoking existing allocations.
*/
errval_t mm_init(struct mm *mm, enum objtype objtype, genpaddr_t base,
uint8_t sizebits, uint8_t maxchildbits,
slab_refill_func_t slab_refill_func,
slot_alloc_t slot_alloc_func, slot_refill_t slot_refill_func,
void *slot_alloc_inst, bool delete_chunked)
{
/* init fields */
assert(mm != NULL);
mm->objtype = objtype;
// We do not care about alignment anymore?!
//assert((base & (UNBITS_GENPA(sizebits) - 1)) == 0);
mm->base = base;
mm->sizebits = sizebits;
assert(maxchildbits > 0 && maxchildbits != FLAGBITS);
mm->maxchildbits = maxchildbits;
mm->root = NULL;
mm->slot_alloc = slot_alloc_func;
mm->slot_refill = slot_refill_func;
mm->slot_alloc_inst = slot_alloc_inst;
mm->delete_chunked = delete_chunked;
/* init slab allocator */
slab_init(&mm->slabs, MM_NODE_SIZE(maxchildbits), slab_refill_func);
return SYS_ERR_OK;
}
/**
* \brief Destroy a memory manager instance
*
* \param mm Memory manager instance
*/
void mm_destroy(struct mm *mm)
{
USER_PANIC("NYI");
}
/**
* \brief Add a new region to the memory manager
*
* It is an error if any part of the region has already been added, or the
* region doesn't fit within the base and size specified for the allocator.
*
* \param mm Memory manager instance
* \param cap Capability to newly-added region
* \param sizebits Size of region
* \param base Physical base address of region
*/
errval_t mm_add(struct mm *mm, struct capref cap, uint8_t sizebits, genpaddr_t base)
{
/* check bounds */
if (base < mm->base ||
base + UNBITS_GENPA(sizebits) > mm->base + UNBITS_GENPA(mm->sizebits)) {
return MM_ERR_OUT_OF_BOUNDS;
}
/* check that base is properly aligned to size */
// We do not care about alignment anymore?!
//assert((base & (UNBITS_GENPA(sizebits) - 1)) == 0);
/* construct root node if we need one */
if (mm->root == NULL) {
/* if this cap fills up the whole allocator, we are done */
if (base == mm->base && sizebits == mm->sizebits) {
mm->root = new_node(mm, NodeType_Free, FLAGBITS);
if (mm->root == NULL) {
return MM_ERR_NEW_NODE;
}
mm->root->cap = cap;
return SYS_ERR_OK;
} else {
mm->root = new_node(mm, NodeType_Dummy, FLAGBITS);
if (mm->root == NULL) {
return MM_ERR_NEW_NODE;
}
}
}
struct mmnode *node = NULL;
errval_t err;
err = add_node(mm, base, sizebits, mm->root, mm->base, mm->sizebits, &node);
if (err_is_ok(err)) {
assert(node != NULL);
node->cap = cap;
}
return err;
}
/**
* \brief Add a new region to the memory manager. The region does not need to
* be power-of-two sized or aligned.
*
* It is an error if any part of the region has already been added, or the
* region doesn't fit within the base and size specified for the allocator.
*
* \param mm Memory manager instance
* \param cap Capability to newly-added region
* \param size Size of region
* \param base Physical base address of region
*/
errval_t mm_add_multi(struct mm *mm, struct capref cap, gensize_t size, genpaddr_t base)
{
DEBUG("%s: mm=%p, base=%#"PRIxGENPADDR", bytes=%" PRIuGENSIZE "\n",
__FUNCTION__, mm, base, size);
gensize_t offset = 0;
errval_t err;
size_t rcount = 0;
// if we got aligned block; skip retype
if (1UL << bitaddralign(size, base) == size) {
DEBUG("%s: aligned region: adding original cap\n", __FUNCTION__);
return mm_add(mm, cap, log2ceil(size), base);
}
while (size > 0) {
uint8_t blockbits = bitaddralign(size, base);
gensize_t blockbytes = 1UL << blockbits;
/* get dest slot for retype */
struct capref temp;
err = mm->slot_alloc(mm->slot_alloc_inst, 1, &temp);
if (err_is_fail(err)) {
if (mm->slot_refill == NULL) {
return err_push(err, MM_ERR_SLOT_NOSLOTS);
}
err = mm->slot_refill(mm->slot_alloc_inst);
if (err_is_fail(err)) {
return err_push(err, MM_ERR_SLOT_NOSLOTS);
}
err = mm->slot_alloc(mm->slot_alloc_inst, 1, &temp);
if (err_is_fail(err)) {
DEBUG_ERR(err, "Allocating slot");
return err_push(err, MM_ERR_SLOT_NOSLOTS);
}
}
err = cap_retype(temp, cap, offset, mm->objtype, blockbytes, 1);
if (err_is_fail(err)) {
DEBUG_ERR(err, "Retyping region");
return err_push(err, MM_ERR_MM_ADD_MULTI);
}
err = mm_add(mm, temp, blockbits, base);
if (err_is_fail(err)) {
DEBUG_ERR(err, "Adding region to allocator");
return err_push(err, MM_ERR_MM_ADD_MULTI);
}
DEBUG("Added block %#"PRIxGENPADDR"--%#"PRIxGENPADDR", %u bits\n",
base, base+blockbytes, blockbits);
// advance block pointers
base += blockbytes;
offset += blockbytes;
size -= blockbytes;
rcount ++;
}
DEBUG("%s: done. cap was split into %zu blocks\n", __FUNCTION__, rcount);
return SYS_ERR_OK;
}
/**
* \brief Allocate an arbitrary memory region of a given size
*
* \param mm Memory manager instance
* \param sizebits Size of requested region
* \param retcap Pointer to capref struct, to be filled-in
* \param retbase If non-NULL, the base address of the allocated region is
* returned here
*/
errval_t mm_alloc(struct mm *mm, uint8_t sizebits, struct capref *retcap,
genpaddr_t *retbase)
{
/* check bounds, before we hit the debug assertion in mm_alloc_range */
if (sizebits > mm->sizebits) {
return MM_ERR_NOT_FOUND;
}
return mm_alloc_range(mm, sizebits, mm->base,
mm->base + UNBITS_GENPA(mm->sizebits), retcap, retbase);
}
/**
* \brief Allocate memory region of a given size within a given address range
*
* If this call succeeds, it must be the case that:
* *retbase >= minbase && *retbase + (1UL << sizebits) <= maxlimit
*
* \param mm Memory manager instance
* \param sizebits Size of requested region
* \param minbase Minimum base address of region to allocate
* \param maxlimit Maximum limit address of region to allocate
* \param retcap Pointer to capref struct, to be filled-in
* \param retbase If non-NULL, the base address of the allocated region is
* returned here
*/
errval_t mm_alloc_range(struct mm *mm, uint8_t sizebits, genpaddr_t minbase,
genpaddr_t maxlimit, struct capref *retcap,
genpaddr_t *retbase)
{
/* check bounds */
if(minbase + UNBITS_GENPA(sizebits) > maxlimit) {
printf("mm_alloc_range: mb %"PRIxGENPADDR" sizebits %x , <= max %"PRIxGENPADDR" \n",
minbase, sizebits, maxlimit);
}
assert(minbase + UNBITS_GENPA(sizebits) <= maxlimit);
if (minbase < mm->base ||
maxlimit > mm->base + UNBITS_GENPA(mm->sizebits)) {
return MM_ERR_OUT_OF_BOUNDS;
}
if (mm->root == NULL) {
return MM_ERR_NOT_FOUND; // nothing added
}
genpaddr_t nodebase;
uint8_t nodesizebits;
struct mmnode *node = NULL;
errval_t err;
/* search for closest matching node in the tree */
err = find_node(mm, false, sizebits, minbase, maxlimit, mm->root, mm->base,
mm->sizebits, &nodebase, &nodesizebits, &node);
if (err_is_fail(err)) {
return err;
}
assert(node != NULL);
assert(node->type == NodeType_Free);
assert(nodesizebits >= sizebits);
/* split up node until it fits */
while (nodesizebits > sizebits) {
err = chunk_node(mm, sizebits, minbase, maxlimit, node, &nodebase,
&nodesizebits, &node);
if (err_is_fail(err)) {
return err;
}
}
assert(nodebase >= minbase && nodebase + UNBITS_GENPA(sizebits) <= maxlimit);
node->type = NodeType_Allocated;
assert(retcap != NULL);
*retcap = node->cap;
if (retbase != NULL) {
*retbase = nodebase;
}
return SYS_ERR_OK;
}
/**
* \brief Return cap to a specific region, that may be partially allocated
*
* The parameters to this function specify a fixed memory region (base and size)
* that may overlap one or more already-allocated memory regions. It marks the
* entire region as allocated, returning a cap to it.
*
* \warning It is assumed that the caller knows what they are doing.
*
* \param mm Memory manager instance
* \param sizebits Size of region
* \param base Base address of region
* \param retcap Pointer to capref struct, to be filled-in
*/
errval_t mm_realloc_range(struct mm *mm, uint8_t sizebits, genpaddr_t base,
struct capref *retcap)
{
/* check bounds */
if (base < mm->base ||
base + UNBITS_GENPA(sizebits) > mm->base + UNBITS_GENPA(mm->sizebits)) {
return MM_ERR_OUT_OF_BOUNDS;
}
/* check that base is properly aligned to size */
// We do not care about alignment anymore?!
//assert((base & (UNBITS_GENPA(sizebits) - 1)) == 0);
if (mm->root == NULL) {
return MM_ERR_NOT_FOUND; // nothing added
}
genpaddr_t nodebase;
uint8_t nodesizebits;
struct mmnode *node = NULL;
errval_t err;
/* search for closest matching node in the tree */
err = find_node(mm, true, sizebits, base, base + UNBITS_GENPA(sizebits),
mm->root, mm->base, mm->sizebits, &nodebase, &nodesizebits,
&node);
if (err_is_fail(err)) {
return err_push(err, MM_ERR_FIND_NODE);
}
assert(node != NULL);
if (node->type == NodeType_Chunked) {
assert(nodesizebits == sizebits);
node->type = NodeType_Allocated;
/* FIXME: walk child nodes and mark them allocated? or destroy? */
*retcap = node->cap;
return SYS_ERR_OK;
}
assert(node->type == NodeType_Free || node->type == NodeType_Allocated);
assert(nodesizebits >= sizebits);
/* split up node until it fits */
while (nodesizebits > sizebits) {
err = chunk_node(mm, sizebits, base, base + UNBITS_GENPA(sizebits), node,
&nodebase, &nodesizebits, &node);
if (err_is_fail(err)) {
return err_push(err, MM_ERR_CHUNK_NODE);
}
}
assert(nodebase == base && nodesizebits == sizebits);
node->type = NodeType_Allocated;
assert(retcap != NULL);
*retcap = node->cap;
return SYS_ERR_OK;
}
/**
* \brief Free an allocated region
*
* Marks the region (which must previously have been allocated) as free.
*
* \bug The user might not know (or care about) the base address.
*
* \param mm Memory manager instance
* \param cap Cap to re-insert (specify NULL_CAP if delete_chunked == false)
* \param base Physical base address of region
* \param sizebits Size of region
*/
errval_t mm_free(struct mm *mm, struct capref cap, genpaddr_t base,
uint8_t sizebits)
{
// find node, then mark it as free
genpaddr_t nodebase;
uint8_t nodesizebits;
struct mmnode *node = NULL;
errval_t err;
/* search for closest matching node in the tree */
err = find_node(mm, true, sizebits, base, base + UNBITS_GENPA(sizebits),
mm->root, mm->base, mm->sizebits, &nodebase, &nodesizebits,
&node);
if (err_is_fail(err)) {
return err_push(err, MM_ERR_NOT_FOUND);
}
assert(node != NULL);
if (node->type != NodeType_Allocated || nodesizebits < sizebits
|| nodebase > base) {
return MM_ERR_NOT_FOUND;
}
/* split up node until it fits */
// XXX: Is the while-loop still required? chunk_node() should
// immediately return the right chunk.
while (nodesizebits > sizebits) {
err = chunk_node(mm, sizebits, base, base + UNBITS_GENPA(sizebits), node,
&nodebase, &nodesizebits, &node);
if (err_is_fail(err)) {
return err_push(err, MM_ERR_CHUNK_NODE);
}
}
node->type = NodeType_Free;
node->cap = cap;
return SYS_ERR_OK;
}
/**
* \brief Fills an array with metadata for all free regions
*
* The regions returned are marked as allocated.
*
* \param mm Memory manager instance
* \param ret Pointer to return array to be filled-in
* \param retlen Length of the array, in slots
*
* \returns Number of caps that could have been stored in the return array.
* If this is less than or equal to #retlen, all caps have been returned.
*/
size_t mm_relinquish_all(struct mm *mm, struct mem_cap *ret, size_t retlen)
{
USER_PANIC("NYI");
return 0;
}
/**
* \brief Fills an array with metadata for all free regions within a given range
*
* The regions returned are marked as allocated.
*
* It must be the case for every returned cap (i) that:
* ret[i]->base >= base && ret[i]->base + (1UL << ret[i]->sizebits) <= limit
*
* \param mm Memory manager instance
* \param base Base address of range from which to relinquish memory
* \param limit Limit address of range from which to relinquish memory
* \param ret Pointer to return array to be filled-in
* \param retlen Length of the array, in slots
*
* \returns Number of caps that could have been stored in the return array.
* If this is less than or equal to #retlen, all caps have been returned.
*/
size_t mm_relinquish_range(struct mm *mm, genpaddr_t base, genpaddr_t limit,
struct mem_cap *ret, size_t retlen)
{
USER_PANIC("NYI");
return 0;
}
| 36.634678 | 103 | 0.61127 |
a2e2730474a43afd7592f0e3395eec1bea59eb6c | 1,843 | c | C | source/blender/makesrna/intern/rna_vfont.c | wycivil08/blendocv | f6cce83e1f149fef39afa8043aade9c64378f33e | [
"Unlicense"
] | 30 | 2015-01-29T14:06:05.000Z | 2022-01-10T07:47:29.000Z | source/blender/makesrna/intern/rna_vfont.c | ttagu99/blendocv | f6cce83e1f149fef39afa8043aade9c64378f33e | [
"Unlicense"
] | 1 | 2017-02-20T20:57:48.000Z | 2018-12-19T23:44:38.000Z | source/blender/makesrna/intern/rna_vfont.c | ttagu99/blendocv | f6cce83e1f149fef39afa8043aade9c64378f33e | [
"Unlicense"
] | 15 | 2015-04-23T02:38:36.000Z | 2021-03-01T20:09:39.000Z | /*
* $Id: rna_vfont.c 35238 2011-02-27 20:20:01Z jesterking $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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.
*
* Contributor(s): Blender Foundation (2008), Juho Vepsäläinen
*
* ***** END GPL LICENSE BLOCK *****
*/
/** \file blender/makesrna/intern/rna_vfont.c
* \ingroup RNA
*/
#include <stdlib.h>
#include "RNA_define.h"
#include "rna_internal.h"
#include "DNA_vfont_types.h"
#ifdef RNA_RUNTIME
#else
void RNA_def_vfont(BlenderRNA *brna)
{
StructRNA *srna;
PropertyRNA *prop;
srna= RNA_def_struct(brna, "VectorFont", "ID");
RNA_def_struct_ui_text(srna, "Vector Font", "Vector font for Text objects");
RNA_def_struct_sdna(srna, "VFont");
RNA_def_struct_ui_icon(srna, ICON_FILE_FONT);
prop= RNA_def_property(srna, "filepath", PROP_STRING, PROP_FILEPATH);
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
RNA_def_property_string_sdna(prop, NULL, "name");
RNA_def_property_ui_text(prop, "File Path", "");
prop= RNA_def_property(srna, "packed_file", PROP_POINTER, PROP_NONE);
RNA_def_property_pointer_sdna(prop, NULL, "packedfile");
RNA_def_property_ui_text(prop, "Packed File", "");
}
#endif
| 28.796875 | 77 | 0.734672 |
a2e439c6c4bbf688f4aa182df51910dfea93dc5d | 1,583 | c | C | gcc-gcc-7_3_0-release/gcc/testsuite/gcc.target/arm/thumb1-ual-1.c | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/gcc.target/arm/thumb1-ual-1.c | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/gcc.target/arm/thumb1-ual-1.c | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | /* Test Thumb1 insn pattern addsi3_cbranch_scratch. */
/* { dg-options "-O2" } */
/* { dg-skip-if "" { ! { arm_thumb1 } } } */
struct real_value {
unsigned int cl : 2;
unsigned int decimal : 1;
unsigned int sign : 1;
unsigned int signalling : 1;
unsigned int canonical : 1;
unsigned int uexp : (32 - 6);
unsigned long sig[((128 + (8 * 4)) / (8 * 4))];
};
enum real_value_class {
rvc_zero,
rvc_normal,
rvc_inf,
rvc_nan
};
extern void exit(int);
extern int foo(long long *, int, int);
int
real_to_integer (const struct real_value *r, int *fail, int precision)
{
long long val[2 * (((64*(8)) + 64) / 64)];
int exp;
int words, w;
int result;
switch (r->cl)
{
case rvc_zero:
underflow:
return 100;
case rvc_inf:
case rvc_nan:
overflow:
*fail = 1;
if (r->sign)
return 200;
else
return 300;
case rvc_normal:
if (r->decimal)
return 400;
exp = ((int)((r)->uexp ^ (unsigned int)(1 << ((32 - 6) - 1))) - (1 << ((32 - 6) - 1)));
if (exp <= 0)
goto underflow;
if (exp > precision)
goto overflow;
words = (precision + 64 - 1) / 64;
w = words * 64;
for (int i = 0; i < words; i++)
{
int j = ((128 + (8 * 4)) / (8 * 4)) - (words * 2) + (i * 2);
if (j < 0)
val[i] = 0;
else
val[i] = r->sig[j];
j += 1;
if (j >= 0)
val[i] |= (unsigned long long) r->sig[j] << (8 * 4);
}
result = foo(val, words, w);
if (r->sign)
return -result;
else
return result;
default:
exit(2);
}
}
| 17.988636 | 93 | 0.512318 |
a2e641c4b6176398b63e90d62f36118bb187e91a | 18,260 | h | C | ZZZ_OtherDemo/00-dyld-832.7.3/include/mach-o/dyld.h | 1079278593/TreasureChest | 8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8 | [
"MIT"
] | null | null | null | ZZZ_OtherDemo/00-dyld-832.7.3/include/mach-o/dyld.h | 1079278593/TreasureChest | 8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8 | [
"MIT"
] | null | null | null | ZZZ_OtherDemo/00-dyld-832.7.3/include/mach-o/dyld.h | 1079278593/TreasureChest | 8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 1999-2008 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* compliance with the License. Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this
* file.
*
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
* Please see the License for the specific language governing rights and
* limitations under the License.
*
* @APPLE_LICENSE_HEADER_END@
*/
#ifndef _MACH_O_DYLD_H_
#define _MACH_O_DYLD_H_
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <mach-o/loader.h>
#include <Availability.h>
#if __cplusplus
extern "C" {
#endif
#ifdef __DRIVERKIT_19_0
#define DYLD_DRIVERKIT_UNAVAILABLE __API_UNAVAILABLE(driverkit)
#else
#define DYLD_DRIVERKIT_UNAVAILABLE
#endif
/*
* The following functions allow you to iterate through all loaded images.
* This is not a thread safe operation. Another thread can add or remove
* an image during the iteration.
*
* Many uses of these routines can be replace by a call to dladdr() which
* will return the mach_header and name of an image, given an address in
* the image. dladdr() is thread safe.
*/
extern uint32_t _dyld_image_count(void) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0);
extern const struct mach_header* _dyld_get_image_header(uint32_t image_index) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0);
extern intptr_t _dyld_get_image_vmaddr_slide(uint32_t image_index) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0);
extern const char* _dyld_get_image_name(uint32_t image_index) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0);
/*
* The following functions allow you to install callbacks which will be called
* by dyld whenever an image is loaded or unloaded. During a call to _dyld_register_func_for_add_image()
* the callback func is called for every existing image. Later, it is called as each new image
* is loaded and bound (but initializers not yet run). The callback registered with
* _dyld_register_func_for_remove_image() is called after any terminators in an image are run
* and before the image is un-memory-mapped.
*/
extern void _dyld_register_func_for_add_image(void (*func)(const struct mach_header* mh, intptr_t vmaddr_slide)) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0);
extern void _dyld_register_func_for_remove_image(void (*func)(const struct mach_header* mh, intptr_t vmaddr_slide)) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0);
/*
* NSVersionOfRunTimeLibrary() returns the current_version number of the currently dylib
* specifed by the libraryName. The libraryName parameter would be "bar" for /path/libbar.3.dylib and
* "Foo" for /path/Foo.framework/Versions/A/Foo. It returns -1 if no such library is loaded.
*/
extern int32_t NSVersionOfRunTimeLibrary(const char* libraryName) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0);
/*
* NSVersionOfLinkTimeLibrary() returns the current_version number that the main executable was linked
* against at build time. The libraryName parameter would be "bar" for /path/libbar.3.dylib and
* "Foo" for /path/Foo.framework/Versions/A/Foo. It returns -1 if the main executable did not link
* against the specified library.
*/
extern int32_t NSVersionOfLinkTimeLibrary(const char* libraryName) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0);
/*
* _NSGetExecutablePath() copies the path of the main executable into the buffer. The bufsize parameter
* should initially be the size of the buffer. The function returns 0 if the path was successfully copied,
* and *bufsize is left unchanged. It returns -1 if the buffer is not large enough, and *bufsize is set
* to the size required.
*
* Note that _NSGetExecutablePath will return "a path" to the executable not a "real path" to the executable.
* That is the path may be a symbolic link and not the real file. With deep directories the total bufsize
* needed could be more than MAXPATHLEN.
*/
extern int _NSGetExecutablePath(char* buf, uint32_t* bufsize) __OSX_AVAILABLE_STARTING(__MAC_10_2, __IPHONE_2_0);
/*
* Registers a function to be called when the current thread terminates.
* Called by c++ compiler to implement destructors on thread_local object variables.
*/
extern void _tlv_atexit(void (*termFunc)(void* objAddr), void* objAddr) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
/*
* Never called. On-disk thread local variables contain a pointer to this. Once
* the thread local is prepared, the pointer changes to a real handler such as tlv_get_addr.
*/
extern void _tlv_bootstrap(void) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0) DYLD_DRIVERKIT_UNAVAILABLE ;
/*
* Dylibs that are incorporated into the dyld cache are removed from disk. That means code
* cannot stat() the file to see if it "exists". This function is like a stat() call that checks if a
* path is to a dylib that was removed from disk and is incorporated into the active dyld cache.
*/
extern bool _dyld_shared_cache_contains_path(const char* path) __API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0), bridgeos(5.0)) DYLD_DRIVERKIT_UNAVAILABLE;
/*
* The following dyld API's are deprecated as of Mac OS X 10.5. They are either
* no longer necessary or are superceeded by dlopen and friends in <dlfcn.h>.
* dlopen/dlsym/dlclose have been available since Mac OS X 10.3 and work with
* dylibs and bundles.
*
* NSAddImage -> dlopen
* NSLookupSymbolInImage -> dlsym
* NSCreateObjectFileImageFromFile -> dlopen
* NSDestroyObjectFileImage -> dlclose
* NSLinkModule -> not needed when dlopen used
* NSUnLinkModule -> not needed when dlclose used
* NSLookupSymbolInModule -> dlsym
* _dyld_image_containing_address -> dladdr
* NSLinkEditError -> dlerror
*
*/
#ifndef ENUM_DYLD_BOOL
#define ENUM_DYLD_BOOL
#undef FALSE
#undef TRUE
enum DYLD_BOOL { FALSE, TRUE };
#endif /* ENUM_DYLD_BOOL */
/* Object file image API */
typedef enum {
NSObjectFileImageFailure, /* for this a message is printed on stderr */
NSObjectFileImageSuccess,
NSObjectFileImageInappropriateFile,
NSObjectFileImageArch,
NSObjectFileImageFormat, /* for this a message is printed on stderr */
NSObjectFileImageAccess
} NSObjectFileImageReturnCode;
typedef struct __NSObjectFileImage* NSObjectFileImage;
/* NSObjectFileImage can only be used with MH_BUNDLE files */
extern NSObjectFileImageReturnCode NSCreateObjectFileImageFromFile(const char* pathName, NSObjectFileImage *objectFileImage) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "dlopen()");
extern NSObjectFileImageReturnCode NSCreateObjectFileImageFromMemory(const void *address, size_t size, NSObjectFileImage *objectFileImage) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "");
extern bool NSDestroyObjectFileImage(NSObjectFileImage objectFileImage) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "dlclose()");
extern uint32_t NSSymbolDefinitionCountInObjectFileImage(NSObjectFileImage objectFileImage) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "");
extern const char* NSSymbolDefinitionNameInObjectFileImage(NSObjectFileImage objectFileImage, uint32_t ordinal) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "");
extern uint32_t NSSymbolReferenceCountInObjectFileImage(NSObjectFileImage objectFileImage) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "");
extern const char* NSSymbolReferenceNameInObjectFileImage(NSObjectFileImage objectFileImage, uint32_t ordinal, bool *tentative_definition) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "");
extern bool NSIsSymbolDefinedInObjectFileImage(NSObjectFileImage objectFileImage, const char* symbolName) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.4, "dlsym()");
extern void* NSGetSectionDataInObjectFileImage(NSObjectFileImage objectFileImage, const char* segmentName, const char* sectionName, size_t *size) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "getsectiondata()");
typedef struct __NSModule* NSModule;
extern const char* NSNameOfModule(NSModule m) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "");
extern const char* NSLibraryNameForModule(NSModule m) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "");
extern NSModule NSLinkModule(NSObjectFileImage objectFileImage, const char* moduleName, uint32_t options) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "dlopen()");
#define NSLINKMODULE_OPTION_NONE 0x0
#define NSLINKMODULE_OPTION_BINDNOW 0x1
#define NSLINKMODULE_OPTION_PRIVATE 0x2
#define NSLINKMODULE_OPTION_RETURN_ON_ERROR 0x4
#define NSLINKMODULE_OPTION_DONT_CALL_MOD_INIT_ROUTINES 0x8
#define NSLINKMODULE_OPTION_TRAILING_PHYS_NAME 0x10
extern bool NSUnLinkModule(NSModule module, uint32_t options) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "");
#define NSUNLINKMODULE_OPTION_NONE 0x0
#define NSUNLINKMODULE_OPTION_KEEP_MEMORY_MAPPED 0x1
#define NSUNLINKMODULE_OPTION_RESET_LAZY_REFERENCES 0x2
/* symbol API */
typedef struct __NSSymbol* NSSymbol;
extern bool NSIsSymbolNameDefined(const char* symbolName) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.4, "dlsym()");
extern bool NSIsSymbolNameDefinedWithHint(const char* symbolName, const char* libraryNameHint) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.4, "dlsym()");
extern bool NSIsSymbolNameDefinedInImage(const struct mach_header* image, const char* symbolName) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.4, "dlsym()");
extern NSSymbol NSLookupAndBindSymbol(const char* symbolName) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.4, "dlsym()");
extern NSSymbol NSLookupAndBindSymbolWithHint(const char* symbolName, const char* libraryNameHint) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.4, "dlsym()");
extern NSSymbol NSLookupSymbolInModule(NSModule module, const char* symbolName) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "dlsym()");
extern NSSymbol NSLookupSymbolInImage(const struct mach_header* image, const char* symbolName, uint32_t options) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "dlsym()");
#define NSLOOKUPSYMBOLINIMAGE_OPTION_BIND 0x0
#define NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_NOW 0x1
#define NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_FULLY 0x2
#define NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR 0x4
extern const char* NSNameOfSymbol(NSSymbol symbol) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "");
extern void * NSAddressOfSymbol(NSSymbol symbol) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "dlsym()");
extern NSModule NSModuleForSymbol(NSSymbol symbol) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "dladdr()");
/* error handling API */
typedef enum {
NSLinkEditFileAccessError,
NSLinkEditFileFormatError,
NSLinkEditMachResourceError,
NSLinkEditUnixResourceError,
NSLinkEditOtherError,
NSLinkEditWarningError,
NSLinkEditMultiplyDefinedError,
NSLinkEditUndefinedError
} NSLinkEditErrors;
/*
* For the NSLinkEditErrors value NSLinkEditOtherError these are the values
* passed to the link edit error handler as the errorNumber (what would be an
* errno value for NSLinkEditUnixResourceError or a kern_return_t value for
* NSLinkEditMachResourceError).
*/
typedef enum {
NSOtherErrorRelocation,
NSOtherErrorLazyBind,
NSOtherErrorIndrLoop,
NSOtherErrorLazyInit,
NSOtherErrorInvalidArgs
} NSOtherErrorNumbers;
extern void NSLinkEditError(NSLinkEditErrors *c, int *errorNumber, const char** fileName, const char** errorString) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "dlerror()");
typedef struct {
void (*undefined)(const char* symbolName);
NSModule (*multiple)(NSSymbol s, NSModule oldModule, NSModule newModule);
void (*linkEdit)(NSLinkEditErrors errorClass, int errorNumber,
const char* fileName, const char* errorString);
} NSLinkEditErrorHandlers;
extern void NSInstallLinkEditErrorHandlers(const NSLinkEditErrorHandlers *handlers) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "");
extern bool NSAddLibrary(const char* pathName) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.4, "dlopen()");
extern bool NSAddLibraryWithSearching(const char* pathName) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.4, "dlopen()");
extern const struct mach_header* NSAddImage(const char* image_name, uint32_t options) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "dlopen()");
#define NSADDIMAGE_OPTION_NONE 0x0
#define NSADDIMAGE_OPTION_RETURN_ON_ERROR 0x1
#define NSADDIMAGE_OPTION_WITH_SEARCHING 0x2
#define NSADDIMAGE_OPTION_RETURN_ONLY_IF_LOADED 0x4
#define NSADDIMAGE_OPTION_MATCH_FILENAME_BY_INSTALLNAME 0x8
extern bool _dyld_present(void) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "always true");
extern bool _dyld_launched_prebound(void) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "moot");
extern bool _dyld_all_twolevel_modules_prebound(void) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.3, 10.5, "moot");
extern bool _dyld_bind_fully_image_containing_address(const void* address) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "dlopen(RTLD_NOW)");
extern bool _dyld_image_containing_address(const void* address) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.3, 10.5, "dladdr()");
extern void _dyld_lookup_and_bind(const char* symbol_name, void **address, NSModule* module) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.4, "dlsym()");
extern void _dyld_lookup_and_bind_with_hint(const char* symbol_name, const char* library_name_hint, void** address, NSModule* module) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.4, "dlsym()");
extern void _dyld_lookup_and_bind_fully(const char* symbol_name, void** address, NSModule* module) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.1, 10.5, "dlsym()");
extern const struct mach_header* _dyld_get_image_header_containing_address(const void* address) __API_UNAVAILABLE(ios, tvos, watchos) __API_UNAVAILABLE(bridgeos) DYLD_DRIVERKIT_UNAVAILABLE __OSX_DEPRECATED(10.3, 10.5, "dladdr()");
#if __cplusplus
}
#endif
#endif /* _MACH_O_DYLD_H_ */
| 66.886447 | 296 | 0.756517 |
a2e69b0a80fac17317b028fe03fb0d017a9a4e7c | 20,950 | c | C | qcom-caf/audio/post_proc/equalizer.c | nekodev17/device_10or_E | 04b9328c6a19480f473806333ecb7f1a039db4ca | [
"FTL"
] | 8 | 2020-10-12T19:12:50.000Z | 2021-11-12T17:01:21.000Z | qcom-caf/audio/post_proc/equalizer.c | Havoc-Devices/android_device_xiaomi_land | 7057c3e11912850c646eb89ce20d1a128ece6eff | [
"Apache-2.0"
] | null | null | null | qcom-caf/audio/post_proc/equalizer.c | Havoc-Devices/android_device_xiaomi_land | 7057c3e11912850c646eb89ce20d1a128ece6eff | [
"Apache-2.0"
] | 36 | 2019-02-11T06:56:01.000Z | 2021-11-11T07:11:48.000Z | /*
* Copyright (c) 2013-2014, 2017-2019, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* Copyright (C) 2013 The Android Open Source Project
*
* 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.
*/
#define LOG_TAG "offload_effect_equalizer"
//#define LOG_NDEBUG 0
#include <cutils/list.h>
#include <log/log.h>
#include <tinyalsa/asoundlib.h>
#include <sound/audio_effects.h>
#include <audio_effects/effect_equalizer.h>
#include "effect_api.h"
#include "equalizer.h"
#define EQUALIZER_MAX_LATENCY 0
/* Offload equalizer UUID: a0dac280-401c-11e3-9379-0002a5d5c51b */
const effect_descriptor_t equalizer_descriptor = {
{0x0bed4300, 0xddd6, 0x11db, 0x8f34, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}, // type
{0xa0dac280, 0x401c, 0x11e3, 0x9379, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}, // uuid
EFFECT_CONTROL_API_VERSION,
(EFFECT_FLAG_TYPE_INSERT | EFFECT_FLAG_HW_ACC_TUNNEL | EFFECT_FLAG_VOLUME_CTRL),
0, /* TODO */
1,
"MSM offload equalizer",
"The Android Open Source Project",
};
#ifdef AUDIO_FEATURE_ENABLED_GCOV
extern void __gcov_flush();
void enable_gcov()
{
__gcov_flush();
}
#else
void enable_gcov()
{
}
#endif
static const char *equalizer_preset_names[] = {
"Normal",
"Classical",
"Dance",
"Flat",
"Folk",
"Heavy Metal",
"Hip Hop",
"Jazz",
"Pop",
"Rock"
};
static const uint32_t equalizer_band_freq_range[NUM_EQ_BANDS][2] = {
{30000, 120000},
{120001, 460000},
{460001, 1800000},
{1800001, 7000000},
{7000001, 20000000}};
static const int16_t equalizer_band_presets_level[] = {
3, 0, 0, 0, 3, /* Normal Preset */
5, 3, -2, 4, 4, /* Classical Preset */
6, 0, 2, 4, 1, /* Dance Preset */
0, 0, 0, 0, 0, /* Flat Preset */
3, 0, 0, 2, -1, /* Folk Preset */
4, 1, 9, 3, 0, /* Heavy Metal Preset */
5, 3, 0, 1, 3, /* Hip Hop Preset */
4, 2, -2, 2, 5, /* Jazz Preset */
-1, 2, 5, 1, -2, /* Pop Preset */
5, 3, -1, 3, 5}; /* Rock Preset */
const uint16_t equalizer_band_presets_freq[NUM_EQ_BANDS] = {
60, /* Frequencies in Hz */
230,
910,
3600,
14000
};
/*
* Equalizer operations
*/
int equalizer_get_band_level(equalizer_context_t *context, int32_t band)
{
ALOGV("%s: ctxt %p, band: %d level: %d", __func__, context, band,
context->band_levels[band] * 100);
return context->band_levels[band] * 100;
}
int equalizer_set_band_level(equalizer_context_t *context, int32_t band,
int32_t level)
{
ALOGV("%s: ctxt %p, band: %d, level: %d", __func__, context, band, level);
if (level > 0) {
level = (int)((level+50)/100);
} else {
level = (int)((level-50)/100);
}
context->band_levels[band] = level;
context->preset = PRESET_CUSTOM;
offload_eq_set_preset(&(context->offload_eq), PRESET_CUSTOM);
offload_eq_set_bands_level(&(context->offload_eq),
NUM_EQ_BANDS,
equalizer_band_presets_freq,
context->band_levels);
if (context->ctl)
offload_eq_send_params(context->ctl, &context->offload_eq,
OFFLOAD_SEND_EQ_ENABLE_FLAG |
OFFLOAD_SEND_EQ_BANDS_LEVEL);
if (context->hw_acc_fd > 0)
hw_acc_eq_send_params(context->hw_acc_fd, &context->offload_eq,
OFFLOAD_SEND_EQ_ENABLE_FLAG |
OFFLOAD_SEND_EQ_BANDS_LEVEL);
return 0;
}
int equalizer_get_center_frequency(equalizer_context_t *context, int32_t band)
{
ALOGV("%s: ctxt %p, band: %d", __func__, context, band);
return (equalizer_band_freq_range[band][0] +
equalizer_band_freq_range[band][1]) / 2;
}
int equalizer_get_band_freq_range(equalizer_context_t *context, int32_t band,
uint32_t *low, uint32_t *high)
{
ALOGV("%s: ctxt %p, band: %d", __func__, context, band);
*low = equalizer_band_freq_range[band][0];
*high = equalizer_band_freq_range[band][1];
return 0;
}
int equalizer_get_band(equalizer_context_t *context, uint32_t freq)
{
int i;
ALOGV("%s: ctxt %p, freq: %d", __func__, context, freq);
for(i = 0; i < NUM_EQ_BANDS; i++) {
if (freq <= equalizer_band_freq_range[i][1]) {
return i;
}
}
return NUM_EQ_BANDS - 1;
}
int equalizer_get_preset(equalizer_context_t *context)
{
ALOGV("%s: ctxt %p, preset: %d", __func__, context, context->preset);
return context->preset;
}
int equalizer_set_preset(equalizer_context_t *context, int preset)
{
int i;
ALOGV("%s: ctxt %p, preset: %d", __func__, context, preset);
context->preset = preset;
for (i=0; i<NUM_EQ_BANDS; i++)
context->band_levels[i] =
equalizer_band_presets_level[i + preset * NUM_EQ_BANDS];
offload_eq_set_preset(&(context->offload_eq), preset);
offload_eq_set_bands_level(&(context->offload_eq),
NUM_EQ_BANDS,
equalizer_band_presets_freq,
context->band_levels);
if(context->ctl)
offload_eq_send_params(context->ctl, &context->offload_eq,
OFFLOAD_SEND_EQ_ENABLE_FLAG |
OFFLOAD_SEND_EQ_PRESET);
if(context->hw_acc_fd > 0)
hw_acc_eq_send_params(context->hw_acc_fd, &context->offload_eq,
OFFLOAD_SEND_EQ_ENABLE_FLAG |
OFFLOAD_SEND_EQ_PRESET);
return 0;
}
const char * equalizer_get_preset_name(equalizer_context_t *context,
int32_t preset)
{
ALOGV("%s: ctxt %p, preset: %s", __func__, context,
equalizer_preset_names[preset]);
if (preset == PRESET_CUSTOM) {
return "Custom";
} else {
return equalizer_preset_names[preset];
}
}
int equalizer_get_num_presets(equalizer_context_t *context)
{
ALOGV("%s: ctxt %p, presets_num: %d", __func__, context,
(int)(sizeof(equalizer_preset_names)/sizeof(char *)));
return sizeof(equalizer_preset_names)/sizeof(char *);
}
int equalizer_get_parameter(effect_context_t *context, effect_param_t *p,
uint32_t *size)
{
equalizer_context_t *eq_ctxt = (equalizer_context_t *)context;
int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t);
int32_t *param_tmp = (int32_t *)p->data;
int32_t param = *param_tmp++;
int32_t param2;
char *name;
void *value = p->data + voffset;
int i;
ALOGV("%s: ctxt %p, param %d", __func__, eq_ctxt, param);
p->status = 0;
switch (param) {
case EQ_PARAM_NUM_BANDS:
case EQ_PARAM_CUR_PRESET:
case EQ_PARAM_GET_NUM_OF_PRESETS:
case EQ_PARAM_BAND_LEVEL:
case EQ_PARAM_GET_BAND:
if (p->vsize < sizeof(int16_t))
p->status = -EINVAL;
p->vsize = sizeof(int16_t);
break;
case EQ_PARAM_LEVEL_RANGE:
if (p->vsize < 2 * sizeof(int16_t))
p->status = -EINVAL;
p->vsize = 2 * sizeof(int16_t);
break;
case EQ_PARAM_BAND_FREQ_RANGE:
if (p->vsize < 2 * sizeof(int32_t))
p->status = -EINVAL;
p->vsize = 2 * sizeof(int32_t);
break;
case EQ_PARAM_CENTER_FREQ:
if (p->vsize < sizeof(int32_t))
p->status = -EINVAL;
p->vsize = sizeof(int32_t);
break;
case EQ_PARAM_GET_PRESET_NAME:
break;
case EQ_PARAM_PROPERTIES:
if (p->vsize < (2 + NUM_EQ_BANDS) * sizeof(uint16_t))
p->status = -EINVAL;
p->vsize = (2 + NUM_EQ_BANDS) * sizeof(uint16_t);
break;
case EQ_PARAM_LATENCY:
if (p->vsize < sizeof(uint32_t))
p->status = -EINVAL;
p->vsize = sizeof(uint32_t);
break;
default:
p->status = -EINVAL;
}
*size = sizeof(effect_param_t) + voffset + p->vsize;
if (p->status != 0)
return 0;
switch (param) {
case EQ_PARAM_NUM_BANDS:
*(uint16_t *)value = (uint16_t)NUM_EQ_BANDS;
break;
case EQ_PARAM_LEVEL_RANGE:
*(int16_t *)value = -1500;
*((int16_t *)value + 1) = 1500;
break;
case EQ_PARAM_BAND_LEVEL:
param2 = *param_tmp;
if (param2 < 0 || param2 >= NUM_EQ_BANDS) {
p->status = -EINVAL;
if (param2 < 0) {
android_errorWriteLog(0x534e4554, "32438598");
ALOGW("\tERROR EQ_PARAM_BAND_LEVEL band %d", param2);
}
break;
}
*(int16_t *)value = (int16_t)equalizer_get_band_level(eq_ctxt, param2);
break;
case EQ_PARAM_CENTER_FREQ:
param2 = *param_tmp;
if (param2 < 0 || param2 >= NUM_EQ_BANDS) {
p->status = -EINVAL;
if (param2 < 0) {
android_errorWriteLog(0x534e4554, "32436341");
ALOGW("\tERROR EQ_PARAM_CENTER_FREQ band %d", param2);
}
break;
}
*(int32_t *)value = equalizer_get_center_frequency(eq_ctxt, param2);
break;
case EQ_PARAM_BAND_FREQ_RANGE:
param2 = *param_tmp;
if (param2 < 0 || param2 >= NUM_EQ_BANDS) {
p->status = -EINVAL;
if (param2 < 0) {
android_errorWriteLog(0x534e4554, "32247948");
ALOGW("\tERROR EQ_PARAM_BAND_FREQ_RANGE band %d", param2);
}
break;
}
equalizer_get_band_freq_range(eq_ctxt, param2, (uint32_t *)value,
((uint32_t *)value + 1));
break;
case EQ_PARAM_GET_BAND:
param2 = *param_tmp;
*(uint16_t *)value = (uint16_t)equalizer_get_band(eq_ctxt, param2);
break;
case EQ_PARAM_CUR_PRESET:
*(uint16_t *)value = (uint16_t)equalizer_get_preset(eq_ctxt);
break;
case EQ_PARAM_GET_NUM_OF_PRESETS:
*(uint16_t *)value = (uint16_t)equalizer_get_num_presets(eq_ctxt);
break;
case EQ_PARAM_GET_PRESET_NAME:
param2 = *param_tmp;
ALOGV("%s: EQ_PARAM_GET_PRESET_NAME: param2: %d", __func__, param2);
if ((param2 < 0 && param2 != PRESET_CUSTOM) ||
param2 >= equalizer_get_num_presets(eq_ctxt)) {
p->status = -EINVAL;
if (param2 < 0) {
android_errorWriteLog(0x534e4554, "32588016");
ALOGW("\tERROR EQ_PARAM_GET_PRESET_NAME preset %d", param2);
}
break;
}
if (p->vsize < 1) {
p->status = -EINVAL;
android_errorWriteLog(0x534e4554, "37536407");
break;
}
name = (char *)value;
strlcpy(name, equalizer_get_preset_name(eq_ctxt, param2), p->vsize - 1);
name[p->vsize - 1] = 0;
p->vsize = strlen(name) + 1;
break;
case EQ_PARAM_PROPERTIES: {
int16_t *prop = (int16_t *)value;
prop[0] = (int16_t)equalizer_get_preset(eq_ctxt);
prop[1] = (int16_t)NUM_EQ_BANDS;
for (i = 0; i < NUM_EQ_BANDS; i++) {
prop[2 + i] = (int16_t)equalizer_get_band_level(eq_ctxt, i);
}
} break;
case EQ_PARAM_LATENCY:
*(uint32_t *)value = EQUALIZER_MAX_LATENCY;
break;
default:
p->status = -EINVAL;
break;
}
return 0;
}
int equalizer_set_parameter(effect_context_t *context, effect_param_t *p,
uint32_t size __unused)
{
equalizer_context_t *eq_ctxt = (equalizer_context_t *)context;
int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t);
void *value = p->data + voffset;
int32_t vsize = (int32_t) p->vsize;
int32_t *param_tmp = (int32_t *)p->data;
int32_t param = *param_tmp++;
int32_t preset;
int32_t band;
int32_t level;
int i;
ALOGV("%s: ctxt %p, param %d", __func__, eq_ctxt, param);
p->status = 0;
switch (param) {
case EQ_PARAM_CUR_PRESET:
if (vsize < sizeof(int16_t)) {
p->status = -EINVAL;
break;
}
preset = (int32_t)(*(uint16_t *)value);
if ((preset >= equalizer_get_num_presets(eq_ctxt)) || (preset < 0)) {
p->status = -EINVAL;
break;
}
equalizer_set_preset(eq_ctxt, preset);
break;
case EQ_PARAM_BAND_LEVEL:
if (vsize < sizeof(int16_t)) {
p->status = -EINVAL;
break;
}
band = *param_tmp;
level = (int32_t)(*(int16_t *)value);
if (band < 0 || band >= NUM_EQ_BANDS) {
p->status = -EINVAL;
if (band < 0) {
android_errorWriteLog(0x534e4554, "32585400");
ALOGW("\tERROR EQ_PARAM_BAND_LEVEL band %d", band);
}
break;
}
equalizer_set_band_level(eq_ctxt, band, level);
break;
case EQ_PARAM_PROPERTIES: {
if (vsize < sizeof(int16_t)) {
p->status = -EINVAL;
break;
}
int16_t *prop = (int16_t *)value;
if ((int)prop[0] >= equalizer_get_num_presets(eq_ctxt)) {
p->status = -EINVAL;
break;
}
if (prop[0] >= 0) {
equalizer_set_preset(eq_ctxt, (int)prop[0]);
} else {
if (vsize < (2 + NUM_EQ_BANDS) * sizeof(int16_t)) {
android_errorWriteLog(0x534e4554, "37563371");
ALOGE("\tERROR EQ_PARAM_PROPERTIES valueSize %d < %d",
vsize, (int) ((2 + NUM_EQ_BANDS) * sizeof(int16_t)));
p->status = -EINVAL;
break;
}
if ((int)prop[1] != NUM_EQ_BANDS) {
p->status = -EINVAL;
break;
}
for (i = 0; i < NUM_EQ_BANDS; i++) {
equalizer_set_band_level(eq_ctxt, i, (int)prop[2 + i]);
}
}
} break;
default:
p->status = -EINVAL;
break;
}
return 0;
}
int equalizer_set_device(effect_context_t *context, uint32_t device)
{
ALOGV("%s: ctxt %p, device: 0x%x", __func__, context, device);
equalizer_context_t *eq_ctxt = (equalizer_context_t *)context;
eq_ctxt->device = device;
offload_eq_set_device(&(eq_ctxt->offload_eq), device);
return 0;
}
int equalizer_reset(effect_context_t *context __unused)
{
return 0;
}
int equalizer_init(effect_context_t *context)
{
ALOGV("%s: ctxt %p", __func__, context);
equalizer_context_t *eq_ctxt = (equalizer_context_t *)context;
context->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ;
context->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO;
context->config.inputCfg.format = AUDIO_FORMAT_PCM_16_BIT;
context->config.inputCfg.samplingRate = 44100;
context->config.inputCfg.bufferProvider.getBuffer = NULL;
context->config.inputCfg.bufferProvider.releaseBuffer = NULL;
context->config.inputCfg.bufferProvider.cookie = NULL;
context->config.inputCfg.mask = EFFECT_CONFIG_ALL;
context->config.outputCfg.accessMode = EFFECT_BUFFER_ACCESS_ACCUMULATE;
context->config.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO;
context->config.outputCfg.format = AUDIO_FORMAT_PCM_16_BIT;
context->config.outputCfg.samplingRate = 44100;
context->config.outputCfg.bufferProvider.getBuffer = NULL;
context->config.outputCfg.bufferProvider.releaseBuffer = NULL;
context->config.outputCfg.bufferProvider.cookie = NULL;
context->config.outputCfg.mask = EFFECT_CONFIG_ALL;
set_config(context, &context->config);
eq_ctxt->hw_acc_fd = -1;
for (int i = 0; i < NUM_EQ_BANDS; i++)
eq_ctxt->band_levels[i] = 0;
memset(&(eq_ctxt->offload_eq), 0, sizeof(struct eq_params));
offload_eq_set_preset(&(eq_ctxt->offload_eq), INVALID_PRESET);
enable_gcov();
return 0;
}
int equalizer_enable(effect_context_t *context)
{
equalizer_context_t *eq_ctxt = (equalizer_context_t *)context;
ALOGV("%s: ctxt %p", __func__, context);
if (!offload_eq_get_enable_flag(&(eq_ctxt->offload_eq))) {
offload_eq_set_enable_flag(&(eq_ctxt->offload_eq), true);
if (eq_ctxt->ctl)
offload_eq_send_params(eq_ctxt->ctl, &eq_ctxt->offload_eq,
OFFLOAD_SEND_EQ_ENABLE_FLAG |
OFFLOAD_SEND_EQ_BANDS_LEVEL);
if (eq_ctxt->hw_acc_fd > 0)
hw_acc_eq_send_params(eq_ctxt->hw_acc_fd, &eq_ctxt->offload_eq,
OFFLOAD_SEND_EQ_ENABLE_FLAG |
OFFLOAD_SEND_EQ_BANDS_LEVEL);
}
enable_gcov();
return 0;
}
int equalizer_disable(effect_context_t *context)
{
equalizer_context_t *eq_ctxt = (equalizer_context_t *)context;
ALOGV("%s:ctxt %p", __func__, eq_ctxt);
if (offload_eq_get_enable_flag(&(eq_ctxt->offload_eq))) {
offload_eq_set_enable_flag(&(eq_ctxt->offload_eq), false);
if (eq_ctxt->ctl)
offload_eq_send_params(eq_ctxt->ctl, &eq_ctxt->offload_eq,
OFFLOAD_SEND_EQ_ENABLE_FLAG);
if (eq_ctxt->hw_acc_fd > 0)
hw_acc_eq_send_params(eq_ctxt->hw_acc_fd, &eq_ctxt->offload_eq,
OFFLOAD_SEND_EQ_ENABLE_FLAG);
}
enable_gcov();
return 0;
}
int equalizer_start(effect_context_t *context, output_context_t *output)
{
equalizer_context_t *eq_ctxt = (equalizer_context_t *)context;
ALOGV("%s: ctxt %p, ctl %p", __func__, eq_ctxt, output->ctl);
eq_ctxt->ctl = output->ctl;
if (offload_eq_get_enable_flag(&(eq_ctxt->offload_eq))) {
if (eq_ctxt->ctl)
offload_eq_send_params(eq_ctxt->ctl, &eq_ctxt->offload_eq,
OFFLOAD_SEND_EQ_ENABLE_FLAG |
OFFLOAD_SEND_EQ_BANDS_LEVEL);
if (eq_ctxt->hw_acc_fd > 0)
hw_acc_eq_send_params(eq_ctxt->hw_acc_fd, &eq_ctxt->offload_eq,
OFFLOAD_SEND_EQ_ENABLE_FLAG |
OFFLOAD_SEND_EQ_BANDS_LEVEL);
}
enable_gcov();
return 0;
}
int equalizer_stop(effect_context_t *context, output_context_t *output __unused)
{
equalizer_context_t *eq_ctxt = (equalizer_context_t *)context;
ALOGV("%s: ctxt %p", __func__, eq_ctxt);
if (offload_eq_get_enable_flag(&(eq_ctxt->offload_eq)) &&
eq_ctxt->ctl) {
struct eq_params eq;
eq.enable_flag = false;
offload_eq_send_params(eq_ctxt->ctl, &eq, OFFLOAD_SEND_EQ_ENABLE_FLAG);
}
eq_ctxt->ctl = NULL;
enable_gcov();
return 0;
}
int equalizer_set_mode(effect_context_t *context, int32_t hw_acc_fd)
{
equalizer_context_t *eq_ctxt = (equalizer_context_t *)context;
ALOGV("%s: ctxt %p", __func__, eq_ctxt);
eq_ctxt->hw_acc_fd = hw_acc_fd;
if ((eq_ctxt->hw_acc_fd > 0) &&
(offload_eq_get_enable_flag(&(eq_ctxt->offload_eq))))
hw_acc_eq_send_params(eq_ctxt->hw_acc_fd, &eq_ctxt->offload_eq,
OFFLOAD_SEND_EQ_ENABLE_FLAG |
OFFLOAD_SEND_EQ_BANDS_LEVEL);
return 0;
}
| 34.00974 | 91 | 0.563294 |