Skip to content

CloneContext

INCLUDE FILE
#include "CloneContext.h"

class CloneContext

DEFINITION
class CloneContext;

constructor CloneContext

DEFINITION
CloneContext ( );

constructor CloneContext

DEFINITION
CloneContext ( std::shared_ptr< Scope >  containing_scope,
const CloneContext * parent = nullptr );
PARAMETERDESCRIPTION
containing_scope
parent

method add_mapping

DEFINITION
void  add_mapping ( const std::shared_ptr< Constant > & original,
const std::shared_ptr< Constant > & clone );
PARAMETERDESCRIPTION
original
clone

method mapconst

DEFINITION
std::shared_ptr< Constant >  map ( const std::shared_ptr< Constant > & constant ) const;
PARAMETERDESCRIPTION
constant
RETURNSDESCRIPTION
std::shared_ptr< Constant >

member constant_mapprivate

DEFINITION
std::unordered_map< std::shared_ptr< Constant >, std::shared_ptr< Constant > >  constant_map;

member containing_scope

DEFINITION
std::shared_ptr< Scope >  containing_scope;

member parentprivate

DEFINITION
const CloneContext * parent;