Home
last modified time | relevance | path

Searched refs:Optional (Results 1 – 25 of 1205) sorted by relevance

12345678910>>...49

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DOptional.h29 class Optional {
35 Optional(NoneType) : hasVal(false) {} in Optional() function
36 explicit Optional() : hasVal(false) {} in Optional() function
37 Optional(const T &y) : hasVal(true) { in Optional() function
40 Optional(const Optional &O) : hasVal(O.hasVal) { in Optional() function
45 Optional(T &&y) : hasVal(true) { in Optional() function
48 Optional(Optional<T> &&O) : hasVal(O) { in Optional() function
54 Optional &operator=(T &&y) {
63 Optional &operator=(Optional &&O) {
81 static inline Optional create(const T* y) { in create()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
Doptional_exception_safety_test.cc37 using Optional = absl::optional<Thrower>; typedef
109 auto thrower_nonempty = Optional(Thrower(kInitialInteger)); in TEST()
110 testing::TestThrowingCtor<Optional>(thrower_nonempty); in TEST()
113 testing::TestThrowingCtor<Optional>(integer_nonempty); in TEST()
114 testing::TestThrowingCtor<Optional>(std::move(integer_nonempty)); // NOLINT in TEST()
116 testing::TestThrowingCtor<Optional>(kInitialInteger); in TEST()
134 OptionalInvariants<Optional>, CheckDisengaged<Optional>); in TEST()
135 auto disengaged_test_empty = disengaged_test.WithInitialValue(Optional()); in TEST()
137 disengaged_test.WithInitialValue(Optional(kInitialInteger)); in TEST()
139 auto emplace_thrower_directly = [](Optional* optional_ptr) { in TEST()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DOptional.h215 template <typename T> class Optional {
221 constexpr Optional() {} in Optional() function
222 constexpr Optional(NoneType) {} in Optional() function
224 Optional(const T &y) : Storage(optional_detail::in_place_t{}, y) {} in Optional() function
225 Optional(const Optional &O) = default;
227 Optional(T &&y) : Storage(optional_detail::in_place_t{}, std::move(y)) {} in Optional() function
228 Optional(Optional &&O) = default;
230 Optional &operator=(T &&y) {
234 Optional &operator=(Optional &&O) = default;
241 static inline Optional create(const T *y) { in create()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/DWARF/
DDWARFFormValue.h106 Optional<uint64_t> getAsReference() const;
111 Optional<UnitOffset> getAsRelativeReference() const;
112 Optional<uint64_t> getAsUnsignedConstant() const;
113 Optional<int64_t> getAsSignedConstant() const;
114 Optional<const char *> getAsCString() const;
115 Optional<uint64_t> getAsAddress() const;
116 Optional<object::SectionedAddress> getAsSectionedAddress() const;
117 Optional<uint64_t> getAsSectionOffset() const;
118 Optional<ArrayRef<uint8_t>> getAsBlock() const;
119 Optional<uint64_t> getAsCStringOffset() const;
[all …]
DDWARFUnit.h63 Optional<uint64_t> DWOId;
88 Optional<uint64_t> getDWOId() const { return DWOId; } in getDWOId()
213 Optional<uint64_t> AddrOffsetSectionBase;
220 Optional<StrOffsetsContributionDescriptor> StringOffsetsTableContribution;
223 Optional<DWARFDebugRnglistTable> RngListTable;
224 Optional<DWARFListTableHeader> LoclistTableHeader;
227 llvm::Optional<object::SectionedAddress> BaseAddr;
256 Expected<Optional<StrOffsetsContributionDescriptor>>
263 Expected<Optional<StrOffsetsContributionDescriptor>>
320 Optional<object::SectionedAddress>
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Remarks/
DBitstreamRemarkParser.h36 Optional<uint64_t> ContainerVersion;
37 Optional<uint8_t> ContainerType;
38 Optional<StringRef> StrTabBuf;
39 Optional<StringRef> ExternalFilePath;
40 Optional<uint64_t> RemarkVersion;
58 Optional<uint8_t> Type;
59 Optional<uint64_t> RemarkNameIdx;
60 Optional<uint64_t> PassNameIdx;
61 Optional<uint64_t> FunctionNameIdx;
62 Optional<uint64_t> SourceFileNameIdx;
[all …]
DBitstreamRemarkSerializer.h107 Optional<uint64_t> RemarkVersion,
108 Optional<const StringTable *> StrTab = None,
109 Optional<StringRef> Filename = None);
150 Optional<StringRef> ExternalFilename = None) override;
163 Optional<BitstreamRemarkSerializerHelper> TmpHelper;
168 Optional<const StringTable *> StrTab;
169 Optional<StringRef> ExternalFilename;
174 Optional<const StringTable *> StrTab = None,
175 Optional<StringRef> ExternalFilename = None)
185 Optional<const StringTable *> StrTab = None,
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ObjectYAML/
DELFYAML.h81 Optional<llvm::yaml::Hex16> SHEntSize;
82 Optional<llvm::yaml::Hex64> SHOff;
83 Optional<llvm::yaml::Hex16> SHNum;
84 Optional<llvm::yaml::Hex16> SHStrNdx;
96 Optional<llvm::yaml::Hex64> Align;
97 Optional<llvm::yaml::Hex64> FileSize;
98 Optional<llvm::yaml::Hex64> MemSize;
99 Optional<llvm::yaml::Hex64> Offset;
105 Optional<uint32_t> NameIndex;
108 Optional<ELF_SHN> Index;
[all …]
/third_party/jinja2/
Denvironment.py82 ) -> t.Optional[t.MutableMapping[t.Tuple[weakref.ref, str], "Template"]]:
94 cache: t.Optional[t.MutableMapping],
95 ) -> t.Optional[t.MutableMapping[t.Tuple[weakref.ref, str], "Template"]]:
274 linked_to: t.Optional["Environment"] = None
300 line_statement_prefix: t.Optional[str] = LINE_STATEMENT_PREFIX,
301 line_comment_prefix: t.Optional[str] = LINE_COMMENT_PREFIX,
309 finalize: t.Optional[t.Callable[..., t.Any]] = None,
310 autoescape: t.Union[bool, t.Callable[[t.Optional[str]], bool]] = False,
311 loader: t.Optional["BaseLoader"] = None,
314 bytecode_cache: t.Optional["BytecodeCache"] = None,
[all …]
Dnodes.py75 self, environment: "Environment", template_name: t.Optional[str] = None
92 def get_eval_context(node: "Node", ctx: t.Optional[EvalContext]) -> EvalContext:
125 environment: t.Optional["Environment"]
147 exclude: t.Optional[t.Container[str]] = None,
148 only: t.Optional[t.Container[str]] = None,
169 exclude: t.Optional[t.Container[str]] = None,
170 only: t.Optional[t.Container[str]] = None,
184 def find(self, node_type: t.Type[_NodeBound]) -> t.Optional[_NodeBound]:
331 test: t.Optional[Node]
461 filter: t.Optional["Filter"]
[all …]
Dexceptions.py10 def __init__(self, message: t.Optional[str] = None) -> None:
14 def message(self) -> t.Optional[str]:
28 message: t.Optional[str] = None
32 name: t.Optional[t.Union[str, "Undefined"]],
33 message: t.Optional[str] = None,
68 message: t.Optional[str] = None,
95 name: t.Optional[str] = None,
96 filename: t.Optional[str] = None,
102 self.source: t.Optional[str] = None
/third_party/flutter/skia/third_party/externals/angle2/src/common/
DOptional.h16 struct Optional struct
18 Optional() : mValid(false), mValue(T()) {} in Optional() argument
20 Optional(const T &valueIn) : mValid(true), mValue(valueIn) {} in Optional() argument
22 Optional(const Optional &other) : mValid(other.mValid), mValue(other.mValue) {} in Optional() function
24 Optional &operator=(const Optional &other)
31 Optional &operator=(const T &value)
38 Optional &operator=(T &&value)
47 static Optional Invalid() { return Optional(); } in Invalid() argument
52 bool operator==(const Optional &other) const argument
57 bool operator!=(const Optional &other) const { return !(*this == other); }
DOptional_unittest.cpp19 Optional<int> testInvalid; in TEST()
21 ASSERT_EQ(Optional<int>::Invalid(), testInvalid); in TEST()
26 Optional<int> testValid(3); in TEST()
29 ASSERT_NE(Optional<int>::Invalid(), testValid); in TEST()
34 Optional<int> testValid(3); in TEST()
35 Optional<int> testInvalid; in TEST()
37 Optional<int> testCopy = testInvalid; in TEST()
/third_party/skia/third_party/externals/angle2/src/common/
DOptional.h16 struct Optional struct
18 Optional() : mValid(false), mValue(T()) {} in Optional() argument
20 Optional(const T &valueIn) : mValid(true), mValue(valueIn) {} in Optional() function
22 Optional(const Optional &other) : mValid(other.mValid), mValue(other.mValue) {} in Optional() argument
24 Optional &operator=(const Optional &other)
31 Optional &operator=(const T &value)
38 Optional &operator=(T &&value)
52 static Optional Invalid() { return Optional(); } in Invalid() argument
58 bool operator==(const Optional &other) const argument
63 bool operator!=(const Optional &other) const { return !(*this == other); }
DOptional_unittest.cpp19 Optional<int> testInvalid; in TEST()
21 ASSERT_EQ(Optional<int>::Invalid(), testInvalid); in TEST()
26 Optional<int> testValid(3); in TEST()
29 ASSERT_NE(Optional<int>::Invalid(), testValid); in TEST()
34 Optional<int> testValid(3); in TEST()
35 Optional<int> testInvalid; in TEST()
37 Optional<int> testCopy = testInvalid; in TEST()
/third_party/pulseaudio/
Dmeson_options.txt70 # Optional features
74 description : 'Optional ALSA support')
77 description : 'Optional Async DNS support')
80 description : 'Optional Avahi support')
83 description : 'Optional BlueZ 5 support')
86 description : 'Optional native headset backend support (BlueZ 5)')
89 description : 'Optional oFono headset backend support (BlueZ 5)')
92 description : 'Optional D-Bus support')
95 description : 'Optional FFTW support')
98 description : 'Optional GLib 2 support')
[all …]
/third_party/flutter/skia/src/core/
DSkRecords.h91 class Optional {
93 Optional() : fPtr(nullptr) {} in Optional() function
94 Optional(T* ptr) : fPtr(ptr) {} in Optional() function
95 Optional(Optional&& o) : fPtr(o.fPtr) { in Optional() function
98 ~Optional() { if (fPtr) fPtr->~T(); } in ~Optional()
103 Optional(const Optional&) = delete;
104 Optional& operator=(const Optional&) = delete;
180 Optional<SkRect> bounds;
181 Optional<SkPaint> paint;
184 Optional<SkMatrix> clipMatrix;
[all …]
/third_party/skia/src/core/
DSkRecords.h97 class Optional {
99 Optional() : fPtr(nullptr) {} in Optional() function
100 Optional(T* ptr) : fPtr(ptr) {} in Optional() function
101 Optional(Optional&& o) : fPtr(o.fPtr) { in Optional() function
104 ~Optional() { if (fPtr) fPtr->~T(); } in ~Optional()
109 Optional(const Optional&) = delete;
110 Optional& operator=(const Optional&) = delete;
167 Optional<SkRect> bounds;
168 Optional<SkPaint> paint;
174 Optional<SkRect> subset);
[all …]
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/model/
DFormatSpec.java29 import java.util.Optional;
121 Optional<String> carrierSpec, in of()
122 Optional<String> intlSpec, in of()
123 Optional<String> localSpec, in of()
125 Optional<Comment> comment) { in of()
129 Optional<FormatTemplate> carrier = carrierSpec.map(s -> parseCarrierSpec(s, national)); in of()
130 Optional<FormatTemplate> intl = intlSpec.map(s -> parseIntlSpec(s, national)); in of()
131 Optional<FormatTemplate> local = localSpec.map(s -> parseLocalSpec(s, national)); in of()
147 Optional.empty(), in localFormat()
148 Optional.empty(), in localFormat()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DInlineCost.h158 Optional<int> HintThreshold;
161 Optional<int> ColdThreshold;
164 Optional<int> OptSizeThreshold;
167 Optional<int> OptMinSizeThreshold;
170 Optional<int> HotCallSiteThreshold;
174 Optional<int> LocallyHotCallSiteThreshold;
177 Optional<int> ColdCallSiteThreshold;
180 Optional<bool> ComputeFullInlineCost;
218 Optional<function_ref<BlockFrequencyInfo &(Function &)>> GetBFI,
230 Optional<function_ref<BlockFrequencyInfo &(Function &)>> GetBFI,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DFPEnv.cpp20 Optional<fp::RoundingMode> StrToRoundingMode(StringRef RoundingArg) { in StrToRoundingMode()
23 return StringSwitch<Optional<fp::RoundingMode>>(RoundingArg) in StrToRoundingMode()
32 Optional<StringRef> RoundingModeToStr(fp::RoundingMode UseRounding) { in RoundingModeToStr()
33 Optional<StringRef> RoundingStr = None; in RoundingModeToStr()
54 Optional<fp::ExceptionBehavior> StrToExceptionBehavior(StringRef ExceptionArg) { in StrToExceptionBehavior()
55 return StringSwitch<Optional<fp::ExceptionBehavior>>(ExceptionArg) in StrToExceptionBehavior()
62 Optional<StringRef> ExceptionBehaviorToStr(fp::ExceptionBehavior UseExcept) { in ExceptionBehaviorToStr()
63 Optional<StringRef> ExceptStr = None; in ExceptionBehaviorToStr()
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/
DSupplementalData.java19 import java.util.Optional;
97 static Optional<Alias> forElementName(String name) { in forElementName()
98 return Optional.ofNullable(TYPE_MAP.get(name)); in forElementName()
290 public Optional<String> maximize(String localeId) { in maximize()
411 public Optional<String> getDefaultCalendar(String localeId) { in getDefaultCalendar()
412 Optional<String> calendar = getSpecialCaseCalendar(localeId); in getDefaultCalendar()
417 calendar = Optional.ofNullable(defaultCalendarMap.get(t)); in getDefaultCalendar()
419 return Optional.empty(); in getDefaultCalendar()
424 return Optional.of(rootCalendar); in getDefaultCalendar()
434 return parentCalendar.equals(calendar.get()) ? Optional.empty() : calendar; in getDefaultCalendar()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopUnrollPass.cpp180 Optional<unsigned> UserThreshold, Optional<unsigned> UserCount, in gatherUnrollingPreferences()
181 Optional<bool> UserAllowPartial, Optional<bool> UserRuntime, in gatherUnrollingPreferences()
182 Optional<bool> UserUpperBound, Optional<bool> UserAllowPeeling, in gatherUnrollingPreferences()
183 Optional<bool> UserAllowProfileBasedPeeling, in gatherUnrollingPreferences()
184 Optional<unsigned> UserFullUnrollMaxCount) { in gatherUnrollingPreferences()
335 static Optional<EstimatedUnrollCost> analyzeLoopUnrollCost( in analyzeLoopUnrollCost()
828 if (Optional<EstimatedUnrollCost> Cost = analyzeLoopUnrollCost( in computeUnrollCount()
1018 bool OnlyWhenForced, bool ForgetAllSCEV, Optional<unsigned> ProvidedCount, in tryToUnrollLoop()
1019 Optional<unsigned> ProvidedThreshold, Optional<bool> ProvidedAllowPartial, in tryToUnrollLoop()
1020 Optional<bool> ProvidedRuntime, Optional<bool> ProvidedUpperBound, in tryToUnrollLoop()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/
DSparcTargetMachine.h30 Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM,
51 Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM,
62 Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM,
72 Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DMCDwarf.h61 Optional<MD5::MD5Result> Checksum;
65 Optional<StringRef> Source;
229 Optional<MD5::MD5Result> Checksum,
230 Optional<StringRef> Source,
235 Optional<MCDwarfLineStr> &LineStr) const;
239 Optional<MCDwarfLineStr> &LineStr) const;
253 Optional<MD5::MD5Result> Checksum, in setRootFile()
254 Optional<StringRef> Source) { in setRootFile()
274 void emitV5FileDirTables(MCStreamer *MCOS, Optional<MCDwarfLineStr> &LineStr) const;
283 Optional<MD5::MD5Result> Checksum, in maybeSetRootFile()
[all …]

12345678910>>...49