Bond 0.9
C++ Bond Runtime Library API Documentation
Loading...
Searching...
No Matches
Bond::StreamPos Struct Reference

A POD struct to contain the index, line and column of a token in source code. More...

#include <bond/compiler/streampos.h>

Public Member Functions

 StreamPos (size_t i=0, size_t l=1, size_t c=1)
 
 StreamPos (const StreamPos &other)=default
 

Public Attributes

size_t index
 
size_t line
 
size_t column
 

Detailed Description

A POD struct to contain the index, line and column of a token in source code.

See also
CharStream

Constructor & Destructor Documentation

◆ StreamPos() [1/2]

Bond::StreamPos::StreamPos ( size_t  i = 0,
size_t  l = 1,
size_t  c = 1 
)
inline

◆ StreamPos() [2/2]

Bond::StreamPos::StreamPos ( const StreamPos other)
default

Member Data Documentation

◆ column

size_t Bond::StreamPos::column

◆ index

size_t Bond::StreamPos::index

◆ line

size_t Bond::StreamPos::line

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