PandA-2024.02
|
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: http://www.antlr.org/license.html). More...
#include <refcount.hpp>
Data Structures | |
struct | Ref |
Public Member Functions | |
refcount (T *p=0) | |
template<class null_deleter > | |
refcount (T *p, null_deleter &d) | |
refcount (const refcount< T > &other) | |
~refcount () | |
refcount< T > & | operator= (const refcount< T > &other) |
bool | operator== (const refcount< T > &other) |
operator T* () const | |
operator Wrefcount< T > () const | |
T * | operator-> () const |
T * | get () const |
template<class newType > | |
operator refcount< newType > () | |
Private Attributes | |
struct refcount::Ref * | ref |
Friends | |
class | Wrefcount< T > |
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: http://www.antlr.org/license.html).
refcount
is a simple template class useful for passing references to function templates (algorithms) that would usually take copies of their arguments and to get transparent to the programmer all the allocation and deallocation issues. The original class has been extended to support refcount object that does not deallocate the ptr object. This can be useful in case of circular references. In particular, this implementation works similarly to the smart_pointer object when a null deleter is passed to the contructor.
Definition at line 94 of file refcount.hpp.
Definition at line 128 of file refcount.hpp.
|
inlineexplicit |
Definition at line 132 of file refcount.hpp.
Definition at line 136 of file refcount.hpp.
Definition at line 139 of file refcount.hpp.
|
inline |
Definition at line 169 of file refcount.hpp.
Referenced by module::add_event(), module::add_gen_port(), module::add_in_out_port(), module::add_in_port(), module::add_internal_object(), module::add_local_data(), port_o::add_n_ports(), signal_o::add_n_signals(), module::add_out_port(), module::add_process(), module::add_service(), CallGraphManager::AddFunction(), tree_node_index_factory::create_tree_node(), AsnParser::Exec(), AadlParser::Exec(), CreateAddressTranslation::Exec(), GetPointer(), GetPointerS(), tree_helper::op_symbol(), tree_reindexCompare::operator()(), for_each_functor< T, visitor_obj >::operator()(), std::hash< refcount< T > >::operator()(), RefCountOrder< T >::operator()(), operator<<(), Wrefcount< const HLS_manager >::operator=(), refcount< structural_manager >::operator==(), CInitializationParser::Parse(), read_technology_File(), SDCSorter::SDCSorter(), VcdSignalSelection::SelectInternalSignals(), Loop::SetParent(), HDL_manager::write_components(), HDL_manager::write_fsm(), HDL_manager::write_module(), EdgeCWriter::writeRoutineInstructions(), and generic_device::xload_device_parameters().
|
inline |
Definition at line 174 of file refcount.hpp.
|
inline |
Definition at line 157 of file refcount.hpp.
Definition at line 161 of file refcount.hpp.
|
inline |
Definition at line 165 of file refcount.hpp.
Definition at line 145 of file refcount.hpp.
Definition at line 153 of file refcount.hpp.
|
friend |
Definition at line 97 of file refcount.hpp.
|
private |
Referenced by refcount< structural_manager >::operator=().