#include <Pattern.h>
Inheritance diagram for Pattern:
Public Member Functions | |
virtual void | addCharacters (const StringPimpl &characters) throw (InternalProgrammerErrorException &) |
Sets its internal string to the characters inbetween its begin and end tag. | |
virtual StringPimpl | getString () const throw (InternalProgrammerErrorException &) |
Returns a copy of the internal string. | |
virtual const StringPimpl & | getStringConstRef () const throw (InternalProgrammerErrorException &) |
Returns a reference of the internal string. | |
Pattern () throw (InternalProgrammerErrorException &) | |
Default constructor to initalize the private implementation (m_pimpl) data. | |
virtual | ~Pattern () |
Default virtual destructor. | |
Private Attributes | |
shared_ptr< PatternImpl > | m_pimpl |
The private implementation in which you cannot get access to. |
Every time a XML Tag of AIML is encountered, an instance of this class will be created. All text inbetween the begin and end tag, all attributes, and all inner Tags will go through methods of this class.
|
Default constructor to initalize the private implementation (m_pimpl) data.
|
|
Default virtual destructor. Destroys the private implementation (m_pimpl) data. |
|
Sets its internal string to the characters inbetween its begin and end tag. For example, in <pattern>blah</pattern>, blah will be added through this method to an internal string.
Reimplemented from Tag. |
|
Returns a copy of the internal string.
Implements InnerCategory. |
|
Returns a reference of the internal string. This is for efficiency's sake. Be careful because this object retains ownership of the string and it has to stay instantiated while the reference is being passed around.
Reimplemented from InnerCategory. |
|
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 InnerCategory. |