![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Language-agnostic utilities for Elemental codegen. More...
Classes | |
struct | AttrOpFunctionInfo |
Information about how to codegen a given AttrOp in a given language. More... | |
struct | CodegenAttrTypeDescriptor |
A struct to represent an attribute type descriptor during codegen. More... | |
class | CodeGenerator |
The code generator interface. More... | |
class | Type |
Representations for types. More... |
Typedefs | |
using | AttrOpFunctionInfos = std::array<AttrOpFunctionInfo, kNumAttrOps> |
Enumerations | |
enum class | AttrOp { kGet , kSet , kIsNonDefault , kNumNonDefaults , kGetNonDefaults , kNumOps } |
The list of attribute operations supported by Elemental. More... |
Functions | |
CodegenAttrTypeDescriptor::ValueType | GetValueType (bool) |
CodegenAttrTypeDescriptor::ValueType | GetValueType (int64_t) |
CodegenAttrTypeDescriptor::ValueType | GetValueType (double) |
template<ElementType element_type> | |
CodegenAttrTypeDescriptor::ValueType | GetValueType (ElementId< element_type >) |
template<typename Descriptor> | |
CodegenAttrTypeDescriptor | MakeAttrTypeDescriptor () |
std::unique_ptr< CodeGenerator > | C99Declarations () |
Returns a generator for C99 declarations. | |
std::unique_ptr< CodeGenerator > | C99Definitions () |
Returns a generator for C99 definitions. | |
std::unique_ptr< CodeGenerator > | PythonEnums () |
CodegenAttrTypeDescriptor | GetTestDescriptor () |
AttrOpFunctionInfo | GetTestFunctionInfo (bool with_key_parameter) |
Variables | |
constexpr absl::string_view | kOpNames [static_cast< int >(AttrOp::kNumOps)] |
static constexpr int | kNumAttrOps = static_cast<int>(AttrOp::kNumOps) |
Language-agnostic utilities for Elemental codegen.
The python code generator.
The C99 code generator.
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
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.
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
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. Test descriptors. This avoids depending on attributes from attributes.h in the tests to decouple the codegen tests from attributes.h.
using operations_research::math_opt::codegen::AttrOpFunctionInfos = std::array<AttrOpFunctionInfo, kNumAttrOps> |
|
strong |
std::unique_ptr< CodeGenerator > operations_research::math_opt::codegen::C99Declarations | ( | ) |
std::unique_ptr< CodeGenerator > operations_research::math_opt::codegen::C99Definitions | ( | ) |
|
inline |
|
inline |
CodegenAttrTypeDescriptor::ValueType operations_research::math_opt::codegen::GetValueType | ( | bool | ) |
CodegenAttrTypeDescriptor::ValueType operations_research::math_opt::codegen::GetValueType | ( | double | ) |
CodegenAttrTypeDescriptor::ValueType operations_research::math_opt::codegen::GetValueType | ( | ElementId< element_type > | ) |
CodegenAttrTypeDescriptor::ValueType operations_research::math_opt::codegen::GetValueType | ( | int64_t | ) |
CodegenAttrTypeDescriptor operations_research::math_opt::codegen::MakeAttrTypeDescriptor | ( | ) |
std::unique_ptr< CodeGenerator > operations_research::math_opt::codegen::PythonEnums | ( | ) |
Returns a generator for python enums, independent of the actual implementation. These are used by the protocol.
Definition at line 157 of file gen_python.cc.
|
staticconstexpr |
|
constexpr |