STK++ 0.9.13
STK::TestEndOfLineOp Struct Reference

Template functor testing if a Char is an end of line. More...

#include <STK_Functors.h>

Public Types

enum  { NbParam_ = 1 }
 
typedef bool result_type
 
typedef Char param1_type
 

Public Member Functions

 TestEndOfLineOp (char *c)
 
result_type operator() (Char c)
 

Private Attributes

Charlast_
 

Detailed Description

Template functor testing if a Char is an end of line.

Definition at line 93 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

◆ result_type

Member Enumeration Documentation

◆ anonymous enum

Enumerator
NbParam_ 

Definition at line 95 of file STK_Functors.h.

Constructor & Destructor Documentation

◆ TestEndOfLineOp()

STK::TestEndOfLineOp::TestEndOfLineOp ( char *  c)
inline

Definition at line 98 of file STK_Functors.h.

98: last_(c) {}

Member Function Documentation

◆ operator()()

result_type STK::TestEndOfLineOp::operator() ( Char  c)
inline

Definition at line 100 of file STK_Functors.h.

100{ *last_ = c; return (c == _T('\n'));}
#define _T(x)
Let x unmodified.

References _T, and last_.

Member Data Documentation

◆ last_

Char* STK::TestEndOfLineOp::last_
private

Definition at line 102 of file STK_Functors.h.

Referenced by operator()().


The documentation for this struct was generated from the following file: