Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
YAML_PM::RegEx Class Reference

#include <regex.h>

Public Member Functions

template<typename Source >
int Match (const Source &source) const
 
int Match (const std::string &str) const
 
int Match (const Stream &in) const
 
bool Matches (char ch) const
 
template<typename Source >
bool Matches (const Source &source) const
 
bool Matches (const std::string &str) const
 
bool Matches (const Stream &in) const
 
 RegEx ()
 
 RegEx (char a, char z)
 
 RegEx (char ch)
 
 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

◆ RegEx() [1/5]

YAML_PM::RegEx::RegEx ( )

Definition at line 6 of file regex.cpp.

◆ RegEx() [2/5]

YAML_PM::RegEx::RegEx ( char  ch)

Definition at line 14 of file regex.cpp.

◆ RegEx() [3/5]

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

Definition at line 18 of file regex.cpp.

◆ RegEx() [4/5]

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

Definition at line 22 of file regex.cpp.

◆ ~RegEx()

YAML_PM::RegEx::~RegEx ( )
inline

Definition at line 28 of file regex.h.

◆ RegEx() [5/5]

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

Definition at line 10 of file regex.cpp.

Member Function Documentation

◆ IsValidSource() [1/2]

template<typename Source >
bool YAML_PM::RegEx::IsValidSource ( const Source &  source) const
inlineprivate

Definition at line 55 of file regeximpl.h.

◆ IsValidSource() [2/2]

template<>
bool YAML_PM::RegEx::IsValidSource ( const StringCharSource source) const
inlineprivate

Definition at line 61 of file regeximpl.h.

◆ Match() [1/3]

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

Definition at line 73 of file regeximpl.h.

◆ Match() [2/3]

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

Definition at line 42 of file regeximpl.h.

◆ Match() [3/3]

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

Definition at line 48 of file regeximpl.h.

◆ Matches() [1/4]

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

Definition at line 16 of file regeximpl.h.

◆ Matches() [2/4]

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

Definition at line 31 of file regeximpl.h.

◆ Matches() [3/4]

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

Definition at line 22 of file regeximpl.h.

◆ Matches() [4/4]

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

Definition at line 26 of file regeximpl.h.

◆ MatchOpAnd()

template<typename Source >
int YAML_PM::RegEx::MatchOpAnd ( const Source &  source) const
inlineprivate

Definition at line 149 of file regeximpl.h.

◆ MatchOpEmpty() [1/2]

template<typename Source >
int YAML_PM::RegEx::MatchOpEmpty ( const Source &  source) const
inlineprivate

Definition at line 108 of file regeximpl.h.

◆ MatchOpEmpty() [2/2]

template<>
int YAML_PM::RegEx::MatchOpEmpty ( const StringCharSource source) const
inlineprivate

Definition at line 113 of file regeximpl.h.

◆ MatchOpMatch()

template<typename Source >
int YAML_PM::RegEx::MatchOpMatch ( const Source &  source) const
inlineprivate

Definition at line 119 of file regeximpl.h.

◆ MatchOpNot()

template<typename Source >
int YAML_PM::RegEx::MatchOpNot ( const Source &  source) const
inlineprivate

Definition at line 163 of file regeximpl.h.

◆ MatchOpOr()

template<typename Source >
int YAML_PM::RegEx::MatchOpOr ( const Source &  source) const
inlineprivate

Definition at line 135 of file regeximpl.h.

◆ MatchOpRange()

template<typename Source >
int YAML_PM::RegEx::MatchOpRange ( const Source &  source) const
inlineprivate

Definition at line 127 of file regeximpl.h.

◆ MatchOpSeq()

template<typename Source >
int YAML_PM::RegEx::MatchOpSeq ( const Source &  source) const
inlineprivate

Definition at line 173 of file regeximpl.h.

◆ MatchUnchecked()

template<typename Source >
int YAML_PM::RegEx::MatchUnchecked ( const Source &  source) const
inlineprivate

Definition at line 79 of file regeximpl.h.

Friends And Related Function Documentation

◆ operator!

RegEx operator! ( const RegEx ex)
friend

Definition at line 29 of file regex.cpp.

◆ operator&&

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

Definition at line 44 of file regex.cpp.

◆ operator+

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

Definition at line 52 of file regex.cpp.

◆ operator||

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

Definition at line 36 of file regex.cpp.

Member Data Documentation

◆ m_a

char YAML_PM::RegEx::m_a
private

Definition at line 60 of file regex.h.

◆ m_op

REGEX_OP YAML_PM::RegEx::m_op
private

Definition at line 59 of file regex.h.

◆ m_params

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

Definition at line 61 of file regex.h.

◆ m_z

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:


mp2p_icp
Author(s):
autogenerated on Fri Dec 20 2024 03:46:02