String const reference wrapper template. More...
#include </home/chochlik/devel/oglplus/include/oglplus/string/ref_tpl.hpp>
Public Types | |
| typedef const Char * | iterator |
| Iterator type. | |
| typedef iterator | const_iterator |
| Const iterator type. | |
Public Member Functions | |
| StrCRefTpl (void) | |
| Default construction (reference to an empty c-string) | |
| StrCRefTpl (const Char *cstr) | |
| Construction from a null-terminated string. | |
| StrCRefTpl (const Char *cstr, std::size_t ssize) | |
| Construction from a c-string and size. | |
| template<std::size_t N> | |
| StrCRefTpl (const Char(&cary)[N]) | |
| Construction from a character array with known size. | |
| StrCRefTpl (const std::basic_string< Char > &sstr) | |
| Construction from a std::basic_string<Char> | |
| StrCRefTpl (const std::vector< Char > &cvec) | |
| Construction from a std::vector<Char> | |
| template<std::size_t N> | |
| StrCRefTpl (const std::array< Char, N > &cvec) | |
| Construction from a std::array<Char, N> | |
| std::size_t | size (void) const |
| Return the size (length) string. | |
| bool | empty (void) const |
| Returns true if the string is empty. | |
| const_iterator | begin (void) const |
| Returns iterator to the first character. | |
| const_iterator | end (void) const |
| Returns iterator past the last character. | |
| bool | is_nts (void) const |
| Returns true if the string is null-terminated. | |
| std::basic_string< Char > | str (void) const |
| Returns a String. | |
| const Char * | c_str (void) const |
| Returns the null-terminated c-string. More... | |
String const reference wrapper template.
| const Char* oglplus::StrCRefTpl< Char >::c_str | ( | void | ) | const |
Returns the null-terminated c-string.
References oglplus::StrCRefTpl< Char >::begin(), and oglplus::StrCRefTpl< Char >::is_nts().
Referenced by oglplus::ObjectOps< tag::DirectState, tag::Program >::BindLocation(), oglplus::PathArrayNV::CoverFillInstanced(), oglplus::PathArrayNV::CoverStrokeInstanced(), oglplus::NamedString::Delete(), oglplus::NamedString::Get(), oglplus::PathArrayNV::GetMetrics(), oglplus::PathArrayNV::GetSpacing(), oglplus::PathArrayNV::Glyphs(), oglplus::ARB_debug_output::InsertMessage(), oglplus::KHR_debug::InsertMessage(), oglplus::Debug::InsertMessage(), oglplus::NamedString::IsA(), oglplus::Debug::ObjectLabel(), oglplus::ObjectOps< tag::DirectState, tag::PathNV >::PathString(), oglplus::KHR_debug::PushGroup(), oglplus::NamedString::Set(), oglplus::PathArrayNV::StencilFillInstanced(), oglplus::PathArrayNV::StencilStrokeInstanced(), and oglplus::NamedString::Type().