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::HumanPetOwner Class Reference

A concrete type of PetOwner that can be constructed by a Factory<PetOwner> instance. More...

#include <example.h>

Inheritance diagram for infact::HumanPetOwner:
infact::PetOwner infact::FactoryConstructible

Public Member Functions

 HumanPetOwner ()
 Constructs a human pet owner. More...
 
virtual ~HumanPetOwner ()
 Destroys a human pet owner. More...
 
virtual void RegisterInitializers (Initializers &initializers)
 Registers a single required initializer. More...
 
virtual int GetNumberOfPets ()
 Returns the number of pets owned by this pet owner. More...
 
virtual shared_ptr< AnimalGetPet (int i)
 Gets the pet with the specified index owned by this pet owner. More...
 
- Public Member Functions inherited from infact::PetOwner
 PetOwner ()
 Constructs a generic pet owner. More...
 
virtual ~PetOwner ()
 Destroys this pet owner. 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 type of PetOwner that can be constructed by a Factory<PetOwner> instance.

Definition at line 278 of file example.h.

Constructor & Destructor Documentation

infact::HumanPetOwner::HumanPetOwner ( )
inline

Constructs a human pet owner.

Definition at line 281 of file example.h.

virtual infact::HumanPetOwner::~HumanPetOwner ( )
inlinevirtual

Destroys a human pet owner.

Definition at line 284 of file example.h.

Member Function Documentation

virtual int infact::HumanPetOwner::GetNumberOfPets ( )
inlinevirtual

Returns the number of pets owned by this pet owner.

Implements infact::PetOwner.

Definition at line 292 of file example.h.

virtual shared_ptr<Animal> infact::HumanPetOwner::GetPet ( int  i)
inlinevirtual

Gets the pet with the specified index owned by this pet owner.

Implements infact::PetOwner.

Definition at line 297 of file example.h.

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

Registers a single required initializer.

Reimplemented from infact::FactoryConstructible.

Definition at line 287 of file example.h.


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