printAttribute overloads
Declared in <bslim_printer.h>
Format to the output stream supplied at construction the specified data, prefixed by the specified name. Format data based on the parameterized TYPE:
template<class TYPE>
void
printAttribute(
bslstl::StringRef const& name,
TYPE const& data) const;
» more...
Format to the output stream supplied at construction, the specified name followed by the range of values starting at the specified begin position and ending immediately before the specified end position. The parameterized ITERATOR type must support operator++, operator*, and operator==. This function will call printValue on each element in the range [begin, end)].
template<class ITERATOR>
void
printAttribute(
bslstl::StringRef const& name,
ITERATOR const& begin,
ITERATOR const& end) const;
» more...
Print to the output stream supplied at construction the specified name and then call the specified printFunctionObject with the range of values starting at the specified begin position and ending immediately before the specified end position, the stream supplied at construction, absLevel() + 1, and spacesPerLevel(). The parameterized PRINT_FUNCTOR must be an invocable type whose arguments match the following function signature: ` bsl::ostream& (*)(bsl::ostream& stream, const TYPE& data, int level, int spacesPerLevel) `
template<
class ITERATOR,
class PRINT_FUNCTOR>
void
printAttribute(
bslstl::StringRef const& name,
ITERATOR const& begin,
ITERATOR const& end,
PRINT_FUNCTOR const& printFunctionObject) const;
» more...