#include <Flek/FBase.H>
FBase is the Abstract base class for all f classes. The FBase class can be used to build container classes which use object pointers. The same container class can then be used with any derived classes without the need of any additional code or templates. FBase has no member data. It only has protected constructors (to prevent instantiation), virtual destructors and an assignment operator.
FBase::FBase();
The default constructor is protected to prevent instantiation,FBase::FBase(const FBase&);
The copy constructor is protected to prevent instantiation.Parameters
src The class to take initial data from.
virtual Ptr FBase::copy();
Derived class should give a meaningful implementation for the following functions. Classes such as List which use FBase pointers will use these functions, for memory managementMake a copy of the FBase and return a pointer to the new one.
FBase& FBase::operator =(const FBase&);
Assignment operator. This operator must be overriden to be useful, it's default behavior is to do nothing.
virtual FBase::~FBase();
Destructor.