retdec
Public Types | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
retdec::bin2llvmir::Names Class Reference

#include <names.h>

Collaboration diagram for retdec::bin2llvmir::Names:
Collaboration graph
[legend]

Public Types

using iterator = typename std::set< Name >::iterator
 

Public Member Functions

bool addName (Config *c, const std::string &name, Name::eType type, Lti *lti=nullptr)
 
const NamegetPreferredName ()
 
iterator begin ()
 
iterator end ()
 
std::size_t size () const
 
bool empty () const
 

Private Attributes

std::set< Name_names
 

Static Private Attributes

static Name _emptyName
 

Detailed Description

Representation of all the names for one object.

Member Typedef Documentation

◆ iterator

using retdec::bin2llvmir::Names::iterator = typename std::set<Name>::iterator

Member Function Documentation

◆ addName()

bool retdec::bin2llvmir::Names::addName ( Config c,
const std::string &  name,
Name::eType  type,
Lti lti = nullptr 
)

Name is not added if name is empty.

Returns
True if name added, false otherwise.

◆ begin()

Names::iterator retdec::bin2llvmir::Names::begin ( )

◆ empty()

bool retdec::bin2llvmir::Names::empty ( ) const

◆ end()

Names::iterator retdec::bin2llvmir::Names::end ( )

◆ getPreferredName()

const Name & retdec::bin2llvmir::Names::getPreferredName ( )

◆ size()

std::size_t retdec::bin2llvmir::Names::size ( ) const

Member Data Documentation

◆ _emptyName

Name retdec::bin2llvmir::Names::_emptyName
staticprivate

◆ _names

std::set<Name> retdec::bin2llvmir::Names::_names
private

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