cttl defines publicly visible classes and functions of CTTL library.
Classes | |
| struct | inode_reader |
| Represents readable node of a syntax tree, modeled on top of STL sequence container. More... | |
| struct | inode_writer |
| Represents writable node of a syntax tree, modeled on top of STL sequence container. More... | |
| class | offset_stack_guard |
Utility class to track cttl::input positions. More... | |
Functions | |
| void | file2string (const CTTL_STD_STRING &filename_, CTTL_STD_STRING &str_) |
| Inputs data from a text file and stores results in a string provided by the user. | |
| CTTL_STD_STRING | file2string (const CTTL_STD_STRING &filename_) |
| Reads data from a text file and returns a string containing the data. | |
| void | string2file (const CTTL_STD_STRING &filename_, const CTTL_STD_STRING &str_) |
| Writes data from string provided by the user into a text file. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| inode_writer< PreviousLinkT, NextLinkT, ContainerT > const & | operator<< (inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &lhs_, int size_) |
| Inserts N copies of default values at the end of the sequence container. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator== (inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_, typename ContainerT::size_type offset_) |
| Compare offsets. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator== (typename ContainerT::size_type offset_, inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_) |
| Compare offsets. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator!= (inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_, typename ContainerT::size_type offset_) |
| Compare offsets. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator!= (typename ContainerT::size_type offset_, inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_) |
| Compare offsets. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator< (inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_, typename ContainerT::size_type offset_) |
| Compare offsets. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator< (typename ContainerT::size_type offset_, inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_) |
| Compare offsets. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator<= (inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_, typename ContainerT::size_type offset_) |
| Compare offsets. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator<= (typename ContainerT::size_type offset_, inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_) |
| Compare offsets. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator> (inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_, typename ContainerT::size_type offset_) |
| Compare offsets. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator> (typename ContainerT::size_type offset_, inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_) |
| Compare offsets. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator>= (inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_, typename ContainerT::size_type offset_) |
| Compare offsets. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator>= (typename ContainerT::size_type offset_, inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_) |
| Compares offsets of two nodes. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator== (inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &one_, inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &another_) |
| Bidirectional iterator: comparison of two inode_writer objects returns true if positions of the nodes are equal, false otherwise. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator!= (inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &one_, inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &another_) |
| Bidirectional iterator: true if node positions are different. | |
| template<int PreviousLinkT, int NextLinkT, typename ContainerT> | |
| bool | operator! (inode_writer< PreviousLinkT, NextLinkT, ContainerT > const &inode_) |
| Bidirectional iterator: true if node position is zero. | |
| CTTL_STD_STRING | itos (int i_) |
| Converts integer to string. | |
| size_t | pipe_input_2_vector (std::vector< std::basic_string< unsigned char > > &vect_input_, std::basic_string< unsigned char > filter_=std::basic_string< unsigned char >()) |
| Inputs data from standard input and stores it in a vector provided by the user. | |
| size_t | pipe_input_2_vector (std::vector< std::basic_string< char > > &vect_input_, std::basic_string< char > filter_=std::basic_string< char >()) |
| Inputs data from standard input and stores it in a vector provided by the user. | |
| size_t | pipe_input_2_string (std::basic_string< unsigned char > &str_output_, unsigned char delimiter_=(unsigned char)( '\t')) |
| Inputs data from standard input and stores it in a string provided by the user. | |
| size_t | pipe_input_2_string (std::basic_string< char > &str_output_, char delimiter_=char( '\t')) |
| Inputs data from standard input and stores it in a string provided by the user. | |
| time_t | current_time () |
| Returns current time. | |
| CTTL_STD_STRING | time2string (time_t time_) |
| Converts time_t to string. | |
|
|
Returns current time.
Definition at line 50 of file timeutils.h. |
|
|
Reads data from a text file and returns a string containing the data.
|
|
||||||||||||
|
Inputs data from a text file and stores results in a string provided by the user.
|
|
|
Converts integer to string. From Bjarne Stroustrup's C++ Style and Technique FAQ: http://www.research.att.com/~bs/bs_faq2.html How do I convert an integer to a string? The simplest way is to use a stringstream:
int i = 127; std::string ss = itos( i ); For a description of string streams, see 21.5.3 of The C++ Programming Language. |
|
|
Bidirectional iterator: true if node position is zero.
Definition at line 659 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Bidirectional iterator: true if node positions are different.
Definition at line 649 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Compare offsets.
Definition at line 546 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Compare offsets.
Definition at line 536 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Compare offsets.
Definition at line 566 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Compare offsets.
Definition at line 556 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Inserts N copies of default values at the end of the sequence container. Adjusts node position accordingly to the insertion point. If N is zero, no insertions are made. Definition at line 480 of file inode_writer.h. References inode_writer::container(), and inode_writer::offset(). |
|
||||||||||||
|
Compare offsets.
Definition at line 586 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Compare offsets.
Definition at line 576 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Bidirectional iterator: comparison of two inode_writer objects returns true if positions of the nodes are equal, false otherwise.
Definition at line 639 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Compare offsets.
Definition at line 526 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Compare offsets.
Definition at line 516 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Compare offsets.
Definition at line 606 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Compare offsets.
Definition at line 596 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Compares offsets of two nodes.
Definition at line 626 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Compare offsets.
Definition at line 616 of file inode_writer.h. References inode_writer::offset(). |
|
||||||||||||
|
Inputs data from standard input and stores it in a string provided by the user.
Definition at line 96 of file pipe_input.h. |
|
||||||||||||
|
Inputs data from standard input and stores it in a string provided by the user.
Definition at line 81 of file pipe_input.h. |
|
||||||||||||
|
Inputs data from standard input and stores it in a vector provided by the user.
Definition at line 62 of file pipe_input.h. |
|
||||||||||||
|
Inputs data from standard input and stores it in a vector provided by the user.
Definition at line 41 of file pipe_input.h. |
|
||||||||||||
|
Writes data from string provided by the user into a text file.
|
|
|
Converts time_t to string.
Definition at line 57 of file timeutils.h. |
1.3.9.1