GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
kpse_path_iterator Class Reference

#include "kpse.h"

Collaboration diagram for kpse_path_iterator:

Public Member Functions

 kpse_path_iterator (const kpse_path_iterator &)=default
 
 kpse_path_iterator (const std::string &p)
 
 ~kpse_path_iterator (void)=default
 
bool operator!= (const size_t sz)
 
std::string operator* (void)
 
kpse_path_iterator operator++ (int)
 
kpse_path_iteratoroperator= (const kpse_path_iterator &)=delete
 

Private Member Functions

void next (void)
 
void set_end (void)
 

Private Attributes

size_t m_b
 
size_t m_e
 
size_t m_len
 
const std::string & m_path
 

Detailed Description

Definition at line 37 of file kpse.h.

Constructor & Destructor Documentation

◆ kpse_path_iterator() [1/2]

kpse_path_iterator::kpse_path_iterator ( const std::string &  p)
inline

Definition at line 41 of file kpse.h.

References set_end().

◆ kpse_path_iterator() [2/2]

kpse_path_iterator::kpse_path_iterator ( const kpse_path_iterator )
default

◆ ~kpse_path_iterator()

kpse_path_iterator::~kpse_path_iterator ( void  )
default

Member Function Documentation

◆ next()

void kpse_path_iterator::next ( void  )
private

Definition at line 114 of file kpse.cc.

References octave::directory_path::is_path_sep(), m_b, m_e, m_len, m_path, and set_end().

Referenced by operator++().

◆ operator!=()

bool kpse_path_iterator::operator!= ( const size_t  sz)
inline

Definition at line 64 of file kpse.h.

References m_b.

◆ operator*()

std::string kpse_path_iterator::operator* ( void  )
inline

Definition at line 62 of file kpse.h.

References m_b, m_e, and m_path.

◆ operator++()

kpse_path_iterator kpse_path_iterator::operator++ ( int  )
inline

Definition at line 55 of file kpse.h.

References next(), and retval.

◆ operator=()

kpse_path_iterator& kpse_path_iterator::operator= ( const kpse_path_iterator )
delete

◆ set_end()

void kpse_path_iterator::set_end ( void  )
private

Definition at line 95 of file kpse.cc.

References octave::directory_path::is_path_sep(), m_b, m_e, m_len, and m_path.

Referenced by kpse_path_iterator(), and next().

Member Data Documentation

◆ m_b

size_t kpse_path_iterator::m_b
private

Definition at line 69 of file kpse.h.

Referenced by next(), operator!=(), operator*(), and set_end().

◆ m_e

size_t kpse_path_iterator::m_e
private

Definition at line 70 of file kpse.h.

Referenced by next(), operator*(), and set_end().

◆ m_len

size_t kpse_path_iterator::m_len
private

Definition at line 71 of file kpse.h.

Referenced by next(), and set_end().

◆ m_path

const std::string& kpse_path_iterator::m_path
private

Definition at line 68 of file kpse.h.

Referenced by next(), operator*(), and set_end().


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