Puma::CCandidateInfo Class Reference
#include <Puma/infos/CCandidateInfo.h>
List of all members.
Detailed Description
A
CCandidateInfo object represents 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.
Constructor & Destructor Documentation
Puma::CCandidateInfo::CCandidateInfo |
( |
CFunctionInfo * |
fi |
) |
[inline] |
Construct a new candidate info.
- Parameters:
-
| fi | The function info of the candidate. |
Puma::CCandidateInfo::~CCandidateInfo |
( |
|
) |
[inline] |
Destruct the candidate info.
Member Function Documentation
CFunctionInfo * Puma::CCandidateInfo::Function |
( |
|
) |
const [inline] |
Get the candidate function.
void Puma::CCandidateInfo::Function |
( |
CFunctionInfo * |
fi |
) |
[inline] |
Set the candidate function.
- Parameters:
-
| fi | The candidate function info. |
void Puma::CCandidateInfo::addConvSequence |
( |
CCConvSeq * |
seq |
) |
[inline] |
Add a conversion sequence for an argument. The conversion sequences are added in the order of the argument of the function call.
- Parameters:
-
| 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.
- Parameters:
-
| 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.
- Parameters:
-
| seq | The conversion sequence. |
CCConvSeq * Puma::CCandidateInfo::SecondConvSeq |
( |
|
) |
const [inline] |
Set the second conversion sequence.