replicode
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
r_code::Code Class Referenceabstract

#include <object.h>

Inheritance diagram for r_code::Code:
Inheritance graph
Collaboration diagram for r_code::Code:
Collaboration graph

Public Member Functions

void set_stroage_index (int64_t i)
 
bool is_registered () const
 
int64_t get_storage_index () const
 
virtual uint64_t get_oid () const =0
 
virtual void set_oid (uint64_t oid)=0
 
virtual Atomcode (uint16_t i)=0
 
virtual Atomcode (uint16_t i) const =0
 
virtual uint16_t code_size () const =0
 
virtual void resize_code (uint16_t new_size)=0
 
virtual void set_reference (uint16_t i, Code *object)=0
 
virtual Codeget_reference (uint16_t i) const =0
 
virtual uint16_t references_size () const =0
 
virtual void clear_references ()=0
 
virtual void set_references (std::vector< P< Code > > &new_references)=0
 
virtual bool is_compact () const
 
virtual bool is_invalidated ()
 
virtual bool invalidate ()
 
virtual Viewbuild_view (SysView *source)=0
 
virtual void acq_views ()
 
virtual void rel_views ()
 
virtual void acq_markers ()
 
virtual void rel_markers ()
 
virtual double get_psln_thr ()
 
 Code ()
 
virtual ~Code ()
 
virtual void mod (uint16_t member_index, double value)
 
virtual void set (uint16_t member_index, double value)
 
virtual Viewget_view (Code *group, bool lock)
 
virtual void add_reference (Code *object) const
 
void remove_marker (Code *m)
 
void trace () const
 
- Public Member Functions inherited from core::_Object
virtual ~_Object ()
 
void incRef ()
 
virtual void decRef ()
 

Public Attributes

r_code::list< Code * > markers
 
std::unordered_set< View *, View::Hash, View::Equalviews
 

Static Public Attributes

static const int64_t null_storage_index = -1
 
static const uint64_t CodeMarkersInitialSize = 8
 

Protected Member Functions

void load (SysObject *source)
 
template<class V >
Viewbuild_view (SysView *source)
 
- Protected Member Functions inherited from core::_Object
 _Object ()
 

Protected Attributes

int64_t storage_index
 
- Protected Attributes inherited from core::_Object
std::atomic_int_fast64_t refCount
 

Constructor & Destructor Documentation

r_code::Code::Code ( )
inline

Here is the call graph for this function:

virtual r_code::Code::~Code ( )
inlinevirtual

Member Function Documentation

virtual void r_code::Code::acq_markers ( )
inlinevirtual

Reimplemented in r_exec::Object< r_code::LObject, LObject >.

Here is the caller graph for this function:

virtual void r_code::Code::acq_views ( )
inlinevirtual

Reimplemented in r_exec::Object< r_code::LObject, LObject >.

Here is the caller graph for this function:

virtual void r_code::Code::add_reference ( Code object) const
inlinevirtual

Reimplemented in r_code::LObject.

Here is the caller graph for this function:

template<class V >
View* r_code::Code::build_view ( SysView source)
inlineprotected

Here is the caller graph for this function:

virtual View* r_code::Code::build_view ( SysView source)
pure virtual

Implemented in r_code::LObject.

virtual void r_code::Code::clear_references ( )
pure virtual

Implemented in r_code::LObject.

virtual Atom& r_code::Code::code ( uint16_t  i)
pure virtual

Implemented in r_code::LObject.

virtual Atom& r_code::Code::code ( uint16_t  i) const
pure virtual

Implemented in r_code::LObject.

virtual uint16_t r_code::Code::code_size ( ) const
pure virtual

Implemented in r_code::LObject.

Here is the caller graph for this function:

virtual uint64_t r_code::Code::get_oid ( ) const
pure virtual

Implemented in r_code::LObject.

Here is the caller graph for this function:

virtual double r_code::Code::get_psln_thr ( )
inlinevirtual

Reimplemented in r_exec::Object< r_code::LObject, LObject >.

Here is the caller graph for this function:

virtual Code* r_code::Code::get_reference ( uint16_t  i) const
pure virtual

Implemented in r_code::LObject.

int64_t r_code::Code::get_storage_index ( ) const
inline

Here is the caller graph for this function:

virtual View* r_code::Code::get_view ( Code group,
bool  lock 
)
inlinevirtual

Here is the caller graph for this function:

virtual bool r_code::Code::invalidate ( )
inlinevirtual
virtual bool r_code::Code::is_compact ( ) const
inlinevirtual
virtual bool r_code::Code::is_invalidated ( )
inlinevirtual

Reimplemented in r_exec::ICST, r_exec::Goal, r_exec::Pred, r_exec::_Fact, and r_exec::Object< r_code::LObject, LObject >.

Here is the caller graph for this function:

bool r_code::Code::is_registered ( ) const
inline

Here is the caller graph for this function:

void r_code::Code::load ( SysObject source)
inlineprotected

Here is the call graph for this function:

virtual void r_code::Code::mod ( uint16_t  member_index,
double  value 
)
inlinevirtual
virtual uint16_t r_code::Code::references_size ( ) const
pure virtual

Implemented in r_code::LObject.

Here is the caller graph for this function:

virtual void r_code::Code::rel_markers ( )
inlinevirtual

Reimplemented in r_exec::Object< r_code::LObject, LObject >.

Here is the caller graph for this function:

virtual void r_code::Code::rel_views ( )
inlinevirtual

Reimplemented in r_exec::Object< r_code::LObject, LObject >.

Here is the caller graph for this function:

void r_code::Code::remove_marker ( Code m)
inline

Here is the call graph for this function:

virtual void r_code::Code::resize_code ( uint16_t  new_size)
pure virtual

Implemented in r_code::LObject.

Here is the caller graph for this function:

virtual void r_code::Code::set ( uint16_t  member_index,
double  value 
)
inlinevirtual
virtual void r_code::Code::set_oid ( uint64_t  oid)
pure virtual

Implemented in r_code::LObject.

virtual void r_code::Code::set_reference ( uint16_t  i,
Code object 
)
pure virtual

Implemented in r_code::LObject.

Here is the caller graph for this function:

virtual void r_code::Code::set_references ( std::vector< P< Code > > &  new_references)
pure virtual

Implemented in r_code::LObject.

Here is the caller graph for this function:

void r_code::Code::set_stroage_index ( int64_t  i)
inline
void r_code::Code::trace ( ) const
inline

Member Data Documentation

const uint64_t r_code::Code::CodeMarkersInitialSize = 8
static
r_code::list<Code *> r_code::Code::markers
const int64_t r_code::Code::null_storage_index = -1
static
int64_t r_code::Code::storage_index
protected
std::unordered_set<View *, View::Hash, View::Equal> r_code::Code::views

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