]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/print_smart_ptr.hpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / strings / print_smart_ptr.hpp
1 #ifndef STLPLUS_PRINT_SMART_PTR
2 #define STLPLUS_PRINT_SMART_PTR
3 ////////////////////////////////////////////////////////////////////////////////
4
5 // Author: Andy Rushton
6 // Copyright: (c) Southampton University 1999-2004
7 // (c) Andy Rushton 2004-2009
8 // License: BSD License, see ../docs/license.html
9
10 // Generate a string representation of a smart pointer
11
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "strings_fixes.hpp"
14 #include "smart_ptr.hpp"
15 #include <string>
16 #include <iostream>
17
18 ////////////////////////////////////////////////////////////////////////////////
19
20 namespace stlplus
21 {
22
23 template<typename T, typename S>
24 void print_smart_ptr(std::ostream& device,
25 const smart_ptr<T>& value,
26 S print_fn,
27 const std::string& null_string = "<null>",
28 const std::string& prefix = "(",
29 const std::string& suffix = ")");
30
31 template<typename T, typename S>
32 void print_smart_ptr_clone(std::ostream& device,
33 const smart_ptr_clone<T>& value,
34 S print_fn,
35 const std::string& null_string = "<null>",
36 const std::string& prefix = "(",
37 const std::string& suffix = ")");
38
39 template<typename T, typename S>
40 void print_smart_ptr_nocopy(std::ostream& device,
41 const smart_ptr_nocopy<T>& value,
42 S print_fn,
43 const std::string& null_string = "<null>",
44 const std::string& prefix = "(",
45 const std::string& suffix = ")");
46
47
48 } // end namespace stlplus
49
50 #include "print_smart_ptr.tpp"
51 #endif
This page took 0.035697 seconds and 4 git commands to generate.