HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
streamOut.h File Reference
#include "pxr/pxr.h"
#include "pxr/base/vt/api.h"
#include "pxr/base/tf/enum.h"
#include "pxr/base/tf/functionRef.h"
#include <iosfwd>
#include <typeinfo>
#include <type_traits>
+ Include dependency graph for streamOut.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

PXR_NAMESPACE_OPEN_SCOPE
VT_API std::ostream & 
Vt_StreamOutGeneric (std::type_info const &type, void const *addr, std::ostream &stream)
 
template<class T >
auto Vt_StreamOutImpl (T const &obj, std::ostream &stream, int) -> decltype(stream<< obj)
 
template<class T >
std::ostream & Vt_StreamOutImpl (T const &obj, std::ostream &stream, long)
 
template<class T >
std::enable_if<!std::is_enum
< T >::value, std::ostream & >
::type 
VtStreamOut (T const &obj, std::ostream &stream)
 
template<class EnumT >
std::enable_if< std::is_enum
< EnumT >::value, std::ostream & >
::type 
VtStreamOut (EnumT const &e, std::ostream &stream)
 
VT_API std::ostream & VtStreamOut (bool const &, std::ostream &)
 
VT_API std::ostream & VtStreamOut (char const &, std::ostream &)
 
VT_API std::ostream & VtStreamOut (unsigned char const &, std::ostream &)
 
VT_API std::ostream & VtStreamOut (signed char const &, std::ostream &)
 
VT_API std::ostream & VtStreamOut (float const &, std::ostream &)
 
VT_API std::ostream & VtStreamOut (double const &, std::ostream &)
 
VT_API void VtStreamOutArray (std::ostream &, const Vt_ShapeData *, TfFunctionRef< void(std::ostream &)>)
 

Function Documentation

PXR_NAMESPACE_OPEN_SCOPE VT_API std::ostream& Vt_StreamOutGeneric ( std::type_info const &  type,
void const *  addr,
std::ostream &  stream 
)
template<class T >
auto Vt_StreamOutImpl ( T const &  obj,
std::ostream &  stream,
int   
) -> decltype(stream << obj)
inline

Definition at line 49 of file streamOut.h.

template<class T >
std::ostream& Vt_StreamOutImpl ( T const &  obj,
std::ostream &  stream,
long   
)
inline

Definition at line 58 of file streamOut.h.

template<class T >
std::enable_if<!std::is_enum<T>::value, std::ostream &>::type VtStreamOut ( T const &  obj,
std::ostream &  stream 
)

VtValue and VtArray make unqualified calls to VtStreamOut when writing values to streams. Clients may overload VtStreamOut for their own types if desired.

Definition at line 69 of file streamOut.h.

template<class EnumT >
std::enable_if<std::is_enum<EnumT>::value, std::ostream &>::type VtStreamOut ( EnumT const &  e,
std::ostream &  stream 
)

Definition at line 77 of file streamOut.h.

VT_API std::ostream& VtStreamOut ( bool const &  ,
std::ostream &   
)
VT_API std::ostream& VtStreamOut ( char const &  ,
std::ostream &   
)
VT_API std::ostream& VtStreamOut ( unsigned char const &  ,
std::ostream &   
)
VT_API std::ostream& VtStreamOut ( signed char const &  ,
std::ostream &   
)
VT_API std::ostream& VtStreamOut ( float const &  ,
std::ostream &   
)
VT_API std::ostream& VtStreamOut ( double const &  ,
std::ostream &   
)
VT_API void VtStreamOutArray ( std::ostream &  ,
const Vt_ShapeData ,
TfFunctionRef< void(std::ostream &)>   
)