ROSE 0.11.145.192
Public Member Functions | Protected Attributes | List of all members
AstTextAttribute Class Reference

Description

Definition at line 14 of file AstTextAttributesHandling.h.

Inheritance diagram for AstTextAttribute:
Inheritance graph
[legend]
Collaboration diagram for AstTextAttribute:
Collaboration graph
[legend]

Public Member Functions

 AstTextAttribute (std::string s)
 
virtual std::string toString ()
 Convert an attribute to a string.
 
- Public Member Functions inherited from AstAttribute
virtual OwnershipPolicy getOwnershipPolicy () const
 Who owns this attribute.
 
virtual AstAttributeconstructor () const
 Virtual default constructor.
 
virtual AstAttributecopy () const
 Virtual copy constructor.
 
virtual AstAttributecopy ()
 
virtual std::string attribute_class_name () const
 Attribute class name.
 
virtual bool commentOutNodeInGraph ()
 Eliminate IR nodes in DOT graphs.
 
virtual int packed_size ()
 Packing support.
 
virtual char * packed_data ()
 Packing support.
 
virtual void unpacked_data (int size, char *data)
 Packing support.
 
virtual std::string additionalNodeOptions ()
 DOT support.
 
virtual std::vector< AttributeEdgeInfoadditionalEdgeInfo ()
 DOT support.
 
virtual std::vector< AttributeNodeInfoadditionalNodeInfo ()
 DOT support.
 

Protected Attributes

std::string source
 

Additional Inherited Members

- Public Types inherited from AstAttribute
enum  OwnershipPolicy {
  CONTAINER_OWNERSHIP ,
  NO_OWNERSHIP ,
  CUSTOM_OWNERSHIP ,
  UNKNOWN_OWNERSHIP
}
 Who owns this attribute. More...
 

Constructor & Destructor Documentation

◆ AstTextAttribute()

AstTextAttribute::AstTextAttribute ( std::string  s)
inline

Definition at line 16 of file AstTextAttributesHandling.h.

Member Function Documentation

◆ toString()

virtual std::string AstTextAttribute::toString ( )
inlinevirtual

Convert an attribute to a string.

This is used by other components to print the value of an attribute. For example the pdf generation calls this function to print the value of an attribute in the pdf file. The default implementation is to return the attribute address in the heap as a string.

Reimplemented from AstAttribute.

Definition at line 17 of file AstTextAttributesHandling.h.

Member Data Documentation

◆ source

std::string AstTextAttribute::source
protected

Definition at line 19 of file AstTextAttributesHandling.h.


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