rapidyaml  0.7.2
parse and emit YAML, and do it fast
c4::yml::LineCol Struct Reference

holds a position into a source buffer More...

#include <common.hpp>

Public Member Functions

 LineCol ()=default
 
 LineCol (size_t l, size_t c)
 construct from line and column More...
 
 LineCol (size_t o, size_t l, size_t c)
 construct from offset, line and column More...
 

Public Attributes

size_t offset
 number of bytes from the beginning of the source buffer More...
 
size_t line
 line More...
 
size_t col
 column More...
 

Detailed Description

holds a position into a source buffer

Definition at line 275 of file common.hpp.

Constructor & Destructor Documentation

◆ LineCol() [1/3]

c4::yml::LineCol::LineCol ( )
default

◆ LineCol() [2/3]

c4::yml::LineCol::LineCol ( size_t  l,
size_t  c 
)
inline

construct from line and column

Definition at line 286 of file common.hpp.

286 : offset(0), line(l), col(c) {}
size_t line
line
Definition: common.hpp:280
size_t offset
number of bytes from the beginning of the source buffer
Definition: common.hpp:278
size_t col
column
Definition: common.hpp:282

◆ LineCol() [3/3]

c4::yml::LineCol::LineCol ( size_t  o,
size_t  l,
size_t  c 
)
inline

construct from offset, line and column

Definition at line 288 of file common.hpp.

288 : offset(o), line(l), col(c) {}

Member Data Documentation

◆ offset

size_t c4::yml::LineCol::offset

number of bytes from the beginning of the source buffer

Definition at line 278 of file common.hpp.

◆ line

size_t c4::yml::LineCol::line

line

Definition at line 280 of file common.hpp.

◆ col

size_t c4::yml::LineCol::col

column

Definition at line 282 of file common.hpp.


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