MRPT  2.0.4
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 95 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
 
 operator std::string () 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... >   
)
inlineprivate

Definition at line 100 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 
)
inline

ctor: literal + literal

Definition at line 110 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 
)
inline

ctor: string + literal

Definition at line 119 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 
)
inline

ctor: string + string

Definition at line 128 of file static_string.h.

Member Function Documentation

◆ c_str()

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

Definition at line 140 of file static_string.h.

◆ operator const char *()

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

Definition at line 141 of file static_string.h.

◆ operator std::string()

template<int N>
mrpt::typemeta::array_string< N >::operator std::string ( ) const
inline

Definition at line 142 of file static_string.h.

◆ operator[]()

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

Definition at line 136 of file static_string.h.

◆ size()

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

Definition at line 135 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 97 of file static_string.h.




Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020