Public Member Functions | Private Member Functions | Private Attributes | List of all members
Om::Language::Reader Class Reference

Produces each CodePoint until the end of the Source. More...

#include "reader.hpp"

+ Inheritance diagram for Om::Language::Reader:
+ Collaboration diagram for Om::Language::Reader:

Public Member Functions

 Reader (Om::Source::Source< CodePoint const > &)
virtual CodePoint const & operator* () const
virtual bool operator! () const
bool Equals (Reader const &) const
virtual void Pop ()
 Pops the current item. More...
- Public Member Functions inherited from Om::Source::DefaultSource< CodePoint const, Reader >
virtual ~DefaultSource ()=0
Reader & operator++ ()
 Pulls the next item from the Source. More...
Reader operator++ (int)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
virtual bool Equals (Source< CodePoint const > const &) const
bool Equals (Reader const &) const
- Public Member Functions inherited from Om::Source::Source< CodePoint const >
virtual ~Source ()=0
CodePoint const * operator-> () const
 operator Boolean () const
 Implements the Safe Boolean idiom. More...
virtual bool Equals (Source const &) const=0

Private Member Functions

 Reader (Reader const &)
Reader const & operator= (Reader const &)

Private Attributes

Om::Source::Source< CodePoint const > & thisCodePointSource
size_t thisDepth
bool thisIsEncoded

Additional Inherited Members

- Public Types inherited from Om::Source::Source< CodePoint const >
typedef void(Source::* Boolean) () const
 The implementation of the Safe Boolean idiom. More...

Detailed Description

Definition at line 33 of file reader.hpp.

Constructor & Destructor Documentation

◆ Reader() [1/2]

Om::Language::Reader::Reader ( Om::Source::Source< CodePoint const > &  )

◆ Reader() [2/2]

Om::Language::Reader::Reader ( Reader const &  )

Member Function Documentation

◆ operator*()

virtual CodePoint const& Om::Language::Reader::operator* ( ) const

◆ operator!()

virtual bool Om::Language::Reader::operator! ( ) const
True if empty.

Implements Om::Source::Source< CodePoint const >.

◆ Equals()

bool Om::Language::Reader::Equals ( Reader const &  ) const

◆ Pop()

virtual void Om::Language::Reader::Pop ( )
Not empty.

Implements Om::Source::Source< CodePoint const >.

◆ operator=()

Reader const& Om::Language::Reader::operator= ( Reader const &  )

Member Data Documentation

◆ thisCodePointSource

Om::Source::Source<CodePoint const>& Om::Language::Reader::thisCodePointSource

Definition at line 64 of file reader.hpp.

◆ thisDepth

size_t Om::Language::Reader::thisDepth

Definition at line 66 of file reader.hpp.

◆ thisIsEncoded

bool Om::Language::Reader::thisIsEncoded

Definition at line 68 of file reader.hpp.

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