comma::DomainType Class Reference

#include <Type.h>

Inheritance diagram for comma::DomainType:
Inheritance graph
[legend]
Collaboration diagram for comma::DomainType:
Collaboration graph
[legend]

List of all members.

Public Member Functions

IdentifierInfogetIdInfo () const
 Returns the defining identifier of this type.
const char * getString () const
 Returns the defining identifier of this type as a C-string.
bool denotesPercent () const
 Returns true if this node is a percent node.
bool isConcrete () const
 Returns true if the underlying declaration is an DomainInstanceDecl.
bool isAbstract () const
 Returns true if the underlying declaration is an AbstractDomainDecl.
const DomainTypeDeclgetDomainTypeDecl () const
 Return the associated DomainTypeDecl.
DomainTypeDeclgetDomainTypeDecl ()
const DomainInstanceDeclgetInstanceDecl () const
DomainInstanceDeclgetInstanceDecl ()



const PercentDeclgetPercentDecl () const
 If this node represents %, return the associated PercentDecl, else null.
PercentDeclgetPercentDecl ()
 If this node represents %, return the associated PercentDecl, else null.
const AbstractDomainDeclgetAbstractDecl () const
AbstractDomainDeclgetAbstractDecl ()
 If this node represents %, return the associated PercentDecl, else null.
const PrimaryTypegetRepresentationType () const
PrimaryTypegetRepresentationType ()
 If this node represents %, return the associated PercentDecl, else null.
DomainTypegetRootType ()
 Specialize PrimaryType::getRootType().
const DomainTypegetRootType () const
 If this node represents %, return the associated PercentDecl, else null.

Static Public Member Functions

static bool classof (const DomainType *node)
 Support isa and dyn_cast.
static bool classof (const Ast *node)

Friends

class AstResource
 Domain types are allocated and managed by AstResource.

Detailed Description

Definition at line 509 of file Type.h.


Member Function Documentation

static bool comma::DomainType::classof ( const Ast node  )  [inline, static]

Reimplemented from comma::PrimaryType.

Definition at line 574 of file Type.h.

static bool comma::DomainType::classof ( const DomainType node  )  [inline, static]

Support isa and dyn_cast.

Reimplemented from comma::PrimaryType.

Definition at line 573 of file Type.h.

bool comma::DomainType::denotesPercent (  )  const [inline]

Returns true if this node is a percent node.

Definition at line 519 of file Type.h.

AbstractDomainDecl * DomainType::getAbstractDecl (  ) 

If this node represents %, return the associated PercentDecl, else null.

Definition at line 348 of file Type.cpp.

const AbstractDomainDecl * DomainType::getAbstractDecl (  )  const

If this node is abstract, return underlying AbstractDomainDecl, else null.

Definition at line 343 of file Type.cpp.

DomainTypeDecl * DomainType::getDomainTypeDecl (  ) 

Definition at line 317 of file Type.cpp.

const DomainTypeDecl * DomainType::getDomainTypeDecl (  )  const

Return the associated DomainTypeDecl.

Definition at line 311 of file Type.cpp.

IdentifierInfo * DomainType::getIdInfo (  )  const

Returns the defining identifier of this type.

Definition at line 293 of file Type.cpp.

DomainInstanceDecl * DomainType::getInstanceDecl (  ) 

Definition at line 338 of file Type.cpp.

const DomainInstanceDecl * DomainType::getInstanceDecl (  )  const

If this node is concrete, return the underlying DomainInstanceDecl, else null.

Definition at line 333 of file Type.cpp.

PercentDecl * DomainType::getPercentDecl (  ) 

If this node represents %, return the associated PercentDecl, else null.

Definition at line 328 of file Type.cpp.

const PercentDecl * DomainType::getPercentDecl (  )  const

If this node represents %, return the associated PercentDecl, else null.

Definition at line 323 of file Type.cpp.

PrimaryType * DomainType::getRepresentationType (  ) 

If this node represents %, return the associated PercentDecl, else null.

Definition at line 300 of file Type.cpp.

const PrimaryType* comma::DomainType::getRepresentationType (  )  const [inline]

If this type is associated with a DomainInstanceDecl, returns the representation type of this domain, otherwise null.

Definition at line 556 of file Type.h.

const DomainType* comma::DomainType::getRootType (  )  const [inline]

If this node represents %, return the associated PercentDecl, else null.

Reimplemented from comma::PrimaryType.

Definition at line 567 of file Type.h.

DomainType* comma::DomainType::getRootType (  )  [inline]

Specialize PrimaryType::getRootType().

Reimplemented from comma::PrimaryType.

Definition at line 564 of file Type.h.

const char* comma::DomainType::getString (  )  const [inline]

Returns the defining identifier of this type as a C-string.

Definition at line 516 of file Type.h.

bool comma::DomainType::isAbstract (  )  const [inline]

Returns true if the underlying declaration is an AbstractDomainDecl.

Definition at line 525 of file Type.h.

bool comma::DomainType::isConcrete (  )  const [inline]

Returns true if the underlying declaration is an DomainInstanceDecl.

Definition at line 522 of file Type.h.


Friends And Related Function Documentation

friend class AstResource [friend]

Domain types are allocated and managed by AstResource.

Definition at line 586 of file Type.h.


The documentation for this class was generated from the following files:

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1