FrameManager

A FrameManager maintains a collection of Frame objects and retrieves a Frame from the collection by the Frame's name. Methods allow Frames to be added and removed.

[ Index | Source | Summary | Member Functions ]

Quick Index


Class Summary

class FrameManager
{

public:
FrameManager(int maxFrames );
void Add(Frame& frame);
void Add(Frame* frame);
Frame* FindByName(char* frameName);
void Remove(Frame& frame);
void Remove(Frame* frame);
~FrameManager();
}; // FrameManager

Back to the top of FrameManager


FrameManager(int maxFrames );

Construct a FrameManager optionally specifying the maximum number of Frames that can be managed. The default maximum is 10.

	FrameManager(int maxFrames = 10);

Back to the top of FrameManager


void Add(Frame& frame);

Add a Frame to the FrameManager's collection. The Frame to be added is passed by reference. The operation has no effect if the new Frame would exceed the maximum number of Frames that the FrameManager can contain.

	void Add(Frame& frame);

Back to the top of FrameManager


void Add(Frame* frame);

Add a Frame to the FrameManager's collection. The Frame to be added is passed by pointer. The operation has no effect if the new Frame would exceed the maximum number of Frames that the FrameManager can contain.

	void Add(Frame* frame);

Back to the top of FrameManager


Frame* FindByName(char* frameName);

Return a pointer to a Frame whose name is given by the text string passed as a parameter. A null pointer is returned if a Frame with the required name is not part of the FrameManager's collection. If more than one Frame in the collection has the specified name an arbitrary one of them is returned.

	Frame* FindByName(char* frameName);

Back to the top of FrameManager


void Remove(Frame& frame);

Remove a given Frame from the collection maintained by the FrameManager. The Frame to be removed is identified by reference. The method has no effect if the specified Frame is not included in the FrameManager's collection.

	void Remove(Frame& frame);

Back to the top of FrameManager


void Remove(Frame* frame);

Remove a given Frame from the collection maintained by the FrameManager. The Frame to be removed is identified by pointer. The method has no effect if the specified Frame is not included in the FrameManager's collection.

	void Remove(Frame* frame);

Back to the top of FrameManager


~FrameManager();

Release all of the resources held by the FrameManager. The individual Frame object maintained by the FrameManager are NOT destructed. Such Frames must be destructed separately.

	~FrameManager();

Back to the top of FrameManager


Member Functions

public:
void Add(Frame& frame);
void Add(Frame* frame);
Frame* FindByName(char* frameName);
void Remove(Frame& frame);
void Remove(Frame* frame);

Back to the top of FrameManager


Generated from source by the Cocoon utilities on Thu Apr 02 12:39:40 1998 .

Report problems to jkotula@unimax.com