Click
Loading...
Searching...
No Matches
Classes | Macros | Functions
straccum.hh File Reference

Click's StringAccum class, used to construct Strings efficiently from pieces. More...

#include <click/glue.hh>
#include <click/string.hh>
#include <click/cxxprotect.h>
#include <asm/string.h>
#include <click/cxxunprotect.h>

Go to the source code of this file.

Classes

class  StringAccum
 Efficiently build up Strings from pieces. More...
 

Macros

#define CLICK_SNPRINTF_ATTR   /* nothing */
 

Functions

StringAccum & operator<< (StringAccum &sa, char c)
 
StringAccum & operator<< (StringAccum &sa, unsigned char c)
 
StringAccum & operator<< (StringAccum &sa, const char *cstr)
 
StringAccum & operator<< (StringAccum &sa, const String &s)
 
StringAccum & operator<< (StringAccum &sa, const StringAccum &x)
 
StringAccum & operator<< (StringAccum &sa, bool x)
 
StringAccum & operator<< (StringAccum &sa, short x)
 
StringAccum & operator<< (StringAccum &sa, unsigned short x)
 
StringAccum & operator<< (StringAccum &sa, int x)
 
StringAccum & operator<< (StringAccum &sa, unsigned x)
 
StringAccum & operator<< (StringAccum &sa, long x)
 
StringAccum & operator<< (StringAccum &sa, unsigned long x)
 
StringAccum & operator<< (StringAccum &sa, int64_t x)
 
StringAccum & operator<< (StringAccum &sa, uint64_t x)
 
StringAccum & operator<< (StringAccum &sa, double x)
 
StringAccum & operator<< (StringAccum &sa, const void *ptr)
 
void click_swap (StringAccum &a, StringAccum &b)
 
void assign_consume (StringAccum &a, StringAccum &b)
 

Detailed Description

Click's StringAccum class, used to construct Strings efficiently from pieces.

>

Function Documentation

◆ operator<<() [1/5]

StringAccum & operator<< ( StringAccum &  sa,
unsigned short  x 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ operator<<() [2/5]

StringAccum & operator<< ( StringAccum &  sa,
int  x 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ operator<<() [3/5]

StringAccum & operator<< ( StringAccum &  sa,
unsigned  x 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ operator<<() [4/5]

StringAccum & operator<< ( StringAccum &  sa,
int64_t  x 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ operator<<() [5/5]

StringAccum & operator<< ( StringAccum &  sa,
uint64_t  x 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.