Phosphor
phosphor::inline_zstring< max_length > Class Template Reference

#include <inline_zstring.h>

Public Member Functions

 inline_zstring (const std::string &s)
 
 inline_zstring (const char *s)
 
 inline_zstring (const char *s, size_t len)
 
 operator std::string () const
 

Friends

std::ostream & operator<< (std::ostream &stream, const inline_zstring &izs)
 

Detailed Description

template<size_t max_length>
class phosphor::inline_zstring< max_length >

inline_zstring is a class which stores null-terminated strings within itself.

Template Parameters
max_lengthMax size of any inlined strings

Constructor & Destructor Documentation

template<size_t max_length>
phosphor::inline_zstring< max_length >::inline_zstring ( const std::string &  s)
inlineexplicit

Explicit constructor from std::string

template<size_t max_length>
phosphor::inline_zstring< max_length >::inline_zstring ( const char *  s)
inlineexplicit

Explicit constructor from const char* (null-terminated).

template<size_t max_length>
phosphor::inline_zstring< max_length >::inline_zstring ( const char *  s,
size_t  len 
)
inlineexplicit

Explicit constructor from const char* of a specific length.

Member Function Documentation

template<size_t max_length>
phosphor::inline_zstring< max_length >::operator std::string ( ) const
inline

Implicit conversion to std::string

Friends And Related Function Documentation

template<size_t max_length>
std::ostream& operator<< ( std::ostream &  stream,
const inline_zstring< max_length > &  izs 
)
friend

ostream pipe overload


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