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

#include "filepos.h"

Collaboration diagram for octave::filepos:

Public Member Functions

 filepos (const filepos &)=default
 
 filepos (int l=1, int c=1)
 
 ~filepos (void)=default
 
void column (int c)
 
int column (void) const
 
void decrement_column (int val=1)
 
void decrement_line (int val=1)
 
void increment_column (int val=1)
 
void increment_line (int val=1)
 
void line (int l)
 
int line (void) const
 
void next_line (void)
 
fileposoperator= (const filepos &)=default
 
void set (int l, int c)
 

Private Attributes

int m_column
 
int m_line
 

Detailed Description

Definition at line 33 of file filepos.h.

Constructor & Destructor Documentation

◆ filepos() [1/2]

octave::filepos::filepos ( int  l = 1,
int  c = 1 
)
inline

Definition at line 37 of file filepos.h.

◆ filepos() [2/2]

octave::filepos::filepos ( const filepos )
default

◆ ~filepos()

octave::filepos::~filepos ( void  )
default

Member Function Documentation

◆ column() [1/2]

void octave::filepos::column ( int  c)
inline

◆ column() [2/2]

int octave::filepos::column ( void  ) const
inline

Definition at line 55 of file filepos.h.

References m_column.

◆ decrement_column()

void octave::filepos::decrement_column ( int  val = 1)
inline

Definition at line 61 of file filepos.h.

References m_column.

◆ decrement_line()

void octave::filepos::decrement_line ( int  val = 1)
inline

Definition at line 60 of file filepos.h.

References m_line.

◆ increment_column()

void octave::filepos::increment_column ( int  val = 1)
inline

◆ increment_line()

void octave::filepos::increment_line ( int  val = 1)
inline

Definition at line 57 of file filepos.h.

References m_line.

◆ line() [1/2]

◆ line() [2/2]

int octave::filepos::line ( void  ) const
inline

Definition at line 54 of file filepos.h.

References m_line.

◆ next_line()

void octave::filepos::next_line ( void  )
inline

Definition at line 63 of file filepos.h.

References m_column, and m_line.

Referenced by octave::base_lexer::handle_continuation().

◆ operator=()

filepos& octave::filepos::operator= ( const filepos )
default

◆ set()

void octave::filepos::set ( int  l,
int  c 
)
inline

Definition at line 45 of file filepos.h.

References m_column, and m_line.

Member Data Documentation

◆ m_column

int octave::filepos::m_column
private

Definition at line 72 of file filepos.h.

Referenced by column(), decrement_column(), increment_column(), next_line(), and set().

◆ m_line

int octave::filepos::m_line
private

Definition at line 71 of file filepos.h.

Referenced by decrement_line(), increment_line(), line(), next_line(), and set().


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