Public Member Functions | Private Member Functions | Private Attributes | Friends
YAML_PM::RegEx Class Reference

#include <regex.h>

List of all members.

Public Member Functions

int Match (const std::string &str) const
int Match (const Stream &in) const
template<typename Source >
int Match (const Source &source) const
bool Matches (char ch) const
bool Matches (const std::string &str) const
bool Matches (const Stream &in) const
template<typename Source >
bool Matches (const Source &source) const
 RegEx ()
 RegEx (char ch)
 RegEx (char a, char z)
 RegEx (const std::string &str, REGEX_OP op=REGEX_SEQ)
 ~RegEx ()

Private Member Functions

template<typename Source >
bool IsValidSource (const Source &source) const
template<>
bool IsValidSource (const StringCharSource &source) const
template<typename Source >
int MatchOpAnd (const Source &source) const
template<typename Source >
int MatchOpEmpty (const Source &source) const
template<>
int MatchOpEmpty (const StringCharSource &source) const
template<typename Source >
int MatchOpMatch (const Source &source) const
template<typename Source >
int MatchOpNot (const Source &source) const
template<typename Source >
int MatchOpOr (const Source &source) const
template<typename Source >
int MatchOpRange (const Source &source) const
template<typename Source >
int MatchOpSeq (const Source &source) const
template<typename Source >
int MatchUnchecked (const Source &source) const
 RegEx (REGEX_OP op)

Private Attributes

char m_a
REGEX_OP m_op
std::vector< RegExm_params
char m_z

Friends

RegEx operator! (const RegEx &ex)
RegEx operator&& (const RegEx &ex1, const RegEx &ex2)
RegEx operator+ (const RegEx &ex1, const RegEx &ex2)
RegEx operator|| (const RegEx &ex1, const RegEx &ex2)

Detailed Description

Definition at line 21 of file regex.h.


Constructor & Destructor Documentation

Definition at line 6 of file regex.cpp.

YAML_PM::RegEx::RegEx ( char  ch)

Definition at line 14 of file regex.cpp.

YAML_PM::RegEx::RegEx ( char  a,
char  z 
)

Definition at line 18 of file regex.cpp.

YAML_PM::RegEx::RegEx ( const std::string &  str,
REGEX_OP  op = REGEX_SEQ 
)

Definition at line 22 of file regex.cpp.

YAML_PM::RegEx::~RegEx ( ) [inline]

Definition at line 28 of file regex.h.

YAML_PM::RegEx::RegEx ( REGEX_OP  op) [private]

Definition at line 10 of file regex.cpp.


Member Function Documentation

template<typename Source >
bool YAML_PM::RegEx::IsValidSource ( const Source &  source) const [inline, private]

Definition at line 55 of file regeximpl.h.

template<>
bool YAML_PM::RegEx::IsValidSource ( const StringCharSource source) const [inline, private]

Definition at line 61 of file regeximpl.h.

int YAML_PM::RegEx::Match ( const std::string &  str) const [inline]

Definition at line 42 of file regeximpl.h.

int YAML_PM::RegEx::Match ( const Stream in) const [inline]

Definition at line 48 of file regeximpl.h.

template<typename Source >
int YAML_PM::RegEx::Match ( const Source &  source) const [inline]

Definition at line 73 of file regeximpl.h.

bool YAML_PM::RegEx::Matches ( char  ch) const [inline]

Definition at line 16 of file regeximpl.h.

bool YAML_PM::RegEx::Matches ( const std::string &  str) const [inline]

Definition at line 22 of file regeximpl.h.

bool YAML_PM::RegEx::Matches ( const Stream in) const [inline]

Definition at line 26 of file regeximpl.h.

template<typename Source >
bool YAML_PM::RegEx::Matches ( const Source &  source) const [inline]

Definition at line 31 of file regeximpl.h.

template<typename Source >
int YAML_PM::RegEx::MatchOpAnd ( const Source &  source) const [inline, private]

Definition at line 149 of file regeximpl.h.

template<typename Source >
int YAML_PM::RegEx::MatchOpEmpty ( const Source &  source) const [inline, private]

Definition at line 108 of file regeximpl.h.

template<>
int YAML_PM::RegEx::MatchOpEmpty ( const StringCharSource source) const [inline, private]

Definition at line 113 of file regeximpl.h.

template<typename Source >
int YAML_PM::RegEx::MatchOpMatch ( const Source &  source) const [inline, private]

Definition at line 119 of file regeximpl.h.

template<typename Source >
int YAML_PM::RegEx::MatchOpNot ( const Source &  source) const [inline, private]

Definition at line 163 of file regeximpl.h.

template<typename Source >
int YAML_PM::RegEx::MatchOpOr ( const Source &  source) const [inline, private]

Definition at line 135 of file regeximpl.h.

template<typename Source >
int YAML_PM::RegEx::MatchOpRange ( const Source &  source) const [inline, private]

Definition at line 127 of file regeximpl.h.

template<typename Source >
int YAML_PM::RegEx::MatchOpSeq ( const Source &  source) const [inline, private]

Definition at line 173 of file regeximpl.h.

template<typename Source >
int YAML_PM::RegEx::MatchUnchecked ( const Source &  source) const [inline, private]

Definition at line 79 of file regeximpl.h.


Friends And Related Function Documentation

RegEx operator! ( const RegEx ex) [friend]

Definition at line 29 of file regex.cpp.

RegEx operator&& ( const RegEx ex1,
const RegEx ex2 
) [friend]

Definition at line 44 of file regex.cpp.

RegEx operator+ ( const RegEx ex1,
const RegEx ex2 
) [friend]

Definition at line 52 of file regex.cpp.

RegEx operator|| ( const RegEx ex1,
const RegEx ex2 
) [friend]

Definition at line 36 of file regex.cpp.


Member Data Documentation

char YAML_PM::RegEx::m_a [private]

Definition at line 60 of file regex.h.

Definition at line 59 of file regex.h.

std::vector<RegEx> YAML_PM::RegEx::m_params [private]

Definition at line 61 of file regex.h.

char YAML_PM::RegEx::m_z [private]

Definition at line 60 of file regex.h.


The documentation for this class was generated from the following files:


upstream_src
Author(s):
autogenerated on Mon Oct 6 2014 10:27:44