YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/Users/deen/code/yugabyte-db/src/yb/util/strongly_typed_bool.h
Line
Count
Source
1
// Copyright (c) YugaByte, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
4
// in compliance with the License.  You may obtain a copy of the License at
5
//
6
// http://www.apache.org/licenses/LICENSE-2.0
7
//
8
// Unless required by applicable law or agreed to in writing, software distributed under the License
9
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
10
// or implied.  See the License for the specific language governing permissions and limitations
11
// under the License.
12
//
13
14
#ifndef YB_UTIL_STRONGLY_TYPED_BOOL_H
15
#define YB_UTIL_STRONGLY_TYPED_BOOL_H
16
17
#include <vector>
18
19
#include <boost/preprocessor/cat.hpp>
20
21
// A "strongly-typed boolean" tool. This is needed to prevent passing the wrong boolean as a
22
// function parameter, and to make callsites more readable by enforcing that MyBooleanType::kTrue or
23
// MyBooleanType::kFalse is specified instead of kTrue, kFalse. Conversion from strongly-typed bools
24
// to regular bools is automatic, but the reverse conversion is always explicit.
25
#define YB_STRONGLY_TYPED_BOOL(TypeName) \
26
  class BOOST_PP_CAT(TypeName, _Tag); \
27
  typedef ::yb::StronglyTypedBool<BOOST_PP_CAT(TypeName, _Tag)> TypeName;
28
29
namespace yb {
30
31
template <class Tag>
32
class StronglyTypedBool {
33
 public:
34
  static const StronglyTypedBool<Tag> kTrue;
35
  static const StronglyTypedBool<Tag> kFalse;
36
  static const std::initializer_list<StronglyTypedBool<Tag>> kValues;
37
38
  // This is public so that we can construct a strongly-typed boolean value out of a regular one if
39
  // needed. In that case we'll have to spell out the class name, which will enforce readability.
40
1.32G
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::docdb::AutoDecodeKeys_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
43.6k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::DupFileName_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
3.46M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::Stop_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
212k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::docdb::PartialRangeKeyIntents_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
5.57M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::tablet::TransactionsEnabled_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
28.0M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::tablet::IsSysCatalogTablet_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
43.1k
  explicit StronglyTypedBool(bool value) : value_(value) {}
Unexecuted instantiation: yb::StronglyTypedBool<yb::gen_yrpc::Lightweight_Tag>::StronglyTypedBool(bool)
yb::StronglyTypedBool<rocksdb::ConcurrentWrites_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
44.9k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<HaveMoreMessages_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
51.0M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::server::UseClientCerts_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
27.0k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::log::CreateNewSegment_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
19.3k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::ExcludeDots_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
59.6k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::consensus::TEST_SuppressVoteRequest_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
1.53M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::ForceConsistentRead_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
11.5M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::SetReadTime_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
1.30k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::Flush_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
2.02k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::SealOnly_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
814k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::master::IncludeInactive_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
1.17M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::tablet::AllowBootstrappingState_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
33.0k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::ql::NullIsAllowed_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
180k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::UsePartitionAwareRouting_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
584
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::ExportPercentiles_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
56.5k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::redisserver::AsPattern_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
18.6k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::redisserver::ManualResponse_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
18.6k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::AlreadyConsumed_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
326M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::AddToParent_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
60.9k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::CreateMetrics_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
61.0k
  explicit StronglyTypedBool(bool value) : value_(value) {}
redis_service.cc:yb::StronglyTypedBool<yb::redisserver::(anonymous namespace)::IsMonitorMessage_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
18.6k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::server::RpcOnly_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
104k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::Restart_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
9.58M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::ForceGlobalTransaction_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
320k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::tserver::AllowSplitTablet_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
7.77M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::consensus::PreElected_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
1.25M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::tablet::IsDropTable_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
92.0k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<rocksdb::IncludeHeader_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
44.6k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<rocksdb::IncludeFileVersion_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
44.6k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::master::RegisteredThroughHeartbeat_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
51.2k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<RequireTabletsRunning_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
53.8k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::ql::IsRescheduled_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
18.6k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::server::Private_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
125k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::ql::audit::IsPrepare_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
17.3k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::ql::audit::ErrorIsFormatted_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
18.6k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::tablet::DisableFlushOnShutdown_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
94.4k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::tablet::Destroy_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
34.9k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::UseHardLinks_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
16.5k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::CreateIfMissing_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
16.5k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::tablet::ResetSplit_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
33.1k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::tablet::Abortable_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
33.1k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::tablet::AlreadyAppliedToRegularDB_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
14.0M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::docdb::AllowSpecial_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
53.7k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::docdb::HybridTimeRequired_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
311M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::docdb::IncludeBinary_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
16.8k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::tablet::IncludeIntents_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
16.6k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::tablet::NeedsRecovery_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
317k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::docdb::ShouldRetainDeleteMarkersInMajorCompaction_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
29.4k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::rpc::SkipEmptyMessages_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
161M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::rpc::ReadBufferFull_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
159M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::rpc::Queue_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
10.8M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::Auto_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
44.8k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::rpc::RequestShutdown_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
56.5k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::rpc::IncludeHeader_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
36.3k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::consensus::CouldStop_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
33.1k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::consensus::PreElection_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
2.70M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::consensus::WriteEmpty_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
25.4M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::master::IsUserInitiated_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
32.5k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::master::DeactivateOnly_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
1.08M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::master::HideOnly_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
91.0k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::master::HoldCatalogLock_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
676k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::master::SendMetadata_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
3
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::master::ForClient_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
32.5k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::ShouldDeleteLogs_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
26.9k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::encryption::EncryptionOverflowWorkaround_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
299k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::internal::IsWithinTransactionRetry_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
1.21M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::Initial_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
53.7k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::rpc::RetryWhenBusy_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
53.7k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::Retry_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
53.7k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::internal::IncludeFailedReplicas_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
53.7k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::UseCache_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
53.7k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::HadReadTime_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
27.4k
  explicit StronglyTypedBool(bool value) : value_(value) {}
transaction.cc:yb::StronglyTypedBool<yb::client::(anonymous namespace)::Child_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
53.7k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::Sealed_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
26.8k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::Transactional_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
197
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::ListDeleted_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
1.28k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::PrepareForBackup_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
1.27k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::client::WaitSnapshot_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
1.26k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::pggate::PgTxnManager::SavePriority_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
320k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::pggate::InvalidateOnPgClient_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
53.7k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::pggate::Commit_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
53.9k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::pggate::IsTransactionalSession_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
53.7k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::pggate::IsReadOnlyOperation_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
26.8k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::pggate::RequestSent_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
8.82M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::pggate::DdlMode_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
53.7k
  explicit StronglyTypedBool(bool value) : value_(value) {}
wire_protocol.cc:yb::StronglyTypedBool<yb::(anonymous namespace)::PublicAddressAllowed_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
56.3k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::AddRef_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
28.1k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<rocksdb::ShortenKeys_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
56.2k
  explicit StronglyTypedBool(bool value) : value_(value) {}
Unexecuted instantiation: yb::StronglyTypedBool<yb::cdc::ReplicateIntents_Tag>::StronglyTypedBool(bool)
yb::StronglyTypedBool<yb::MayExist_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
65.4k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::OnlyChildren_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
66.8k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::Unlock_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
626k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::docdb::LastKey_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
70.4M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::docdb::FullDocKey_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
92.4M
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::docdb::IsMajorCompaction_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
1.08k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::docdb::SeekFwdSuffices_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
16.8k
  explicit StronglyTypedBool(bool value) : value_(value) {}
yb::StronglyTypedBool<yb::docdb::IsUpsert_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
11.2M
  explicit StronglyTypedBool(bool value) : value_(value) {}
redis_operation.cc:yb::StronglyTypedBool<yb::docdb::(anonymous namespace)::VerifySuccessIfMissing_Tag>::StronglyTypedBool(bool)
Line
Count
Source
40
16.8k
  explicit StronglyTypedBool(bool value) : value_(value) {}
41
42
  // These operators return regular bools so that it is easy to use strongly-typed bools in logical
43
  // expressions.
44
4.75G
  operator bool() const { return value_; }
Unexecuted instantiation: yb::StronglyTypedBool<yb::gen_yrpc::Lightweight_Tag>::operator bool() const
yb::StronglyTypedBool<yb::ql::NullIsAllowed_Tag>::operator bool() const
Line
Count
Source
44
160k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::UsePartitionAwareRouting_Tag>::operator bool() const
Line
Count
Source
44
81
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::redisserver::AsPattern_Tag>::operator bool() const
Line
Count
Source
44
558
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::AlreadyConsumed_Tag>::operator bool() const
Line
Count
Source
44
325M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::rpc::ReadBufferFull_Tag>::operator bool() const
Line
Count
Source
44
1.78k
  operator bool() const { return value_; }
redis_service.cc:yb::StronglyTypedBool<yb::redisserver::(anonymous namespace)::IsMonitorMessage_Tag>::operator bool() const
Line
Count
Source
44
956
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::redisserver::ManualResponse_Tag>::operator bool() const
Line
Count
Source
44
208k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::tserver::AllowSplitTablet_Tag>::operator bool() const
Line
Count
Source
44
7.74M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::ql::IsRescheduled_Tag>::operator bool() const
Line
Count
Source
44
4
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::ql::audit::IsPrepare_Tag>::operator bool() const
Line
Count
Source
44
12.8k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::ql::audit::ErrorIsFormatted_Tag>::operator bool() const
Line
Count
Source
44
640
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::Restart_Tag>::operator bool() const
Line
Count
Source
44
47.8M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::CreateIfMissing_Tag>::operator bool() const
Line
Count
Source
44
1.82k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::UseHardLinks_Tag>::operator bool() const
Line
Count
Source
44
10.8k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::tablet::IsSysCatalogTablet_Tag>::operator bool() const
Line
Count
Source
44
17.4M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::tablet::TransactionsEnabled_Tag>::operator bool() const
Line
Count
Source
44
48.2M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::tablet::IsDropTable_Tag>::operator bool() const
Line
Count
Source
44
152k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::tablet::DisableFlushOnShutdown_Tag>::operator bool() const
Line
Count
Source
44
382k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::tablet::Destroy_Tag>::operator bool() const
Line
Count
Source
44
748k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::tablet::AllowBootstrappingState_Tag>::operator bool() const
Line
Count
Source
44
178
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::tablet::AlreadyAppliedToRegularDB_Tag>::operator bool() const
Line
Count
Source
44
14.2M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::tablet::Abortable_Tag>::operator bool() const
Line
Count
Source
44
567k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::tablet::IncludeIntents_Tag>::operator bool() const
Line
Count
Source
44
14
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::tablet::ResetSplit_Tag>::operator bool() const
Line
Count
Source
44
150k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::tablet::NeedsRecovery_Tag>::operator bool() const
Line
Count
Source
44
301k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::rpc::IncludeHeader_Tag>::operator bool() const
Line
Count
Source
44
158M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::rpc::SkipEmptyMessages_Tag>::operator bool() const
Line
Count
Source
44
161M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::rpc::RetryWhenBusy_Tag>::operator bool() const
Line
Count
Source
44
266k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::rpc::RequestShutdown_Tag>::operator bool() const
Line
Count
Source
44
907k
  operator bool() const { return value_; }
yb::StronglyTypedBool<HaveMoreMessages_Tag>::operator bool() const
Line
Count
Source
44
25.4M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::consensus::PreElection_Tag>::operator bool() const
Line
Count
Source
44
10.0M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::consensus::TEST_SuppressVoteRequest_Tag>::operator bool() const
Line
Count
Source
44
1.45M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::consensus::PreElected_Tag>::operator bool() const
Line
Count
Source
44
1.22M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::consensus::WriteEmpty_Tag>::operator bool() const
Line
Count
Source
44
17.1M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::consensus::CouldStop_Tag>::operator bool() const
Line
Count
Source
44
8.55M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::server::RpcOnly_Tag>::operator bool() const
Line
Count
Source
44
71.8k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::server::Private_Tag>::operator bool() const
Line
Count
Source
44
160k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::server::UseClientCerts_Tag>::operator bool() const
Line
Count
Source
44
198
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::master::HideOnly_Tag>::operator bool() const
Line
Count
Source
44
148k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::master::IncludeInactive_Tag>::operator bool() const
Line
Count
Source
44
94.7M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::master::DeactivateOnly_Tag>::operator bool() const
Line
Count
Source
44
1.04M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::master::HoldCatalogLock_Tag>::operator bool() const
Line
Count
Source
44
643k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::master::SendMetadata_Tag>::operator bool() const
Line
Count
Source
44
10
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::master::ForClient_Tag>::operator bool() const
Line
Count
Source
44
93
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::master::IsUserInitiated_Tag>::operator bool() const
Line
Count
Source
44
1.58M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::master::RegisteredThroughHeartbeat_Tag>::operator bool() const
Line
Count
Source
44
672k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::internal::IsWithinTransactionRetry_Tag>::operator bool() const
Line
Count
Source
44
1.16M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::Initial_Tag>::operator bool() const
Line
Count
Source
44
2.00M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::ForceConsistentRead_Tag>::operator bool() const
Line
Count
Source
44
21.8M
  operator bool() const { return value_; }
yb::StronglyTypedBool<RequireTabletsRunning_Tag>::operator bool() const
Line
Count
Source
44
135k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::Retry_Tag>::operator bool() const
Line
Count
Source
44
1.70k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::internal::IncludeFailedReplicas_Tag>::operator bool() const
Line
Count
Source
44
22.0k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::UseCache_Tag>::operator bool() const
Line
Count
Source
44
1.93M
  operator bool() const { return value_; }
Unexecuted instantiation: yb::StronglyTypedBool<yb::client::Inclusive_Tag>::operator bool() const
transaction.cc:yb::StronglyTypedBool<yb::client::(anonymous namespace)::Child_Tag>::operator bool() const
Line
Count
Source
44
425k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::SealOnly_Tag>::operator bool() const
Line
Count
Source
44
1.84M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::Sealed_Tag>::operator bool() const
Line
Count
Source
44
927k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::ForceGlobalTransaction_Tag>::operator bool() const
Line
Count
Source
44
406k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::UseHash_Tag>::operator bool() const
Line
Count
Source
44
9.88k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::ResolveIntentsDuringRead_Tag>::operator bool() const
Line
Count
Source
44
228k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::Flush_Tag>::operator bool() const
Line
Count
Source
44
19.0k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::Transactional_Tag>::operator bool() const
Line
Count
Source
44
14
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::client::SetReadTime_Tag>::operator bool() const
Line
Count
Source
44
13
  operator bool() const { return value_; }
Unexecuted instantiation: yb::StronglyTypedBool<yb::client::ListDeleted_Tag>::operator bool() const
Unexecuted instantiation: yb::StronglyTypedBool<yb::client::PrepareForBackup_Tag>::operator bool() const
Unexecuted instantiation: yb::StronglyTypedBool<yb::client::WaitSnapshot_Tag>::operator bool() const
yb::StronglyTypedBool<yb::ShouldDeleteLogs_Tag>::operator bool() const
Line
Count
Source
44
438
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::AllowSpecial_Tag>::operator bool() const
Line
Count
Source
44
2.78G
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::HybridTimeRequired_Tag>::operator bool() const
Line
Count
Source
44
310M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::AutoDecodeKeys_Tag>::operator bool() const
Line
Count
Source
44
6.02M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::pggate::Commit_Tag>::operator bool() const
Line
Count
Source
44
218k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::pggate::DdlMode_Tag>::operator bool() const
Line
Count
Source
44
218k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::pggate::InvalidateOnPgClient_Tag>::operator bool() const
Line
Count
Source
44
6.19k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::pggate::IsTransactionalSession_Tag>::operator bool() const
Line
Count
Source
44
494k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::pggate::IsReadOnlyOperation_Tag>::operator bool() const
Line
Count
Source
44
7.28k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::pggate::RequestSent_Tag>::operator bool() const
Line
Count
Source
44
17.5M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::pggate::PgTxnManager::SavePriority_Tag>::operator bool() const
Line
Count
Source
44
1.77M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::itest::MustBeCommitted_Tag>::operator bool() const
Line
Count
Source
44
71
  operator bool() const { return value_; }
Unexecuted instantiation: yb::StronglyTypedBool<yb::ForceStepDown_Tag>::operator bool() const
yb::StronglyTypedBool<yb::HadReadTime_Tag>::operator bool() const
Line
Count
Source
44
13.7k
  operator bool() const { return value_; }
wire_protocol.cc:yb::StronglyTypedBool<yb::(anonymous namespace)::PublicAddressAllowed_Tag>::operator bool() const
Line
Count
Source
44
11.4k
  operator bool() const { return value_; }
yb::StronglyTypedBool<rocksdb::ConcurrentWrites_Tag>::operator bool() const
Line
Count
Source
44
476k
  operator bool() const { return value_; }
yb::StronglyTypedBool<rocksdb::ShortenKeys_Tag>::operator bool() const
Line
Count
Source
44
2.89M
  operator bool() const { return value_; }
yb::StronglyTypedBool<rocksdb::IncludeHeader_Tag>::operator bool() const
Line
Count
Source
44
1.27M
  operator bool() const { return value_; }
yb::StronglyTypedBool<rocksdb::IncludeFileVersion_Tag>::operator bool() const
Line
Count
Source
44
1.27M
  operator bool() const { return value_; }
Unexecuted instantiation: yb::StronglyTypedBool<yb::cdc::ReplicateIntents_Tag>::operator bool() const
yb::StronglyTypedBool<yb::encryption::EncryptionOverflowWorkaround_Tag>::operator bool() const
Line
Count
Source
44
293k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::ExcludeDots_Tag>::operator bool() const
Line
Count
Source
44
688k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::AddToParent_Tag>::operator bool() const
Line
Count
Source
44
4.35M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::MayExist_Tag>::operator bool() const
Line
Count
Source
44
17.7M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::CreateMetrics_Tag>::operator bool() const
Line
Count
Source
44
2.59M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::OnlyChildren_Tag>::operator bool() const
Line
Count
Source
44
1.39k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::ExportPercentiles_Tag>::operator bool() const
Line
Count
Source
44
6.81k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::Auto_Tag>::operator bool() const
Line
Count
Source
44
50.2M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::Stop_Tag>::operator bool() const
Line
Count
Source
44
1.50M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::Unlock_Tag>::operator bool() const
Line
Count
Source
44
593k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::DupFileName_Tag>::operator bool() const
Line
Count
Source
44
382M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::AddRef_Tag>::operator bool() const
Line
Count
Source
44
1.60M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::FullDocKey_Tag>::operator bool() const
Line
Count
Source
44
67.0M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::PartialRangeKeyIntents_Tag>::operator bool() const
Line
Count
Source
44
34.8M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::IncludeBinary_Tag>::operator bool() const
Line
Count
Source
44
186k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::IsMajorCompaction_Tag>::operator bool() const
Line
Count
Source
44
13.2k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::ShouldRetainDeleteMarkersInMajorCompaction_Tag>::operator bool() const
Line
Count
Source
44
12.1k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::SeekFwdSuffices_Tag>::operator bool() const
Line
Count
Source
44
627k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::IsUpsert_Tag>::operator bool() const
Line
Count
Source
44
11.2M
  operator bool() const { return value_; }
redis_operation.cc:yb::StronglyTypedBool<yb::docdb::(anonymous namespace)::VerifySuccessIfMissing_Tag>::operator bool() const
Line
Count
Source
44
10.8k
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::docdb::LastKey_Tag>::operator bool() const
Line
Count
Source
44
64.6M
  operator bool() const { return value_; }
yb::StronglyTypedBool<yb::log::CreateNewSegment_Tag>::operator bool() const
Line
Count
Source
44
151k
  operator bool() const { return value_; }
45
903M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
Unexecuted instantiation: yb::StronglyTypedBool<rocksdb::ConcurrentWrites_Tag>::operator!() const
Unexecuted instantiation: yb::StronglyTypedBool<yb::gen_yrpc::Lightweight_Tag>::operator!() const
yb::StronglyTypedBool<yb::ql::NullIsAllowed_Tag>::operator!() const
Line
Count
Source
45
160k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::AlreadyConsumed_Tag>::operator!() const
Line
Count
Source
45
326M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::tserver::AllowSplitTablet_Tag>::operator!() const
Line
Count
Source
45
7.74M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::client::Restart_Tag>::operator!() const
Line
Count
Source
45
9.56M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::tablet::AllowBootstrappingState_Tag>::operator!() const
Line
Count
Source
45
178
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::tablet::AlreadyAppliedToRegularDB_Tag>::operator!() const
Line
Count
Source
45
14.0M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::tablet::IncludeIntents_Tag>::operator!() const
Line
Count
Source
45
14
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::tablet::TransactionsEnabled_Tag>::operator!() const
Line
Count
Source
45
27.9M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::tablet::NeedsRecovery_Tag>::operator!() const
Line
Count
Source
45
150k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::rpc::SkipEmptyMessages_Tag>::operator!() const
Line
Count
Source
45
161M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<HaveMoreMessages_Tag>::operator!() const
Line
Count
Source
45
25.4M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::consensus::TEST_SuppressVoteRequest_Tag>::operator!() const
Line
Count
Source
45
1.45M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::consensus::PreElected_Tag>::operator!() const
Line
Count
Source
45
1.22M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::consensus::PreElection_Tag>::operator!() const
Line
Count
Source
45
1.47M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::server::RpcOnly_Tag>::operator!() const
Line
Count
Source
45
71.8k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::master::HideOnly_Tag>::operator!() const
Line
Count
Source
45
24.9k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
Unexecuted instantiation: yb::StronglyTypedBool<yb::master::IncludeInactive_Tag>::operator!() const
yb::StronglyTypedBool<yb::master::DeactivateOnly_Tag>::operator!() const
Line
Count
Source
45
1.04M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::master::HoldCatalogLock_Tag>::operator!() const
Line
Count
Source
45
643k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::master::RegisteredThroughHeartbeat_Tag>::operator!() const
Line
Count
Source
45
8.15k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::client::internal::IsWithinTransactionRetry_Tag>::operator!() const
Line
Count
Source
45
1.16M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::client::SealOnly_Tag>::operator!() const
Line
Count
Source
45
788k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::docdb::HybridTimeRequired_Tag>::operator!() const
Line
Count
Source
45
310M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::pggate::PgTxnManager::SavePriority_Tag>::operator!() const
Line
Count
Source
45
266k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::pggate::Commit_Tag>::operator!() const
Line
Count
Source
45
251
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::HadReadTime_Tag>::operator!() const
Line
Count
Source
45
13.7k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
Unexecuted instantiation: yb::StronglyTypedBool<yb::cdc::ReplicateIntents_Tag>::operator!() const
yb::StronglyTypedBool<yb::encryption::EncryptionOverflowWorkaround_Tag>::operator!() const
Line
Count
Source
45
243k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::OnlyChildren_Tag>::operator!() const
Line
Count
Source
45
1.39k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::Stop_Tag>::operator!() const
Line
Count
Source
45
151k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::docdb::ShouldRetainDeleteMarkersInMajorCompaction_Tag>::operator!() const
Line
Count
Source
45
12.1k
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
yb::StronglyTypedBool<yb::docdb::IsUpsert_Tag>::operator!() const
Line
Count
Source
45
11.2M
  StronglyTypedBool<Tag> operator!() const { return StronglyTypedBool<Tag>(!value_); }
46
620
  bool get() const { return value_; }
47
48
 private:
49
  bool value_;
50
};
51
52
template <class Tag>
53
const StronglyTypedBool<Tag> StronglyTypedBool<Tag>::kTrue(true);
54
55
template <class Tag>
56
const StronglyTypedBool<Tag> StronglyTypedBool<Tag>::kFalse(false);
57
58
template <class Tag>
59
const std::initializer_list<StronglyTypedBool<Tag>> StronglyTypedBool<Tag>::kValues {
60
  StronglyTypedBool<Tag>::kFalse,
61
  StronglyTypedBool<Tag>::kTrue
62
};
63
64
}  // namespace yb
65
66
#endif // YB_UTIL_STRONGLY_TYPED_BOOL_H