Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

edge_second_insert_stay Struct Template Reference

#include <edge_functors.h>

List of all members.


Detailed Description

template<typename PolicyT = policy_default, typename StringT = CTTL_STD_STRING>
struct cttl::edge_second_insert_stay< PolicyT, StringT >

Function object, which, if called as a function, inserts string specified when the function object was constructed, at the offset pointed by the upper boundary of the edge, const_edge::second.

PolicyT
Template parameter specifying white space policy. Default policy is cttl::policy_default.
StringT
Template parameter specifying type of the encapsulated string. The default is std::string

Definition at line 238 of file edge_functors.h.

Public Member Functions

 edge_second_insert_stay (StringT const &str_)
 Constructs function object and initializes it with the source substring.
void operator() (edge< PolicyT, StringT > &edge_)
 function call operator, inserts string specified when the function object was constructed, at the offset pointed by the upper boundary of the edge, const_edge::second.

Public Attributes

StringT m_str
 Stores string to insert.


Member Function Documentation

void operator() edge< PolicyT, StringT > &  edge_  )  [inline]
 

function call operator, inserts string specified when the function object was constructed, at the offset pointed by the upper boundary of the edge, const_edge::second.

Postcondition:
All nodes at the higher offset positions are adjusted forward accordingly to the width of the inserted substring.

Definition at line 256 of file edge_functors.h.

References const_edge::second.


The documentation for this struct was generated from the following file:
Generated on Thu Nov 2 17:45:01 2006 for Common Text Transformation Library by  doxygen 1.3.9.1