nany
Public Member Functions | Public Attributes | Friends | List of all members
ny::AtomMap Struct Referencefinal

Atoms. More...

#include <atom-map.h>

Public Member Functions

AtomcreateNamespace (Atom &parent, const AnyString &name)
 Create a new atom related to a part of a namespace.
 
AtomcreateFuncdef (Atom &parent, const AnyString &name)
 Create a new atom related to a function.
 
AtomcreateClassdef (Atom &parent, const AnyString &name)
 Create a new atom related to a class.
 
AtomcreateVardef (Atom &parent, const AnyString &name)
 Create a new atom related to a variable.
 
AtomcreateTypealias (Atom &parent, const AnyString &name)
 Create a new atom related to a type alias.
 
AtomcreateUnit (Atom &parent, const AnyString &name)
 Create a new atom related to an unit (source file)
 
const ir::SequenceircodeIfExists (uint32_t atomid, uint32_t index) const
 Find the IR sequence for a given {atomid/instanceid} (null if not found)
 
const ir::Sequenceircode (uint32_t atomid, uint32_t index) const
 Find the IR code for a given {atomid/instanceid}.
 
AnyString symbolname (uint32_t atomid, uint32_t index) const
 Retrieve the human readable name of an atom (empty if not found)
 
yuni::Ref< AtomfindAtom (uint32_t atomid) const
 Retrive an Atom object from its unique id (const)
 
yuni::Ref< AtomfindAtom (uint32_t atomid)
 Retrive an Atom object from its unique id.
 
bool fetchAndIndexCoreObjects ()
 Try to retrieve the corresponding classes for core objects (bool, i32...)
 

Public Attributes

Atom root
 The root atom (global namespace)
 
StringRefsstringrefs
 String catalog.
 
struct {
   yuni::Ref< Atom >   object [nyt_count]
 
core
 

Friends

struct ClassdefTable
 

Detailed Description

Atoms.

Note
This class is not thread-safe

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