home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C Programming Starter Kit 2.0
/
SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso
/
bc45
/
clobss.pak
/
DICT.CPO
< prev
next >
Wrap
Text File
|
1997-07-23
|
1KB
|
43 lines
/*------------------------------------------------------------------------*/
/* */
/* DICT.CPP */
/* */
/* Copyright Borland International 1991, 1993 */
/* All Rights Reserved */
/* */
/*------------------------------------------------------------------------*/
#if !defined( __IOSTREAM_H )
#include <iostream.h>
#endif // __IOSTREAM_H
#if !defined( __ASSOC_H )
#include "classlib\obsolete\assoc.h"
#endif // __ASSOC_H
#if !defined( __DICT_H )
#include "classlib\obsolete\dict.h"
#endif // __DICT_H
#if !defined( __CLSTYPES_H )
#include "classlib\obsolete\clstypes.h"
#endif // __CLSTYPES_H
void Dictionary::add( Object _FAR & objectToAdd )
{
if( !objectToAdd.isAssociation() )
ClassLib_error( __ENOTASSOC );
else
Set::add( objectToAdd );
}
Association _FAR & Dictionary::lookup( const Object _FAR & toLookUp ) const
{
Association toFind( (Object&)toLookUp, NOOBJECT );
toFind.ownsElements(0);
Association& found = (Association&)findMember( toFind );
return found;
}