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

#include "filepos.h"

Collaboration diagram for filepos:

Public Member Functions

 filepos (const filepos &)=default
 
 filepos (int l, int c)
 
 filepos (void)
 
 ~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)
 
 operator bool ()
 
fileposoperator= (const filepos &)=default
 

Private Attributes

int m_column
 
int m_line
 

Detailed Description

Definition at line 33 of file filepos.h.

Constructor & Destructor Documentation

◆ filepos() [1/3]

filepos::filepos ( void  )
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 ( void  )
default

Member Function Documentation

◆ column() [1/2]

void filepos::column ( int  c)
inline

◆ column() [2/2]

int filepos::column ( void  ) const
inline

Definition at line 53 of file filepos.h.

◆ 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

◆ increment_line()

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

Definition at line 55 of file filepos.h.

◆ line() [1/2]

◆ line() [2/2]

int filepos::line ( void  ) const
inline

Definition at line 52 of file filepos.h.

◆ next_line()

void filepos::next_line ( void  )
inline

Definition at line 61 of file filepos.h.

Referenced by base_lexer::handle_continuation().

◆ operator bool()

filepos::operator bool ( )
inline

Definition at line 47 of file filepos.h.

◆ operator=()

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

Member Data Documentation

◆ m_column

int filepos::m_column
private

Definition at line 70 of file filepos.h.

◆ m_line

int filepos::m_line
private

Definition at line 69 of file filepos.h.


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