The Fast Light Environment Kit



class FBase

Include Files

#include <Flek/FBase.H>

Description

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.

Methods


Method Descriptions

FBase

FBase::FBase();

The default constructor is protected to prevent instantiation,

FBase::FBase(const FBase&);

The copy constructor is protected to prevent instantiation.

Parameters
srcThe class to take initial data from.

copy

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 management

Make a copy of the FBase and return a pointer to the new one.

operator =

FBase& FBase::operator =(const FBase&);

Assignment operator. This operator must be overriden to be useful, it's default behavior is to do nothing.

~FBase

virtual FBase::~FBase();

Destructor.

© 2000 the Flek Development team.
Generated by ScanDoc
Last Updated: Tue May 15 8:50:06 2001