InFact
Interpreter and factory for easily creating C++ objects at run-time
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
infact::PersonImpl Class Reference

A concrete implementation of the Person interface that can be constructed by a Factory (because of the REGISTER_PERSON(PersonImpl) declaration in example.cc). More...

#include <example.h>

Inheritance diagram for infact::PersonImpl:
infact::Person infact::FactoryConstructible

Public Member Functions

 PersonImpl ()
 Constructs this person. More...
 
virtual ~PersonImpl ()
 Destroys this person. More...
 
virtual void RegisterInitializers (Initializers &initializers)
 Registers one required and two optional initializers. More...
 
virtual const string & name () const
 Returns the name of this person. More...
 
virtual const int cm_height () const
 Returns the height in centimeters of this person. More...
 
virtual shared_ptr< const Datebirthday () const
 Returns the birthday of this person. More...
 
- Public Member Functions inherited from infact::Person
 Person ()
 Constructs this abstract person. More...
 
virtual ~Person ()
 Destroys this abstract person. More...
 
- Public Member Functions inherited from infact::FactoryConstructible
virtual ~FactoryConstructible ()
 Destroys this instance. More...
 
virtual void PostInit (const Environment *env, const string &init_str)
 Does any additional initialization after an instance of this class has been constructed, crucially giving access to the Environment that was in use and modified during construction by the Factory::CreateOrDie method. More...
 

Detailed Description

A concrete implementation of the Person interface that can be constructed by a Factory (because of the REGISTER_PERSON(PersonImpl) declaration in example.cc).

Definition at line 129 of file example.h.

Constructor & Destructor Documentation

infact::PersonImpl::PersonImpl ( )
inline

Constructs this person.

Definition at line 132 of file example.h.

virtual infact::PersonImpl::~PersonImpl ( )
inlinevirtual

Destroys this person.

Definition at line 134 of file example.h.

Member Function Documentation

virtual shared_ptr<const Date> infact::PersonImpl::birthday ( ) const
inlinevirtual

Returns the birthday of this person.

Implements infact::Person.

Definition at line 148 of file example.h.

virtual const int infact::PersonImpl::cm_height ( ) const
inlinevirtual

Returns the height in centimeters of this person.

Implements infact::Person.

Definition at line 146 of file example.h.

virtual const string& infact::PersonImpl::name ( ) const
inlinevirtual

Returns the name of this person.

Implements infact::Person.

Definition at line 144 of file example.h.

virtual void infact::PersonImpl::RegisterInitializers ( Initializers initializers)
inlinevirtual

Registers one required and two optional initializers.

Reimplemented from infact::FactoryConstructible.

Definition at line 137 of file example.h.


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