Synopsis/Buffer.hh

source code

Includes from this file:

No includes.

Declarations in this file:

Classes in Synopsis

Buffer

Buffer holds the memory on top of which a parse tree / syntax tree is constructed.

Data members in Synopsis::Buffer::Replacement

begin
from
length
to

Data members in Synopsis::Buffer

my_buffer
my_cursor
my_filename
my_replacements

Member functions in Synopsis::Buffer

Buffer(std::streambuf*,const std::string&)

Member functions in Synopsis::Buffer::Replacement

smaller(const Replacement&,const Replacement&)

Member functions in Synopsis::Buffer

origin(const char*,std::string&)const

Return the origin of the given pointer (filename and line number)

read_line_directive(unsigned long,long,unsigned long&,unsigned long&)const

read a line directive starting at position pos, and return the line number found.

replace(const char*,const char*,const char*,unsigned long)

replace the text between from and to by the text between begin and begin + length

reset(unsigned long)

reset the current position to position c

size()const

return the size of the buffer

write(std::ostream&,const std::string&)const

Write the buffer into the given output stream The first line contains a line directive issuing the input file name; if filename is non-empty, use this to fake another one.

Namespaces

Synopsis

Structs in Synopsis::Buffer

Replacement

Typedefs in Synopsis::Buffer

Replacements