libabigail
Public Member Functions | List of all members
tuple_property_value Class Reference

A property value that is a tuple. More...

#include <abg-ini.h>

Inheritance diagram for tuple_property_value:
[legend]

Public Member Functions

 tuple_property_value (const vector< property_value_sptr > &)
 Constructor for the tuple_property_value type. More...
 
virtual ~tuple_property_value ()
 Destructor of the tuple_property_value type. More...
 
virtual const string & as_string () const
 Convert to the instance of tuple_property_value to a string. More...
 
vector< property_value_sptr > & get_value_items ()
 Getter for the content of the tuple_property_value instance. More...
 
const vector< property_value_sptr > & get_value_items () const
 Getter for the content of the tuple_property_value instance. More...
 
 operator string () const
 
- Public Member Functions inherited from property_value
 property_value ()
 Default constructor for the property_value type. More...
 
 property_value (value_kind)
 Constructor for the property_value type. More...
 
virtual ~property_value ()
 Destructor for the proprerty_value type. More...
 
virtual const string & as_string () const =0
 
value_kind get_kind () const
 Getter for the kind of the property_value type. More...
 
 operator const string & () const
 Converts the current property value to a string. More...
 

Additional Inherited Members

- Public Types inherited from property_value
enum  value_kind { ABSTRACT_PROPERTY_VALUE , STRING_PROPERTY_VALUE , LIST_PROPERTY_VALUE , TUPLE_PROPERTY_VALUE }
 

Detailed Description

A property value that is a tuple.

Each element of the tuple is itself a property value that can either be a string, or another tuple, for instance.

Definition at line 176 of file abg-ini.h.

Constructor & Destructor Documentation

◆ tuple_property_value()

tuple_property_value ( const vector< property_value_sptr > &  v)

Constructor for the tuple_property_value type.

Parameters
vthe tuple content of the value.

Definition at line 472 of file abg-ini.cc.

◆ ~tuple_property_value()

~tuple_property_value ( )
virtual

Destructor of the tuple_property_value type.

Definition at line 492 of file abg-ini.cc.

Member Function Documentation

◆ as_string()

const string & as_string ( ) const
virtual

Convert to the instance of tuple_property_value to a string.

Returns
the string representation of the tuple_property_value.

Implements property_value.

Definition at line 499 of file abg-ini.cc.

◆ get_value_items() [1/2]

vector< property_value_sptr > & get_value_items ( )

Getter for the content of the tuple_property_value instance.

Returns
the content of the tuple_property_value instance.

Definition at line 488 of file abg-ini.cc.

◆ get_value_items() [2/2]

const vector< property_value_sptr > & get_value_items ( ) const

Getter for the content of the tuple_property_value instance.

Returns
the content of the tuple_property_value instance.

Definition at line 481 of file abg-ini.cc.


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