Puma Reference Manual | Puma: Puma::CCandidateInfo Class Reference |
#include <Puma/CCandidateInfo.h>
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.
Public Member Functions | |
CCandidateInfo (CFunctionInfo *fi) | |
Constructor. | |
~CCandidateInfo () | |
Destructor. | |
CFunctionInfo * | Function () 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. | |
CCConvSeq * | ConvSequence (unsigned n) |
Get the n-th conversion sequence. | |
void | SecondConvSeq (CCConvSeq *seq) |
Set the second conversion sequence. | |
CCConvSeq * | SecondConvSeq () const |
Get the second conversion sequence. |
Puma::CCandidateInfo::CCandidateInfo | ( | CFunctionInfo * | fi | ) | [inline] |
Constructor.
fi | The candidate function. |
Puma::CCandidateInfo::~CCandidateInfo | ( | ) | [inline] |
Destructor.
CFunctionInfo * Puma::CCandidateInfo::Function | ( | ) | const [inline] |
Get the candidate function.
void Puma::CCandidateInfo::Function | ( | CFunctionInfo * | fi | ) | [inline] |
Set the candidate function.
fi | The candidate function. |
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.
seq | The conversion sequence. |
unsigned Puma::CCandidateInfo::ConvSequences | ( | ) | const [inline] |
Get the number of the conversion sequences.
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.
n | The conversion sequence or NULL if n is invalid. |
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.
seq | The conversion sequence. |
CCConvSeq * Puma::CCandidateInfo::SecondConvSeq | ( | ) | const [inline] |
Get the second conversion sequence.