Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Private Member Functions | Private Attributes
mrpt::typemeta::array_string< N > Class Template Reference

Detailed Description

template<int N>
class mrpt::typemeta::array_string< N >

Definition at line 92 of file static_string.h.

#include <mrpt/typemeta/static_string.h>

Public Member Functions

template<int N1, REQUIRES(N1<=N) >
constexpr array_string (const string_literal< N1 > &s1, const string_literal< N - N1 > &s2)
 ctor: literal + literal More...
 
template<int N1, REQUIRES(N1<=N) >
constexpr array_string (const array_string< N1 > &s1, const string_literal< N - N1 > &s2)
 ctor: string + literal More...
 
template<int N1, REQUIRES(N1<=N) >
constexpr array_string (const array_string< N1 > &s1, const array_string< N - N1 > &s2)
 ctor: string + string More...
 
constexpr std::size_t size () const
 
constexpr char operator[] (int i) const
 
constexpr const char * c_str () const
 
constexpr operator const char * () const
 

Private Member Functions

template<typename S1 , typename S2 , int... PACK1, int... PACK2>
constexpr array_string (const S1 &s1, const S2 &s2, internal::sequence< PACK1... >, internal::sequence< PACK2... >)
 

Private Attributes

char _array [N+1]
 

Constructor & Destructor Documentation

◆ array_string() [1/4]

template<int N>
template<typename S1 , typename S2 , int... PACK1, int... PACK2>
constexpr mrpt::typemeta::array_string< N >::array_string ( const S1 &  s1,
const S2 &  s2,
internal::sequence< PACK1... >  ,
internal::sequence< PACK2... >   
)
inlineconstexprprivate

Definition at line 97 of file static_string.h.

◆ array_string() [2/4]

template<int N>
template<int N1, REQUIRES(N1<=N) >
constexpr mrpt::typemeta::array_string< N >::array_string ( const string_literal< N1 > &  s1,
const string_literal< N - N1 > &  s2 
)
inlineconstexpr

ctor: literal + literal

Definition at line 107 of file static_string.h.

◆ array_string() [3/4]

template<int N>
template<int N1, REQUIRES(N1<=N) >
constexpr mrpt::typemeta::array_string< N >::array_string ( const array_string< N1 > &  s1,
const string_literal< N - N1 > &  s2 
)
inlineconstexpr

ctor: string + literal

Definition at line 116 of file static_string.h.

◆ array_string() [4/4]

template<int N>
template<int N1, REQUIRES(N1<=N) >
constexpr mrpt::typemeta::array_string< N >::array_string ( const array_string< N1 > &  s1,
const array_string< N - N1 > &  s2 
)
inlineconstexpr

ctor: string + string

Definition at line 125 of file static_string.h.

Member Function Documentation

◆ c_str()

template<int N>
constexpr const char* mrpt::typemeta::array_string< N >::c_str ( ) const
inlineconstexpr

Definition at line 137 of file static_string.h.

◆ operator const char *()

template<int N>
constexpr mrpt::typemeta::array_string< N >::operator const char * ( ) const
inlineconstexpr

Definition at line 138 of file static_string.h.

◆ operator[]()

template<int N>
constexpr char mrpt::typemeta::array_string< N >::operator[] ( int  i) const
inlineconstexpr

Definition at line 133 of file static_string.h.

◆ size()

template<int N>
constexpr std::size_t mrpt::typemeta::array_string< N >::size ( ) const
inlineconstexpr

Definition at line 132 of file static_string.h.

Member Data Documentation

◆ _array

template<int N>
char mrpt::typemeta::array_string< N >::_array[N+1]
private

Definition at line 94 of file static_string.h.




Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST