#include <Random.h>
Inheritance diagram for Random:
Public Member Functions | |
virtual void | add (const shared_ptr< InnerTemplate > &tag) throw (InternalProgrammerErrorException &) |
Adds the InnerTemplate AIML XML Tag object to the underlying data structure. | |
virtual StringPimpl | getString () const throw (InternalProgrammerErrorException &) |
Randomly chooses one of the tags that it added through Random::add() and returns the InnerTemplate::getString() on that Tag. | |
Random () throw (InternalProgrammerErrorException &) | |
Default constructor to initalize the private implementation (m_pimpl) data. | |
virtual | ~Random () |
Default virtual destructor. | |
Private Attributes | |
shared_ptr< RandomImpl > | 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. |
|
Adds the InnerTemplate AIML XML Tag object to the underlying data structure.
Reimplemented from InnerTemplate. |
|
Randomly chooses one of the tags that it added through Random::add() and returns the InnerTemplate::getString() on that Tag.
Reimplemented from InnerTemplate. |
|
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. |