Om
|
A partial implementation of Atom. More...
#include "default_atom.hpp"
Public Member Functions | |
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 (ThisImplementation 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 (ThisImplementation &) |
virtual bool | Merge (ThisImplementation const &) |
void | Swap (ThisImplementation &) |
Public Member Functions inherited from Om::Language::DefaultElement< ThisImplementation, Om::Language::Atom > | |
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, ThisInterface > | |
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, DefaultGiveable< ThisImplementation, Om::Language::Program > > | |
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::DefaultGiveable< ThisImplementation, ThisInterface > | |
virtual | ~DefaultGiveable ()=0 |
Public Member Functions inherited from Om::DefaultMoveable< ThisImplementation, DefaultCopyable< ThisImplementation, Giveable > > | |
virtual std::auto_ptr< Moveable > | Move () |
virtual | ~DefaultMoveable ()=0 |
Public Member Functions inherited from Om::DefaultCopyable< ThisImplementation, ThisInterface > | |
virtual | ~DefaultCopyable ()=0 |
virtual std::auto_ptr< Copyable > | Copy () const |
Public Member Functions inherited from Om::Copyable | |
virtual | ~Copyable ()=0 |
Public Member Functions inherited from Om::Taker< ThisImplementation > | |
virtual | ~Taker ()=0 |
void | Take (ThisImplementation &) |
Swaps. More... | |
void | Take (ThisImplementation const &) |
Assigns. More... | |
Protected Member Functions | |
DefaultAtom () | |
DefaultAtom (char const theCodeUnitIterator[]) | |
DefaultAtom (char const theCodeUnit) | |
Protected Attributes | |
std::string | thisString |
The NFD-normalized string that defines the Atom. More... | |
Private Member Functions | |
DefaultAtom & | operator= (DefaultAtom const &) |
Definition at line 42 of file default_atom.hpp.
|
pure virtual |
|
protected |
|
explicitprotected |
theCodeUnitIterator | A non-null pointer to the null-terminated code unit array to copy. |
|
explicitprotected |
theCodeUnit | The ASCII CodePoint to copy. |
bool Om::Language::DefaultAtom< ThisImplementation >::operator< | ( | DefaultAtom< ThisImplementation > const & | ) |
|
virtual |
bool Om::Language::DefaultAtom< ThisImplementation >::Equals | ( | DefaultAtom< ThisImplementation > const & | ) | const |
bool Om::Language::DefaultAtom< ThisImplementation >::Equals | ( | ThisImplementation const & | ) | const |
|
virtual |
Reimplemented from Om::Language::DefaultElement< ThisImplementation, Om::Language::Atom >.
|
virtual |
Reimplemented from Om::Language::DefaultElement< ThisImplementation, Om::Language::Atom >.
std::string const& Om::Language::DefaultAtom< ThisImplementation >::GetString | ( | ) | const |
|
virtual |
|
virtual |
|
virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void Om::Language::DefaultAtom< ThisImplementation >::Swap | ( | ThisImplementation & | ) |
|
private |
|
protected |
Definition at line 133 of file default_atom.hpp.