9 assert(not name.empty());
10 Atom* nmspc = parent.findNamespaceAtom(name);
11 return (nmspc !=
nullptr)
17 assert(not name.empty());
23 assert(not name.empty());
29 assert(not name.empty());
40 assert(atomid < m_byIndex.size());
41 return m_byIndex[atomid]->instances[index].ircode();
46 return (atomid < m_byIndex.size())
52 return atomid < m_byIndex.size() ? m_byIndex[atomid] :
nullptr;
57 return atomid < m_byIndex.size() ? m_byIndex[atomid] :
nullptr;
Atom & createFuncdef(Atom &parent, const AnyString &name)
Create a new atom related to a function.
Definition: atom-map.hxx:16
Atom & createUnit(Atom &parent, const AnyString &name)
Create a new atom related to an unit (source file)
Definition: atom-map.hxx:34
const ir::Sequence * ircodeIfExists(uint32_t atomid, uint32_t index) const
Find the IR sequence for a given {atomid/instanceid} (null if not found)
Definition: atom-map.hxx:45
yuni::Ref< Atom > findAtom(uint32_t atomid) const
Retrive an Atom object from its unique id (const)
Definition: atom-map.hxx:51
Atom & createNamespace(Atom &parent, const AnyString &name)
Create a new atom related to a part of a namespace.
Definition: atom-map.hxx:8
define a part of a namespace
Definition of a single class or function.
Definition: atom.h:37
Atom & createClassdef(Atom &parent, const AnyString &name)
Create a new atom related to a class.
Definition: atom-map.hxx:22
const ir::Sequence & ircode(uint32_t atomid, uint32_t index) const
Find the IR code for a given {atomid/instanceid}.
Definition: atom-map.hxx:39
Definition: sequence.h:22
Atom & createTypealias(Atom &parent, const AnyString &name)
Create a new atom related to a type alias.
Definition: atom-map.hxx:28