#include <input.h>
cttl::input accommodates user input text and maintains offset identity vector.
StringT std::stringcttl_impl::xtl_text_container.
Definition at line 64 of file input.h.
Public Types | |
| typedef StringT | string_T |
| Defines type of encapsulated string. | |
| typedef string_T::value_type | char_T |
| Defines type of encapsulated character. | |
Public Member Functions | |
| input (size_t vector_size_=xtl_identity_vector_default_size) | |
| Default constructor. | |
| input (char_T const *pchar_, size_t vector_size_=xtl_identity_vector_default_size) | |
| Constructs new object and stores null-terminated input string. | |
| input (char_T *array_[], char_T delimiter_=char_T( '\n'), size_t vector_size_=xtl_identity_vector_default_size) | |
| Constructs new object and stores user input specified by array of string literals. | |
| input (string_T const &str_, size_t vector_size_=xtl_identity_vector_default_size) | |
| Constructs new object and stores user input specified by a string. | |
| ~input () | |
| Desctructs and frees up resources occupied by the objects. | |
| xtl_text_container< StringT > & | container () |
Returns mutable reference to the encapsulated cttl_impl::xtl_text_container object. | |
|
xtl_text_container< StringT > const & | container () const |
Returns constant reference to the encapsulated cttl_impl::xtl_text_container object. | |
| size_t | vector_size (size_t new_size_) |
| Resizes offset identity vector. | |
| size_t | vector_size () |
| Returns current size of the offset identity vector. | |
| void | text (char_T const *pchar_) |
| Sets user input text. | |
| void | text (string_T const &str_) |
| Sets user input text. | |
| string_T const & | text () const |
| Returns const reference to user input text. | |
| string_T & | text () |
| Returns mutable reference to user input text. | |
| size_t | length () const |
| Returns length of the user input text. | |
|
|
Default constructor.
Definition at line 89 of file input.h. References cttl_impl::xtl_flag_default. |
|
||||||||||||
|
Constructs new object and stores null-terminated input string.
Definition at line 105 of file input.h. References cttl_impl::xtl_flag_default. |
|
||||||||||||||||
|
Constructs new object and stores user input specified by array of string literals.
Definition at line 131 of file input.h. References cttl::string_array2string(), xtl_text_container::text(), and cttl_impl::xtl_flag_default. |
|
||||||||||||
|
Constructs new object and stores user input specified by a string.
Definition at line 152 of file input.h. References cttl_impl::xtl_flag_default. |
|
|
Resizes offset identity vector.
Definition at line 207 of file input.h. References xtl_text_container::identity_vector_size(). |
1.3.9.1