|
Namespaces |
namespace | operations_research |
Classes |
class | operations_research::DateLogger |
class | LogMessage |
| namespace operations_research More...
|
class | LogMessageFatal |
Defines |
#define | DCHECK(condition) assert(condition) |
| Debug-only checking.
|
#define | DCHECK_EQ(val1, val2) assert((val1) == (val2)) |
#define | DCHECK_NE(val1, val2) assert((val1) != (val2)) |
#define | DCHECK_LE(val1, val2) assert((val1) <= (val2)) |
#define | DCHECK_LT(val1, val2) assert((val1) < (val2)) |
#define | DCHECK_GE(val1, val2) assert((val1) >= (val2)) |
#define | DCHECK_GT(val1, val2) assert((val1) > (val2)) |
#define | CHECK(x) if (!(x)) LogMessageFatal(__FILE__, __LINE__).stream() << "Check failed: " #x |
| Always-on checking.
|
#define | CHECK_LT(x, y) CHECK((x) < (y)) |
#define | CHECK_GT(x, y) CHECK((x) > (y)) |
#define | CHECK_LE(x, y) CHECK((x) <= (y)) |
#define | CHECK_GE(x, y) CHECK((x) >= (y)) |
#define | CHECK_EQ(x, y) CHECK((x) == (y)) |
#define | CHECK_NE(x, y) CHECK((x) != (y)) |
#define | CHECK_NOTNULL(x) CHECK((x) != NULL) |
#define | LOG_INFO LogMessage(__FILE__, __LINE__) |
#define | LOG_ERROR LOG_INFO |
#define | LOG_WARNING LOG_INFO |
#define | LOG_FATAL LogMessageFatal(__FILE__, __LINE__) |
#define | LOG_QFATAL LOG_FATAL |
#define | VLOG(x) if ((x) <= FLAGS_log_level) LOG_INFO.stream() |
#define | DEBUG_MODE 1 |
#define | LOG_DFATAL LOG_FATAL |
#define | LOG(severity) LOG_ ## severity.stream() |
#define | LG LOG_INFO.stream() |
Functions |
| DECLARE_INT32 (log_level) |
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
|
| DECLARE_BOOL (log_prefix) |
DECLARE_INT32 |
( |
log_level |
|
) |
|
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. NOLINT