#include <edge_functors.h>
Public Member Functions | |
edge_replace (StringT const &str_) | |
Constructs function object and initializes it with the source substring. | |
void | operator() (edge< PolicyT, StringT > &edge_) |
Function call operator, replaces substring with the string specified when the function object was constructed. | |
Public Attributes | |
StringT | m_str |
Stores source string to replace targets. |
Function object, which, if called as a function, replaces substring with the string specified when the function object was constructed.
PolicyT | specifies space policy. The default policy is cttl::policy_default. | |
StringT | specifies type of the encapsulated string. The default is std::string |
Definition at line 68 of file edge_functors.h.
cttl::edge_replace< PolicyT, StringT >::edge_replace | ( | StringT const & | str_ | ) |
Constructs function object and initializes it with the source substring.
Definition at line 71 of file edge_functors.h.
00072 : 00073 m_str( str_ ) 00074 { 00075 }
void cttl::edge_replace< PolicyT, StringT >::operator() | ( | edge< PolicyT, StringT > & | edge_ | ) |
Function call operator, replaces substring with the string specified when the function object was constructed.
Definition at line 82 of file edge_functors.h.
00083 { 00084 edge_.text( m_str ); 00085 }
StringT cttl::edge_replace< PolicyT, StringT >::m_str |