Main Table of Contents


Table of Contents

class PtOnDemandSet
PtOnDemandSet: class summary
PtOnDemandSet::Forget()
PtOnDemandSet::Make()
POET - Reference Guide

class PtOnDemandSet


Intro
PtOnDemandSet: class summary
PtOnDemandSet::Forget()
PtOnDemandSet::Make()

If your set declaration contains ondemands then PTXX derives your set from PtOnDemandSet. OnDemandSets are derived from PtObjectSet. The implementation is different, but the programming interface is virtually identical.

These methods are documented under PtObjectSet. This chapter documents only those methods which differ from those in PtObjectSet. Please read the chapter "Sets" in the Programmer's Guide for general guidelines on declaring and programming with sets. Set declaration syntax is explained in the chapter "The PTXX Precompiler." In this Reference Guide, "PTXX-generated classes" shows the code which PTXX generates for an ondemand set in your persistent class declarations.


PtOnDemandSet: class summary


Intro

Files to include Class declaration Base class
poet.hxx ptondset.hxx PtObjectSet

Member functions (see PtObjectSet for most function descriptions !)

Forget int Forget();
Make static PtOnDemandSet* Make(PtBase* , const PtString& ClassName, PtSetType);

PtOnDemandSet::Forget()


Intro

Declaration:

int PtOnDemandSet::Forget()

Description:

If the set is responsible for the referenced object, decrements the link count for the referenced object and removes responsibility for the object.


PtOnDemandSet::Make()


Intro

Declaration:

static PtOnDemandSet* PtOnDemandSet::Make(PtBase* , const PtString& ClassName, PtSetType)

Description:

Creates an ondemand set to contain objects of the given class, and assigns the set to the database. Since this is a static function, you do not need to create an PtOnDemandSet to call this function.

Parameters:

PtBase* pBase The database to which the set should be assigned
const PtString& ClassName The name of the class that the set should contain
PtSetType type PtCSET, PtLSET, or PtHSET

Returns:

A pointer to the new set. If the set could not be created, returns 0.

Copyright (c) 1996 POET Software, Inc. All rights reserved. Reproduction in whole or in part in any form or medium without the express permission of POET Software, Inc. is prohibited.