HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
basic_printf_context< OutputIt, Char, ArgFormatter > Class Template Reference

#include <printf.h>

+ Inheritance diagram for basic_printf_context< OutputIt, Char, ArgFormatter >:

Classes

struct  formatter_type
 

Public Types

typedef Char char_type
 
- Public Types inherited from internal::context_base< OutputIt, basic_printf_context< OutputIt, Char, ArgFormatter >, Char >
typedef OutputIt iterator
 

Public Member Functions

 basic_printf_context (OutputIt out, basic_string_view< char_type > format_str, basic_format_args< basic_printf_context > args)
 
void format ()
 
- Public Member Functions inherited from internal::context_base< OutputIt, basic_printf_context< OutputIt, Char, ArgFormatter >, Char >
basic_parse_context< char_type > & parse_context ()
 
basic_format_args
< basic_printf_context
< OutputIt, Char, ArgFormatter > > 
args () const
 
internal::error_handler error_handler ()
 
void on_error (const char *message)
 
iterator out ()
 
iterator begin ()
 
void advance_to (iterator it)
 
locale_ref locale ()
 

Additional Inherited Members

- Protected Types inherited from internal::context_base< OutputIt, basic_printf_context< OutputIt, Char, ArgFormatter >, Char >
typedef Char char_type
 
typedef basic_format_arg
< basic_printf_context
< OutputIt, Char, ArgFormatter > > 
format_arg
 
- Protected Member Functions inherited from internal::context_base< OutputIt, basic_printf_context< OutputIt, Char, ArgFormatter >, Char >
 context_base (OutputIt out, basic_string_view< char_type > format_str, basic_format_args< basic_printf_context< OutputIt, Char, ArgFormatter > > ctx_args, locale_ref loc=locale_ref())
 
format_arg do_get_arg (unsigned arg_id)
 
format_arg get_arg (unsigned arg_id)
 

Detailed Description

template<typename OutputIt, typename Char, typename ArgFormatter = printf_arg_formatter<back_insert_range<internal::basic_buffer<Char>>>>
class basic_printf_context< OutputIt, Char, ArgFormatter >

This template formats data and writes the output to a writer.

Examples:
CHOP/CHOP_Blend.C, CHOP/CHOP_Blend.h, CHOP/CHOP_Spring.C, CHOP/CHOP_Spring.h, CHOP/CHOP_Stair.C, CHOP/CHOP_Stair.h, COP2/COP2_FullImageFilter.C, COP2/COP2_FullImageFilter.h, COP2/COP2_MultiInputWipe.C, COP2/COP2_MultiInputWipe.h, COP2/COP2_SampleFilter.C, COP2/COP2_SampleFilter.h, COP2/COP2_SampleGenerator.C, COP2/COP2_SampleGenerator.h, DM/DM_ObjectPathHook.C, euclid/SOP_Euclid.C, euclid/SOP_Euclid.h, field3d/ROP_Field3D.C, LOP/LOP_Sphere.C, LOP/LOP_Sphere.h, OBJ/OBJ_Shake.C, OBJ/OBJ_Shake.h, OBJ/OBJ_WorldAlign.C, OBJ/OBJ_WorldAlign.h, OPUI/OPUI_HighlightBadge.C, OPUI/OPUI_MemUsageTextBadge.C, packedsphere/GU_PackedSphere.C, packedsphere/GU_PackedSphere.h, SHOP/SHOP_Multi.C, SHOP/SHOP_POVMaterial.C, SOP/MSS_CustomBrushState.C, SOP/SOP_ArrayAttrib.C, SOP/SOP_ArrayAttrib.h, SOP/SOP_BlindData.C, SOP/SOP_BlindData.h, SOP/SOP_BouncyAgent.C, SOP/SOP_BouncyAgent.h, SOP/SOP_BrushHairLen.C, SOP/SOP_BrushHairLen.h, SOP/SOP_CopRaster.C, SOP/SOP_CopRaster.h, SOP/SOP_CPPWave.C, SOP/SOP_CPPWave.h, SOP/SOP_CustomBrush.C, SOP/SOP_CustomBrush.h, SOP/SOP_DetailAttrib.C, SOP/SOP_DetailAttrib.h, SOP/SOP_DualStar.C, SOP/SOP_DualStar.h, SOP/SOP_Flatten.C, SOP/SOP_Flatten.h, SOP/SOP_GroupRename.C, SOP/SOP_GroupRename.h, SOP/SOP_HDKObject.C, SOP/SOP_HDKObject.h, SOP/SOP_IKSample.C, SOP/SOP_IKSample.h, SOP/SOP_NURBS.C, SOP/SOP_NURBS.h, SOP/SOP_PointWave.C, SOP/SOP_PointWave.h, SOP/SOP_PrimVOP.C, SOP/SOP_PrimVOP.h, SOP/SOP_SParticle.C, SOP/SOP_SParticle.h, SOP/SOP_Surface.C, SOP/SOP_Surface.h, SOP/SOP_TimeCompare.C, SOP/SOP_TimeCompare.h, tetprim/SOP_Tetra.C, tetprim/SOP_Tetra.h, VOP/VOP_CustomContext.C, VOP/VOP_CustomContext.h, and VOP/VOP_Switch.h.

Definition at line 204 of file printf.h.

Member Typedef Documentation

template<typename OutputIt , typename Char , typename ArgFormatter = printf_arg_formatter<back_insert_range<internal::basic_buffer<Char>>>>
typedef Char basic_printf_context< OutputIt, Char, ArgFormatter >::char_type

The character type for the output.

Definition at line 347 of file printf.h.

Constructor & Destructor Documentation

template<typename OutputIt , typename Char , typename ArgFormatter = printf_arg_formatter<back_insert_range<internal::basic_buffer<Char>>>>
basic_printf_context< OutputIt, Char, ArgFormatter >::basic_printf_context ( OutputIt  out,
basic_string_view< char_type format_str,
basic_format_args< basic_printf_context< OutputIt, Char, ArgFormatter > >  args 
)
inline

Constructs a printf_context object. References to the arguments and the writer are stored in the context object so make sure they have appropriate lifetimes.

Definition at line 377 of file printf.h.

Member Function Documentation

template<typename OutputIt , typename Char , typename AF >
void basic_printf_context< OutputIt, Char, AF >::format ( )

Formats stored arguments and writes the output to the range.

Definition at line 464 of file printf.h.


The documentation for this class was generated from the following file: