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

#include "filepos.h"

Public Member Functions

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

Detailed Description

Definition at line 33 of file filepos.h.

Constructor & Destructor Documentation

◆ filepos() [1/3]

filepos::filepos ( )
inline

Definition at line 37 of file filepos.h.

◆ filepos() [2/3]

filepos::filepos ( int  l,
int  c 
)
inline

Definition at line 39 of file filepos.h.

◆ filepos() [3/3]

filepos::filepos ( const filepos )
default

◆ ~filepos()

filepos::~filepos ( )
default

Member Function Documentation

◆ column() [1/2]

int filepos::column ( ) const
inline

Definition at line 53 of file filepos.h.

◆ column() [2/2]

void filepos::column ( int  c)
inline

◆ decrement_column()

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

Definition at line 59 of file filepos.h.

◆ decrement_line()

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

Definition at line 58 of file filepos.h.

◆ increment_column()

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

Definition at line 56 of file filepos.h.

Referenced by base_lexer::update_token_positions().

◆ increment_line()

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

Definition at line 55 of file filepos.h.

◆ line() [1/2]

int filepos::line ( ) const
inline

Definition at line 52 of file filepos.h.

◆ line() [2/2]

◆ next_line()

void filepos::next_line ( )
inline

Definition at line 61 of file filepos.h.

◆ operator bool()

filepos::operator bool ( )
inline

Definition at line 47 of file filepos.h.

◆ operator=()

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

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