textoutput::PageLine Struct Reference

#include <textoutputentities.h>

List of all members.

Public Types

typedef libs::Rectangle BBox
typedef boost::shared_ptr
< PageFragment
PageFragmentPtr
typedef std::vector
< PageFragmentPtr
PageFragments
typedef
PageFragments::const_iterator 
Iterator

Public Member Functions

virtual void push_back (PageFragmentPtr f)
virtual void sort ()
Iterator begin () const
Iterator end () const
bool empty () const
BBox bbox () const
virtual ~PageLine ()
std::string text () const

Protected Attributes

BBox _bbox
PageFragments _words

Detailed Description

Class representing one sentence on a page.


Member Typedef Documentation

typedef libs::Rectangle textoutput::PageLine::BBox
typedef PageFragments::const_iterator textoutput::PageLine::Iterator

Constructor & Destructor Documentation

virtual textoutput::PageLine::~PageLine (  )  [inline, virtual]

Member Function Documentation

BBox textoutput::PageLine::bbox (  )  const [inline]

Return apporximate bbox.

References _bbox.

Referenced by textoutput::SimpleLineEngine::LinePart::line_part().

Iterator textoutput::PageLine::begin (  )  const [inline]

Return first simple fragment iterator.

References _words.

bool textoutput::PageLine::empty (  )  const [inline]

Is container empty.

References _words.

Iterator textoutput::PageLine::end (  )  const [inline]

Return last simple fragment iterator.

References _words.

void textoutput::PageLine::push_back ( PageFragmentPtr  f  )  [virtual]

Insert word into this line. Insert it in sorted words.

References _bbox, and _words.

void textoutput::PageLine::sort (  )  [virtual]

Sort lines.

std::string textoutput::PageLine::text (  )  const [inline]

References _words.


Member Data Documentation

Approximate bbox.

Referenced by bbox(), and push_back().

Container of all words from one line.

Referenced by begin(), empty(), end(), push_back(), and text().


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