libabigail

This class is to hold the value of the bound of a subrange. The value can be either signed or unsigned, at least when it comes from DWARF. The class keeps the sign information, but allows users to access the value as signed or unsigned as they see fit. More...
#include <abgir.h>
Public Types  
enum  signedness { UNSIGNED_SIGNEDNESS , SIGNED_SIGNEDNESS } 
Public Member Functions  
bound_value ()  
Default constructor of the array_type_def::subrange_type::bound_value class. More...  
bound_value (int64_t)  
Initialize a signed bound_value with a given value. More...  
bound_value (uint64_t)  
Initialize an unsigned bound_value with a given value. More...  
int64_t  get_signed_value () const 
Getter of the bound value as a signed value. More...  
enum signedness  get_signedness () const 
Getter of the signedness (unsigned VS signed) of the bound value. More...  
uint64_t  get_unsigned_value () 
Getter of the bound value as an unsigned value. More...  
bool  operator== (const bound_value &) const 
Equality operator of the bound value. More...  
void  set_signed (int64_t v) 
Setter of the bound value as signed. More...  
void  set_signedness (enum signedness s) 
Setter of the signedness (unsigned VS signed) of the bound value. More...  
void  set_unsigned (uint64_t v) 
Setter of the bound value as unsigned. More...  
Public Attributes  
union {  
int64_t signed_  
uint64_t unsigned_  
}  v_ 
This class is to hold the value of the bound of a subrange. The value can be either signed or unsigned, at least when it comes from DWARF. The class keeps the sign information, but allows users to access the value as signed or unsigned as they see fit.
bound_value  (  ) 
Default constructor of the array_type_def::subrange_type::bound_value class.
Constructs an unsigned bound_value of value zero.
bound_value  (  uint64_t  v  ) 
Initialize an unsigned bound_value with a given value.
v  the initial bound value. 
bound_value  (  int64_t  v  ) 
Initialize a signed bound_value with a given value.
v  the initial bound value. 
int64_t get_signed_value  (  )  const 
enum array_type_def::subrange_type::bound_value::signedness get_signedness  (  )  const 
uint64_t get_unsigned_value  (  ) 
bool operator==  (  const bound_value &  v  )  const 
void set_signed  (  int64_t  v  ) 
void set_signedness  (  enum signedness  s  ) 
void set_unsigned  (  uint64_t  v  ) 