Om
Public Member Functions | Static Public Member Functions | List of all members
Om::Language::Operator Class Reference

The Operator implementation. More...

#include "operator.hpp"

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

Public Member Functions

 Operator ()
 
 Operator (std::string const &)
 Normalizes the string and copies directly into the Operator. More...
 
 Operator (char const theCodeUnitIterator[])
 
 Operator (Om::Source::Source< CodePoint const > &)
 
 Operator (Symbol::OperandSymbol const)
 
 Operator (Symbol::OperatorSymbol const)
 
 Operator (Symbol::SeparatorSymbol const)
 
Operatoroperator= (Operator)
 
void BackGiveCodePoint (Consumer &)
 Gives the last CodePoint as an Atom. More...
 
template<boost::locale::boundary::boundary_type theSegment>
void BackGiveSegment (Consumer &)
 Gives the last segment of the given type to the Consumer. More...
 
template<typename TheConsumer >
void Decode (TheConsumer &) const
 Decodes this Operator and gives each resulting Element to the argument. More...
 
template<typename TheProducer >
void Encode (TheProducer &)
 Encodes the elements and replaces the contents of this Operator with the result. More...
 
void FrontGiveCodePoint (Consumer &)
 Gives the first CodePoint as an Atom. More...
 
template<boost::locale::boundary::boundary_type theSegment>
void FrontGiveSegment (Consumer &)
 Gives the first segment of the given type to the Consumer. More...
 
void Normalize ()
 Applies Unicode compatibility normalization. More...
 
virtual void ParseElements (Reader &)
 
virtual void ParseQuotedElements (Reader &)
 
template<typename TheOperand >
void TakeOperand (TheOperand &)
 
template<typename TheOperator >
void TakeOperator (TheOperator &)
 
template<typename TheProducer >
void TakeQuotedProducer (TheProducer &)
 
template<typename TheSeparator >
void TakeSeparator (TheSeparator &)
 
- Public Member Functions inherited from Om::Language::DefaultAtom< Operator >
virtual ~DefaultAtom ()=0
 
bool operator< (DefaultAtom const &)
 Compares with a Atom; required for use as index in containers. More...
 
virtual void Clear ()
 
bool Equals (DefaultAtom const &) const
 
bool Equals (Operator const &) const
 
virtual std::auto_ptr< Om::Source::Source< Element > > GetElementRange ()
 
virtual std::auto_ptr< Om::Source::Source< Element const > > GetElementRange () const
 
std::string const & GetString () const
 
virtual bool IsEmpty () const
 
virtual bool Merge (Operator &)
 
virtual bool Merge (Operator const &)
 
void Swap (Operator &)
 
- Public Member Functions inherited from Om::Language::DefaultElement< ThisImplementation, ThisInterface >
virtual ~DefaultElement ()=0
 
virtual bool Equals (Element const &) const
 
bool Equals (ThisImplementation const &) const
 
virtual void GiveElements (Consumer &)
 
virtual void GiveElements (Consumer &) const
 
- Public Member Functions inherited from Om::Language::DefaultProgram< ThisImplementation, Om::Language::Element >
virtual ~DefaultProgram ()=0
 
virtual bool Equals (Program const &) const
 
virtual void TakeElements (Producer &)
 Takes each Element of the argument. More...
 
virtual void TakeElements (Producer const &)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
- Public Member Functions inherited from Om::Language::DefaultConsumer< ThisImplementation, ThisInterface >
virtual ~DefaultConsumer ()=0
 
virtual void TakeElement (Operand &)
 Takes a non-empty Element, which gets copied or swapped. More...
 
virtual void TakeElement (Operand const &)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual void TakeElement (Operator &)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual void TakeElement (Operator const &)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual void TakeElement (Separator &)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual void TakeElement (Separator const &)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual void TakeQuotedElements (Producer &)
 Constructs and takes an Operand, which takes each Element from the argument Producer. More...
 
virtual void TakeQuotedElements (Producer const &)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
- Public Member Functions inherited from Om::Language::Consumer
virtual ~Consumer ()=0
 
template<typename TheOperator , typename TheSeparator >
void Parse (Reader &)
 
void TakeElement (Null &)
 Takes a Null Element, which is disregarded. More...
 
void TakeElement (Null const &)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
- Public Member Functions inherited from Om::Taker< ThisImplementation >
virtual ~Taker ()=0
 
void Take (ThisImplementation &)
 Swaps. More...
 
void Take (ThisImplementation const &)
 Assigns. More...
 

Static Public Member Functions

static char const * GetName ()
 

Additional Inherited Members

- Protected Member Functions inherited from Om::Language::DefaultAtom< Operator >
 DefaultAtom ()
 
 DefaultAtom (char const theCodeUnitIterator[])
 
 DefaultAtom (char const theCodeUnit)
 
- Protected Attributes inherited from Om::Language::DefaultAtom< Operator >
std::string thisString
 The NFD-normalized string that defines the Atom. More...
 

Detailed Description

An Atom defined by any UTF-8 string.

As a Consumer, the Operator appends each taken Element verbatim.

Definition at line 59 of file operator.hpp.

Constructor & Destructor Documentation

◆ Operator() [1/7]

Om::Language::Operator::Operator ( )

◆ Operator() [2/7]

Om::Language::Operator::Operator ( std::string const &  )
explicit

◆ Operator() [3/7]

Om::Language::Operator::Operator ( char const  theCodeUnitIterator[])
explicit
Parameters
theCodeUnitIteratorA non-null pointer to the null-terminated code unit array to normalize and copy directly into the Operator.

◆ Operator() [4/7]

Om::Language::Operator::Operator ( Om::Source::Source< CodePoint const > &  )
explicit

◆ Operator() [5/7]

Om::Language::Operator::Operator ( Symbol::OperandSymbol const  )
explicit

◆ Operator() [6/7]

Om::Language::Operator::Operator ( Symbol::OperatorSymbol const  )
explicit

◆ Operator() [7/7]

Om::Language::Operator::Operator ( Symbol::SeparatorSymbol const  )
explicit

Member Function Documentation

◆ GetName()

static char const* Om::Language::Operator::GetName ( )
static

◆ operator=()

Operator& Om::Language::Operator::operator= ( Operator  )

◆ BackGiveCodePoint()

void Om::Language::Operator::BackGiveCodePoint ( Consumer )

◆ BackGiveSegment()

template<boost::locale::boundary::boundary_type theSegment>
void Om::Language::Operator::BackGiveSegment ( Consumer )

◆ Decode()

template<typename TheConsumer >
void Om::Language::Operator::Decode ( TheConsumer &  ) const

◆ Encode()

template<typename TheProducer >
void Om::Language::Operator::Encode ( TheProducer &  )

◆ FrontGiveCodePoint()

void Om::Language::Operator::FrontGiveCodePoint ( Consumer )

◆ FrontGiveSegment()

template<boost::locale::boundary::boundary_type theSegment>
void Om::Language::Operator::FrontGiveSegment ( Consumer )

◆ Normalize()

void Om::Language::Operator::Normalize ( )

◆ ParseElements()

virtual void Om::Language::Operator::ParseElements ( Reader )
virtual

◆ ParseQuotedElements()

virtual void Om::Language::Operator::ParseQuotedElements ( Reader )
virtual

◆ TakeOperand()

template<typename TheOperand >
void Om::Language::Operator::TakeOperand ( TheOperand &  )

◆ TakeOperator()

template<typename TheOperator >
void Om::Language::Operator::TakeOperator ( TheOperator &  )

◆ TakeQuotedProducer()

template<typename TheProducer >
void Om::Language::Operator::TakeQuotedProducer ( TheProducer &  )

◆ TakeSeparator()

template<typename TheSeparator >
void Om::Language::Operator::TakeSeparator ( TheSeparator &  )

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