HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ostreamMethods.h File Reference
#include "pxr/pxr.h"
#include "pxr/base/tf/hashmap.h"
#include <ostream>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <type_traits>
#include <hboost/type_traits/has_left_shift.hpp>
+ Include dependency graph for ostreamMethods.h:

Go to the source code of this file.

Namespaces

 std
 

Functions

template<class T >
PXR_NAMESPACE_OPEN_SCOPE
constexpr bool 
Tf_IsOstreamable ()
 
template<class T >
std::enable_if
< PXR_NS::Tf_IsOstreamable< T >
), std::ostream & >::type 
std::operator<< (std::ostream &out, const std::vector< T > &v)
 
template<class T >
std::enable_if
< PXR_NS::Tf_IsOstreamable< T >
), std::ostream & >::type 
std::operator<< (std::ostream &out, const std::set< T > &v)
 
template<class T >
std::enable_if
< PXR_NS::Tf_IsOstreamable< T >
), std::ostream & >::type 
std::operator<< (std::ostream &out, const std::list< T > &l)
 
template<class K , class M , class H , class C , class A >
std::enable_if
< PXR_NS::Tf_IsOstreamable< K >
)&&PXR_NS::Tf_IsOstreamable< M >
), std::ostream & >::type 
std::operator<< (std::ostream &out, const PXR_NS::TfHashMap< K, M, H, C, A > &h)
 
template<class K , class M >
std::enable_if
< PXR_NS::Tf_IsOstreamable< K >
)&&PXR_NS::Tf_IsOstreamable< M >
), std::ostream & >::type 
std::operator<< (std::ostream &out, const std::map< K, M > &h)
 

Detailed Description

Handy ostream output for various lib/tf and STL containers.

These functions are useful when you need to quickly output various STL containers. The stream operators are only available if the contained types have stream operators.

This facility should not be used to output data for later input: this is essentially a "write-only" facility meant for diagnostics or human-readable display; the formats described herein are subject to change without notice.

Definition in file ostreamMethods.h.

Function Documentation

template<class T >
PXR_NAMESPACE_OPEN_SCOPE constexpr bool Tf_IsOstreamable ( )

Definition at line 56 of file ostreamMethods.h.