GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
glob_match Class Reference

#include "glob-match.h"

Collaboration diagram for glob_match:
Collaboration graph
[legend]

Public Types

enum  opts { pathname = 1, noescape = 2, period = 4 }

Public Member Functions

 glob_match (const std::string &p, unsigned int xopts=pathname|noescape|period)
 glob_match (const string_vector &p=string_vector(), unsigned int xopts=pathname|noescape|period)
 glob_match (const glob_match &gm)
 ~glob_match (void)
string_vector glob (void) const
bool match (const std::string &str) const
Array< boolmatch (const string_vector &str) const
glob_matchoperator= (const glob_match &gm)
void set_pattern (const std::string &p)
void set_pattern (const string_vector &p)

Private Member Functions

int opts_to_fnmatch_flags (unsigned int xopts) const

Private Attributes

int fnmatch_flags
string_vector pat

Detailed Description

Definition at line 31 of file glob-match.h.

Member Enumeration Documentation

Enumerator:
pathname 
noescape 
period 

Definition at line 37 of file glob-match.h.

Constructor & Destructor Documentation

glob_match::glob_match ( const std::string &  p,
unsigned int  xopts = pathname|noescape|period 
)
inline

Definition at line 44 of file glob-match.h.

glob_match::glob_match ( const string_vector p = string_vector (),
unsigned int  xopts = pathname|noescape|period 
)
inline

Definition at line 48 of file glob-match.h.

glob_match::glob_match ( const glob_match gm)
inline

Definition at line 52 of file glob-match.h.

glob_match::~glob_match ( void  )
inline

Definition at line 65 of file glob-match.h.

Member Function Documentation

string_vector glob_match::glob ( void  ) const

Definition at line 39 of file glob-match.cc.

References octave_glob(), and pat.

Referenced by F__ftp_mput__(), and Fglob().

bool glob_match::match ( const std::string &  str) const
Array<bool> glob_match::match ( const string_vector str) const
inline

Definition at line 73 of file glob-match.h.

References Array< T >::length(), and match().

glob_match& glob_match::operator= ( const glob_match gm)
inline

Definition at line 55 of file glob-match.h.

References fnmatch_flags, and pat.

int glob_match::opts_to_fnmatch_flags ( unsigned int  xopts) const
private

Definition at line 45 of file glob-match.cc.

References noescape, pathname, and period.

void glob_match::set_pattern ( const std::string &  p)
inline

Definition at line 67 of file glob-match.h.

void glob_match::set_pattern ( const string_vector p)
inline

Definition at line 69 of file glob-match.h.

Member Data Documentation

int glob_match::fnmatch_flags
private

Definition at line 96 of file glob-match.h.

Referenced by match(), and operator=().

string_vector glob_match::pat
private

Definition at line 93 of file glob-match.h.

Referenced by glob(), match(), and operator=().


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