ElfReader: Add support for getting a section iterator

Change-Id: I6241ea2de9da1a1e709fae6374df4fc06ef26aaa
This commit is contained in:
Christian Dietrich
2013-04-28 12:43:56 +02:00
parent 11d9690a67
commit 2753a165ba

View File

@ -80,6 +80,8 @@ namespace fail {
typedef ElfSymbol entry_t;
typedef std::vector<entry_t> container_t;
typedef container_t::const_iterator symbol_iterator;
typedef container_t::const_iterator section_iterator;
/**
* Constructor.
@ -144,6 +146,14 @@ namespace fail {
container_t::const_iterator sym_begin() { return m_symboltable.begin(); }
container_t::const_iterator sym_end() { return m_symboltable.end(); }
/**
* Get section iterator. Derefences to a ElfSymbol
* @return iterator
*/
container_t::const_iterator sec_begin() { return m_sectiontable.begin(); }
container_t::const_iterator sec_end() { return m_sectiontable.end(); }
private:
Logger m_log;