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 "pxr/base/tf/smallVector.h"
#include <ostream>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <type_traits>
#include <utility>
+ 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 auto 
Tf_IsOstreamable_Impl (int) -> decltype(std::declval< std::ostream & >()<< std::declval< T >(), bool())
 
template<class T >
constexpr bool Tf_IsOstreamable_Impl (...)
 
template<class T >
constexpr bool Tf_IsOstreamable ()
 
template<class T , uint32_t N>
std::enable_if
< PXR_NS::Tf_IsOstreamable< T >
), std::ostream & >::type 
operator<< (std::ostream &out, const TfSmallVector< T, N > &v)
 
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 >
constexpr bool Tf_IsOstreamable ( )

Definition at line 68 of file ostreamMethods.h.

template<class T >
PXR_NAMESPACE_OPEN_SCOPE constexpr auto Tf_IsOstreamable_Impl ( int  ) -> decltype(std::declval<std::ostream &>() << std::declval<T>(), bool())

Definition at line 56 of file ostreamMethods.h.

template<class T >
constexpr bool Tf_IsOstreamable_Impl (   ...)

Definition at line 63 of file ostreamMethods.h.