YCP type <flex> More...
#include <Type.h>
Public Member Functions | |
string | toString () const |
std::ostream & | toStream (std::ostream &str) const |
bool | isBasetype () const |
constTypePtr | matchFlex (constTypePtr type, unsigned int number=0) const |
int | match (constTypePtr expected) const |
TypePtr | clone () const |
constTypePtr | unflex (constTypePtr type, unsigned int number=0) const |
FlexType (bool as_const=false) | |
FlexType (bytecodeistream &str) | |
~FlexType () | |
Private Member Functions | |
REP_BODY (FlexType) |
YCP type <flex>
FlexType::FlexType | ( | bool | as_const = false |
) |
FlexType::FlexType | ( | bytecodeistream & | str | ) |
References y2debug.
FlexType::~FlexType | ( | ) |
TypePtr FlexType::clone | ( | ) | const [virtual] |
bool FlexType::isBasetype | ( | ) | const [inline, virtual] |
Reimplemented from Type.
int FlexType::match | ( | constTypePtr | expected | ) | const [virtual] |
check match with expected type <0: no match, ==0: full match, >0: propagated match
Reimplemented from Type.
References toString(), and y2debug.
constTypePtr FlexType::matchFlex | ( | constTypePtr | type, | |
unsigned int | number = 0 | |||
) | const [virtual] |
Reimplemented from Type.
References toString(), and y2debug.
FlexType::REP_BODY | ( | FlexType | ) | [private] |
std::ostream & FlexType::toStream | ( | std::ostream & | str | ) | const [virtual] |
string FlexType::toString | ( | void | ) | const [virtual] |
Converts a type code to its YCP notation.
Reimplemented from Type.
References Type::postToString(), and Type::preToString().
Referenced by match(), matchFlex(), and unflex().
constTypePtr FlexType::unflex | ( | constTypePtr | type, | |
unsigned int | number = 0 | |||
) | const [virtual] |
replace any 'FlexT' (number == 0) or 'NFlexT' (number != 0) with 'type'
Reimplemented from Type.
References clone(), Type::isConst(), Type::isFlex(), Type::isReference(), toString(), and y2debug.