god::position#

Note

Declared in <god/base.hpp>

class position#

Simple data structure to emulate a moving cursor.

Members

std::uint32_t line#

The current line index.

std::uint32_t column#

The current column index.

Constructors

inline position(std::uint32_t pline, std::uint32_t pcolumn)#

Main constructor for the position class.

Parameters:
  • pline – The initial line

  • pcolumn – The initial column

inline position(std::uint32_t both)#

Alternative constructor for the position class.

Parameters:

both – The initial index for both column and line

inline position()#

No-argument constructor for the position class, using zero for both.