#include <InnerTemplateListImpl.h>
Inheritance diagram for InnerTemplateListImpl:
Public Member Functions | |
virtual void | add (const shared_ptr< InnerTemplate > &tag) throw (InternalProgrammerErrorException &) |
Adds the tag to the end of the internal linked list. | |
virtual void | addCharacters (const StringPimpl &characters) throw (InternalProgrammerErrorException &) |
Creates a PlainWord object, adds the input characters to it and then calls InnerTemplateListImpl::add() with the PlainWord object. | |
virtual StringPimpl | getString () const throw (InternalProgrammerErrorException &) |
Iterates through the internal linked list, calls InnerTemplate::getString() on each tag, appends the output from each and then returns it. | |
InnerTemplateListImpl () throw (InternalProgrammerErrorException &) | |
Default constructor to initalize the private implementation (m_pimpl) data. | |
virtual | ~InnerTemplateListImpl () |
Default virtual destructor. | |
Private Attributes | |
shared_ptr< InnerTemplateListImplImpl > | m_pimpl |
The private implementation in which you cannot get access to. |
This convience class is for other InnerTemplate Tags to inherit from if they want to use a linked list for their internal data structure. If your InnerTemplate Tag inherits from this class it will not have to necessarily flush out InnerTemplate::add() or InnerTemplate::addCharacters() and can call InnerTemplateListImpl::getString() to get the string from within the data structure.
|
Default constructor to initalize the private implementation (m_pimpl) data.
|
|
Default virtual destructor. Destroys the private implementation (m_pimpl) data. |
|
Adds the tag to the end of the internal linked list.
Reimplemented from InnerTemplate. |
|
Creates a PlainWord object, adds the input characters to it and then calls InnerTemplateListImpl::add() with the PlainWord object.
Reimplemented from Tag. |
|
Iterates through the internal linked list, calls InnerTemplate::getString() on each tag, appends the output from each and then returns it. This is sometimes used by InnerTemplate Tags to get the string representation of the InnerTemplate Tags that are inside of them. They then conduct their Tag transformation on it and returns that as their return value.
Reimplemented from InnerTemplate. Reimplemented in Formal, Gender, Gossip, Learn, LowerCase, Person, Person2, Sentence, Set, Srai, System, Think, and UpperCase. |
|
The private implementation in which you cannot get access to. This shared_ptr holds the private methods and private member variables of this class. This makes ABI (Application Binary Interface) more resilient to change. See the private implementation idiom on the internet for more information about this. Reimplemented from InnerTemplate. Reimplemented in Formal, Gender, Gossip, Learn, Li, LowerCase, NonImplemented, Person, Person2, Sentence, Set, Srai, System, Think, and UpperCase. |