HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Formats.h File Reference

Utility routines to output nicely-formatted numeric values. More...

#include <iosfwd>
#include <sstream>
#include <string>
#include <openvdb/version.h>
#include <openvdb/Platform.h>
+ Include dependency graph for Formats.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openvdb::OPENVDB_VERSION_NAME::util::FormattedInt< IntT >
 I/O manipulator that formats integer values with thousands separators. More...
 

Namespaces

 openvdb
 
 openvdb::OPENVDB_VERSION_NAME
 
 openvdb::OPENVDB_VERSION_NAME::util
 

Functions

OPENVDB_API int openvdb::OPENVDB_VERSION_NAME::util::printBytes (std::ostream &os, uint64_t bytes, const std::string &head="", const std::string &tail="\n", bool exact=false, int width=8, int precision=3)
 
OPENVDB_API int openvdb::OPENVDB_VERSION_NAME::util::printNumber (std::ostream &os, uint64_t number, const std::string &head="", const std::string &tail="\n", bool exact=true, int width=8, int precision=3)
 
OPENVDB_API int openvdb::OPENVDB_VERSION_NAME::util::printTime (std::ostream &os, double milliseconds, const std::string &head="", const std::string &tail="\n", int width=4, int precision=1, int verbose=0)
 
template<typename IntT >
std::ostream & openvdb::OPENVDB_VERSION_NAME::util::operator<< (std::ostream &os, const FormattedInt< IntT > &n)
 
template<typename IntT >
FormattedInt< IntT > openvdb::OPENVDB_VERSION_NAME::util::formattedInt (IntT n)
 

Detailed Description

Utility routines to output nicely-formatted numeric values.

Author
Ken Museth

Definition in file Formats.h.