wex v24.10.0
Public Member Functions | List of all members
wex::line_data Class Reference

Offers user data to be used by factory classes. More...

#include <wex/factory/line-data.h>

Inheritance diagram for wex::line_data:
Inheritance graph
[legend]

Public Member Functions

const auto col () const
 Returns column.
 
line_datacol (int col)
 Sets column.
 
const auto & command () const
 Returns command.
 
line_datacommand (const std::string &command)
 Sets command.
 
auto is_ctag () const
 Returns true if command is a ctag command.
 
line_datais_ctag (bool rhs)
 Sets ctag.
 
const auto line () const
 Returns line number.
 
line_dataline (int line, std::function< int(int)> f=nullptr)
 Sets line number.
 
virtual void reset ()
 Resets members to default state.
 

Detailed Description

Offers user data to be used by factory classes.

Member Function Documentation

◆ col()

wex::line_data & wex::line_data::col ( int col)
inline

Sets column.

Goes to column if col_number > 0

◆ command()

wex::line_data & wex::line_data::command ( const std::string & command)
inline

Sets command.

This is a vi command to execute.

◆ line()

wex::line_data & wex::line_data::line ( int line,
std::function< int(int)> f = nullptr )
inline

Sets line number.

Goes to the line if > 0, if -1 goes to end of file