Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

TupleType Class Reference

#include <Type.h>

Inheritance diagram for TupleType:

Type Rep List of all members.

Public Member Functions

string toString () const
bool isBasetype () const
constTypePtr matchFlex (constTypePtr type, unsigned int number=0) const
int match (constTypePtr expected) const
bool equals (constTypePtr expected) const
bool canCast (constTypePtr to) const
TypePtr clone () const
constTypePtr unflex (constTypePtr type, unsigned int number=0) const
std::ostream & toStream (std::ostream &str) const
 TupleType (constTypePtr type, bool as_const=false)
 TupleType (std::istream &str)
void concat (constTypePtr t)
unsigned int parameterCount () const
constTypePtr parameterType (unsigned int parameter_number) const
 ~TupleType ()

Protected Attributes

std::vector< constTypePtr > m_types

Private Member Functions

 REP_BODY (TupleType)

Constructor & Destructor Documentation

TupleType::TupleType constTypePtr  type,
bool  as_const = false
 

TupleType::TupleType std::istream &  str  ) 
 

TupleType::~TupleType  ) 
 


Member Function Documentation

bool TupleType::canCast constTypePtr  to  )  const [virtual]
 

check, if the type can be casted (at runtime considered to be - similar to dynamic_cast) to another type

Reimplemented from Type.

TypePtr TupleType::clone  )  const [virtual]
 

clone this type

Reimplemented from Type.

void TupleType::concat constTypePtr  t  ) 
 

bool TupleType::equals constTypePtr  expected  )  const [virtual]
 

check equality of the types, without any assumptions like any == unspec

Reimplemented from Type.

bool TupleType::isBasetype  )  const [inline, virtual]
 

Reimplemented from Type.

int TupleType::match constTypePtr  expected  )  const [virtual]
 

check match with expected type <0: no match, ==0: full match, >0: propagated match

Reimplemented from Type.

constTypePtr TupleType::matchFlex constTypePtr  type,
unsigned int  number = 0
const [virtual]
 

Reimplemented from Type.

unsigned int TupleType::parameterCount  )  const [inline]
 

constTypePtr TupleType::parameterType unsigned int  parameter_number  )  const
 

TupleType::REP_BODY TupleType   )  [private]
 

std::ostream & TupleType::toStream std::ostream &  str  )  const [virtual]
 

write out to stream

Reimplemented from Type.

string TupleType::toString  )  const [virtual]
 

Converts a type code to its YCP notation.

Reimplemented from Type.

constTypePtr TupleType::unflex constTypePtr  type,
unsigned int  number = 0
const [virtual]
 

replace any 'FlexT' (number == 0) or 'NFlexT' (number != 0) with 'type'

Reimplemented from Type.


Member Data Documentation

std::vector<constTypePtr> TupleType::m_types [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:24 2007 for yast2-core by doxygen 1.3.6