Predator  [unstable] git snapshot
Public Member Functions | Private Attributes | Friends
CustomValue Class Reference

representation of a custom value, such as integer literal, or code pointer More...

#include <symheap.hh>

Collaboration diagram for CustomValue:
Collaboration graph
[legend]

Public Member Functions

 CustomValue ()
 ~CustomValue ()
 CustomValue (const CustomValue &)
CustomValueoperator= (const CustomValue &)
 CustomValue (int uid)
 CustomValue (const IR::Range &rng)
 CustomValue (const double fpn)
 CustomValue (const char *str)
ECustomValue code () const
 custom value classification
int uid () const
 unique ID as assigned by Code Listener (only for CV_FNC)
IR::Rangerng ()
 closed interval over integral domain (only for CV_INT_RANGE)
const IR::Rangerng () const
 closed interval over integral domain (only for CV_INT_RANGE)
double fpn () const
 floating-point number (only for CV_REAL)
const std::string & str () const
 string literal (only for CV_STRING)

Private Attributes

ECustomValue code_
CustomValueData data_

Friends

bool operator== (const CustomValue &, const CustomValue &)

Detailed Description

representation of a custom value, such as integer literal, or code pointer

Definition at line 114 of file symheap.hh.

Constructor & Destructor Documentation

CustomValue ( )
inline

Definition at line 117 of file symheap.hh.

CustomValue ( const CustomValue )
CustomValue ( int  uid)
inlineexplicit

Definition at line 126 of file symheap.hh.

References data_, CustomValueData::uid, and uid().

CustomValue ( const IR::Range rng)
inlineexplicit

Definition at line 132 of file symheap.hh.

References data_, CustomValueData::rng, and rng().

CustomValue ( const double  fpn)
inlineexplicit

Definition at line 138 of file symheap.hh.

References data_, CustomValueData::fpn, and fpn().

CustomValue ( const char *  str)
inlineexplicit

Definition at line 144 of file symheap.hh.

References data_, and CustomValueData::str.

Member Function Documentation

ECustomValue code ( ) const
inline

custom value classification

Definition at line 151 of file symheap.hh.

References code_.

double fpn ( ) const

floating-point number (only for CV_REAL)

Referenced by CustomValue().

CustomValue& operator= ( const CustomValue )
IR::Range& rng ( )

closed interval over integral domain (only for CV_INT_RANGE)

Referenced by CustomValue(), and rng().

const IR::Range& rng ( ) const
inline

closed interval over integral domain (only for CV_INT_RANGE)

Definition at line 162 of file symheap.hh.

References rng().

const std::string& str ( ) const

string literal (only for CV_STRING)

int uid ( ) const

unique ID as assigned by Code Listener (only for CV_FNC)

Referenced by CustomValue().

Friends And Related Function Documentation

bool operator== ( const CustomValue ,
const CustomValue  
)
friend

Field Documentation

ECustomValue code_
private

Definition at line 175 of file symheap.hh.

Referenced by code().

CustomValueData data_
private

Definition at line 176 of file symheap.hh.

Referenced by CustomValue().


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