BlockType Class Reference

#include <Type.h>

Inheritance diagram for BlockType:

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
constTypePtr returnType () const
std::ostream & toStream (std::ostream &str) const
 BlockType (constTypePtr type, bool as_const =false)
 BlockType (bytecodeistream &str)
 ~BlockType ()

Private Member Functions

 REP_BODY (BlockType)

Private Attributes

const constTypePtr m_type

Constructor & Destructor Documentation

BlockType::BlockType constTypePtr  type,
bool  as_const = false
 

BlockType::BlockType bytecodeistream str  ) 
 

BlockType::~BlockType  ) 
 


Member Function Documentation

bool BlockType::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 BlockType::clone  )  const [virtual]
 

clone this type

Reimplemented from Type.

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

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

Reimplemented from Type.

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

Reimplemented from Type.

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

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

Reimplemented from Type.

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

Reimplemented from Type.

BlockType::REP_BODY BlockType   )  [private]
 

constTypePtr BlockType::returnType  )  const [inline]
 

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

write out to stream

Reimplemented from Type.

string BlockType::toString  )  const [virtual]
 

Converts a type code to its YCP notation.

Reimplemented from Type.

constTypePtr BlockType::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

const constTypePtr BlockType::m_type [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:46 2006 for yast2-core by  doxygen 1.4.6