string_tokeniser_type_traits Struct Template Reference
[String Library]

#include <stlsoft/string/string_tokeniser.hpp>

List of all members.


Detailed Description

template<typename S, typename V>
struct stlsoft::string_tokeniser_type_traits< S, V >

A traits class for detecting features of the string type and the value type used to specialise string_tokeniser.

This traits class has three responsibilities. First, it defines a number of member types that are used by the string_tokeniser and string_tokeniser::iterator classes: value_type, const_iterator_type.

Second, it provides a means by which the iterators of the string_tokeniser specialisation's string type can be elicited, by defining the (static) methods begin() and end().

Third, it provides a means by which an instance of the string_tokeniser specialisation's value type can be constructed from a pair of iterator of the string type, by defining the (static) create() method.

Parameters:
S The string tokeniser string type
V The string tokeniser value type

Member Types

typedef S::value_type value_type
 The value type.
typedef S::const_iterator const_iterator_type
 The non-mutable (const) iterator type.

Static Public Member Functions

Operations
static const_iterator_type begin (string_type const &s)
 Returns the start of the contained sequence of the given string.
static const_iterator_type end (string_type const &s)
 Returns the end of the contained sequence of the given string.
static tokeniser_value_type create (const_iterator_type f, const_iterator_type t)
 Creates an instance of the string from the given range [f:t).

Member Typedef Documentation

typedef S::value_type value_type

The value type.

typedef S::const_iterator const_iterator_type

The non-mutable (const) iterator type.


Member Function Documentation

static const_iterator_type begin ( string_type const &  s  )  [inline, static]

Returns the start of the contained sequence of the given string.

static const_iterator_type end ( string_type const &  s  )  [inline, static]

Returns the end of the contained sequence of the given string.

static tokeniser_value_type create ( const_iterator_type  f,
const_iterator_type  t 
) [inline, static]

Creates an instance of the string from the given range [f:t).

References ss_typename_type_k.


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

Generated on Thu Jun 10 08:59:00 2010 for STLSoft by  doxygen 1.5.6