OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::StrCRefTpl< Char > Class Template Reference

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...
 

Detailed Description

template<typename Char>
class oglplus::StrCRefTpl< Char >

String const reference wrapper template.

Examples:
oglplus/019_helium.cpp, oglplus/031_brick_torus.cpp, standalone/004_any_text_rendering.cpp, and standalone/004_stbttf_text_rendering.cpp.

Member Function Documentation


The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/string/ref_tpl.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).