[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

 

LLongComparator



Overview:

LLongComparator is a PowerPlant class that is used for comparing long quantities.

Methods :

The methods in this class are:

 

LLongComparator()  
~LLongComparator()  
Clone()  
Compare()  
GetComparator()  
IsEqualTo()  

Data Members:

The data members in this class are:

 

sLongComparator  
 

Operation:

For information on using this class, refer to LComparator.

Source files:

(Array Classes)

LComparator.h

LComparator.cp

Ancestors:

LComparator

LLongComparator()

Purpose:

The constructor is a placeholder, it doesn't do anything for this class.

Access:

Public

Prototype:

LLongComparator();
Parameters:

None

~LLongComparator()

Purpose:

The destructor is a placeholder, it doesn't do anything for this class.

Access:

Virtual, Public

Prototype:

~LLongComparator();

Clone()

Purpose:

This method behaves identically to Clone() in the base class LComparator.

Compare()

Purpose:

This method compares the contents of the two items to determine the comparison value.

Access:

Virtual, Public

Prototype:

virtual SInt32 Compare(
const void* inItemOne,
const void* inItemTwo,
UInt32 inSizeOne,
UInt32 inSizeTwo) const;
Parameters:

This method has the following parameters:

 

const void*  
inItemOne  
A data pointer to the first item.  
const void*  
inItemTwo  
A data pointer to the second item.  
UInt32  
inSizeOne  
Unused  
UInt32  
inSizeTwo  
Unused  

Return:

SInt32 that indicates one of the following:

GetComparator()

Purpose:

This method behaves identically to GetComparator() in the base class LComparator.

IsEqualTo()

Purpose:

This method detects whether two objects are equal.

Access:

Virtual, Public

Prototype:

virtual Boolean IsEqualTo(
const void* inItemOne,
const void* inItemTwo,
UInt32 inSizeOne,
UInt32 inSizeTwo) const;
Parameters:

This method has the following parameters:

 

const void*  
inItemOne  
A data pointer to the first item.  
const void*  
inItemTwo  
A data pointer to the second item.  
UInt32  
inSizeOne  
Unused  
UInt32  
inSizeTwo  
Unused  

Return:

Boolean indicating true if the items are equal, false otherwise.

sLongComparator

Purpose:

This data member stores the pointer to the comparison "standard" object.

Access:

Protected

Prototype:

static LLongComparator* sLongComparator;

 


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: July 21, 2000