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

node_insert_stay Struct Template Reference

#include <node_functors.h>

List of all members.


Detailed Description

template<typename StringT = CTTL_STD_STRING>
struct cttl::node_insert_stay< StringT >

Function object, which, if called as a function, inserts substring specified when the function object was constructed, at the offset pointed by the node.

StringT
Template parameter specifying type of the encapsulated string. The default is std::string

Definition at line 93 of file node_functors.h.

Public Member Functions

 node_insert_stay (StringT const &str_)
 Constructs function object and initializes it with the source substring.
void operator() (node< StringT > &node_)
 function call operator, inserts substring specified when the function object was constructed, at the offset pointed by the node.

Public Attributes

StringT m_str
 Stores string to insert.


Member Function Documentation

void operator() node< StringT > &  node_  )  [inline]
 

function call operator, inserts substring specified when the function object was constructed, at the offset pointed by the node.

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

Definition at line 110 of file node_functors.h.

References node::insert_stay().


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