|
Public Types |
| typedef enum Type::type_kind | tkind |
| enum | type_kind {
UnspecT = 0,
ErrorT,
AnyT,
BooleanT,
ByteblockT,
FloatT,
IntegerT,
LocaleT,
PathT,
StringT,
SymbolT,
TermT,
VoidT,
WildcardT,
FlexT,
VariableT,
ListT,
MapT,
BlockT,
TupleT,
FunctionT,
NilT,
NFlexT
} |
Public Member Functions |
| | Type () |
| | Type (tkind kind, bytecodeistream &str) |
| virtual | ~Type () |
| virtual string | toString () const |
| virtual std::ostream & | toStream (std::ostream &str) const |
| virtual bool | isBasetype () const |
| virtual constTypePtr | matchFlex (constTypePtr type, unsigned int number=0) const |
| virtual int | match (constTypePtr expected) const |
| virtual int | matchvalue (YCPValue value) const |
| virtual bool | canCast (constTypePtr to) const |
| virtual TypePtr | clone () const |
| virtual constTypePtr | unflex (constTypePtr type, unsigned int number=0) const |
| string | preToString () const |
| string | postToString () const |
| bool | isConst () const |
| void | asConst () |
| bool | isReference () const |
| void | asReference () |
| int | basematch (constTypePtr expected) const |
| virtual bool | equals (constTypePtr expected) const |
| bool | isUnspec () const |
| bool | isError () const |
| bool | isAny () const |
| bool | isBoolean () const |
| bool | isByteblock () const |
| bool | isFloat () const |
| bool | isInteger () const |
| bool | isLocale () const |
| bool | isPath () const |
| bool | isString () const |
| bool | isSymbol () const |
| bool | isTerm () const |
| bool | isVoid () const |
| bool | isWildcard () const |
| bool | isFlex () const |
| bool | isNFlex () const |
| bool | isVariable () const |
| bool | isList () const |
| bool | isMap () const |
| bool | isBlock () const |
| bool | isTuple () const |
| bool | isFunction () const |
| bool | isNil () const |
| YCPValueType | valueType () const |
| virtual constTypePtr | commontype (constTypePtr type) const |
| virtual constTypePtr | detailedtype (constTypePtr type) const |
Static Public Member Functions |
| static void | setNocheck (bool nocheck) |
| static constTypePtr | vt2type (enum YCPValueType vt) |
| static int | nextToken (const char **signature) |
| static constTypePtr | fromSignature (const char **signature) |
| static constTypePtr | fromSignature (const string &signature) |
| static constTypePtr | determineFlexType (constFunctionTypePtr actual, constFunctionTypePtr declared) |
| static FunctionTypePtr | Function (constTypePtr return_type) |
Static Public Attributes |
| static const constTypePtr | Unspec = TypePtr ( new Type (UnspecT)) |
| static const constTypePtr | Error = TypePtr ( new Type (ErrorT)) |
| static const constTypePtr | Any = TypePtr ( new Type (AnyT)) |
| static const constTypePtr | Void = TypePtr ( new Type (VoidT)) |
| static const constTypePtr | Boolean = TypePtr ( new Type (BooleanT)) |
| static const constTypePtr | Byteblock = TypePtr ( new Type (ByteblockT)) |
| static const constTypePtr | Float = TypePtr ( new Type (FloatT)) |
| static const constTypePtr | Integer = TypePtr ( new Type (IntegerT)) |
| static const constTypePtr | Locale = TypePtr ( new Type (LocaleT)) |
| static const constTypePtr | Path = TypePtr ( new Type (PathT)) |
| static const constTypePtr | String = TypePtr ( new Type (StringT)) |
| static const constTypePtr | Symbol = TypePtr ( new Type (SymbolT)) |
| static const constTypePtr | Term = TypePtr ( new Type (TermT)) |
| static const constTypePtr | Wildcard = TypePtr ( new Type (WildcardT)) |
| static const constTypePtr | ConstAny = TypePtr ( new Type (AnyT, true)) |
| static const constTypePtr | ConstVoid = TypePtr ( new Type (VoidT, true)) |
| static const constTypePtr | ConstBoolean = TypePtr ( new Type (BooleanT, true)) |
| static const constTypePtr | ConstByteblock = TypePtr ( new Type (ByteblockT, true)) |
| static const constTypePtr | ConstFloat = TypePtr ( new Type (FloatT, true)) |
| static const constTypePtr | ConstInteger = TypePtr ( new Type (IntegerT, true)) |
| static const constTypePtr | ConstLocale = TypePtr ( new Type (LocaleT, true)) |
| static const constTypePtr | ConstPath = TypePtr ( new Type (PathT, true)) |
| static const constTypePtr | ConstString = TypePtr ( new Type (StringT, true)) |
| static const constTypePtr | ConstSymbol = TypePtr ( new Type (SymbolT, true)) |
| static const constTypePtr | ConstTerm = TypePtr ( new Type (TermT, true)) |
| static const constTypePtr | ConstList = TypePtr ( new Type (ListT, true)) |
| static const constTypePtr | ConstMap = TypePtr ( new Type (MapT, true)) |
| static const constTypePtr | Flex = TypePtr ( new FlexType()) |
| static const constTypePtr | ConstFlex = TypePtr ( new FlexType (true)) |
| static const constTypePtr | NFlex1 = TypePtr ( new NFlexType(1)) |
| static const constTypePtr | ConstNFlex1 = TypePtr ( new NFlexType (1, true)) |
| static const constTypePtr | NFlex2 = TypePtr ( new NFlexType(2)) |
| static const constTypePtr | ConstNFlex2 = TypePtr ( new NFlexType (2, true)) |
| static const constTypePtr | NFlex3 = TypePtr ( new NFlexType(3)) |
| static const constTypePtr | ConstNFlex3 = TypePtr ( new NFlexType (3, true)) |
| static const constTypePtr | NFlex4 = TypePtr ( new NFlexType(4)) |
| static const constTypePtr | ConstNFlex4 = TypePtr ( new NFlexType (4, true)) |
| static const constTypePtr | ListUnspec = new ListType (Type::Unspec) |
| static const constTypePtr | List = new ListType (Type::Any) |
| static const constTypePtr | MapUnspec = new MapType (Type::Unspec, Type::Unspec) |
| static const constTypePtr | Map = new MapType (Type::Any, Type::Any) |
| static const constTypePtr | Variable = new VariableType (Type::Any) |
| static const constTypePtr | Block = new BlockType (Type::Any) |
| static const constTypePtr | Nil = TypePtr ( new Type (NilT)) |
Protected Member Functions |
| | Type (tkind kind, bool as_const =false, bool as_reference=false) |
Protected Attributes |
| tkind | m_kind |
| bool | m_const |
| bool | m_reference |
Private Member Functions |
| | REP_BODY (Type) |
| tkind | kind () const |