Puma Reference Manual Puma: Puma::CCandidateInfo Class Reference



Puma::CCandidateInfo Class Reference

Representation of a candidate for the C++ function overload resolution mechanism. More...

#include <Puma/CCandidateInfo.h>

List of all members.

Public Member Functions

 CCandidateInfo (CFunctionInfo *fi)
 Constructor.
 ~CCandidateInfo ()
 Destructor.
CFunctionInfoFunction () const
 Get the candidate function.
void Function (CFunctionInfo *fi)
 Set the candidate function.
void addConvSequence (CCConvSeq *seq)
 Add a conversion sequence for a function argument.
unsigned ConvSequences () const
 Get the number of the conversion sequences.
CCConvSeqConvSequence (unsigned n)
 Get the n-th conversion sequence.
void SecondConvSeq (CCConvSeq *seq)
 Set the second conversion sequence.
CCConvSeqSecondConvSeq () const
 Get the second conversion sequence.

Detailed Description

Representation of a candidate for the C++ function overload resolution mechanism.

Such a candidate stores the candidate function and the conversion sequences of the function call arguments needed to match the function parameter types of the overloaded function.


Constructor & Destructor Documentation

Puma::CCandidateInfo::CCandidateInfo ( CFunctionInfo fi  )  [inline]

Constructor.

Parameters:
fi The candidate function.
Puma::CCandidateInfo::~CCandidateInfo (  )  [inline]

Destructor.


Member Function Documentation

void Puma::CCandidateInfo::addConvSequence ( CCConvSeq seq  )  [inline]

Add a conversion sequence for a function argument.

The conversion sequences are added in the order of the arguments of the function call.

Parameters:
seq The conversion sequence.
CCConvSeq * Puma::CCandidateInfo::ConvSequence ( unsigned  n  )  [inline]

Get the n-th conversion sequence.

The n-th conversion sequence corresponds to the n-th function call argument.

Parameters:
n The conversion sequence or NULL if n is invalid.
unsigned Puma::CCandidateInfo::ConvSequences (  )  const [inline]

Get the number of the conversion sequences.

void Puma::CCandidateInfo::Function ( CFunctionInfo fi  )  [inline]

Set the candidate function.

Parameters:
fi The candidate function.
CFunctionInfo * Puma::CCandidateInfo::Function (  )  const [inline]

Get the candidate function.

CCConvSeq * Puma::CCandidateInfo::SecondConvSeq (  )  const [inline]

Get the second conversion sequence.

void Puma::CCandidateInfo::SecondConvSeq ( CCConvSeq seq  )  [inline]

Set the second conversion sequence.

This is a user-defined conversion by means of a user-defined conversion function.

Parameters:
seq The conversion sequence.



Puma Reference Manual. Created on 11 Sep 2009.