MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / NullWriter

Class NullWriter

include/thundersvm/util/log.h:3212–3229  ·  view source on GitHub ↗

@brief Writes nothing - Used when certain log is disabled

Source from the content-addressed store, hash-verified

3210 };
3211/// @brief Writes nothing - Used when certain log is disabled
3212 class NullWriter : base::NoCopy {
3213 public:
3214 NullWriter(void) {}
3215
3216 // Null manipulator
3217 inline NullWriter& operator<<(std::ostream& (*)(std::ostream&)) {
3218 return *this;
3219 }
3220
3221 template <typename T>
3222 inline NullWriter& operator<<(const T&) {
3223 return *this;
3224 }
3225
3226 inline operator bool() {
3227 return true;
3228 }
3229 };
3230/// @brief Main entry point of each logging
3231 class Writer : base::NoCopy {
3232 public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected