From 8286ac511144e4f17d34eac9affb97e50646344a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 23 Jul 2014 15:25:44 +0200 Subject: Imported Upstream version 4.0.0 --- libcult/documentation/trace/index.xhtml | 102 -------------------------------- 1 file changed, 102 deletions(-) delete mode 100644 libcult/documentation/trace/index.xhtml (limited to 'libcult/documentation/trace') diff --git a/libcult/documentation/trace/index.xhtml b/libcult/documentation/trace/index.xhtml deleted file mode 100644 index eb00f04..0000000 --- a/libcult/documentation/trace/index.xhtml +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - libcult/documentation/trace - - - - - - - - - - - - - - -
-

The libcult trace library provides a general-purpose -program tracing facility. The following code fragment can be found -in libcult/examples/trace:

- -
-struct foo {};
-
-std::ostream&
-operator<< (std::ostream& o, foo const&)
-{
-  return o << "::foo";
-}
-
-namespace trace = cult::trace;
-
-trace::stream tout ("main", 4);
-
-int
-main ()
-{
-  using trace::record;
-
-  trace::log::instance ().level (9);
-
-  record a ("main", 2);
-  a << "notationally burdensome";
-  tout << a;
-
-  record b ("main", 2);
-  tout << (b << "a bit better, but still burdensome");
-
-  tout << (record ("main", 2) << "this is"
-           << " somewhat"
-           << " twisted but nice to be able to");
-
-  tout << "concise, using default level";
-
-  tout << 9 << "concise, using custom level";
-
-  foo f;
-
-  tout << 3 << f << " " << 5;
-}
-
- -

Along with the proper implementation, a null implementation is -provided which can be used to completely optimize trace code away. For details -see the -Inlining code away essay.

-
- -
-

Copyright © 2005-2010 Boris Kolpackov.

- -
-Permission is granted to copy, distribute and/or modify this document under -the terms of the GNU Free -Documentation License, version 1.2; with no Invariant Sections, no -Front-Cover Texts and no Back-Cover Texts. -
-
- - - -- cgit v1.2.3