List of all members | Public Member Functions | Friends
casadi::GenericWeakRef< Shared, Internal > Class Template Reference

#include <generic_shared.hpp>

Detailed Description

template<typename Shared, typename Internal>
class casadi::GenericWeakRef< Shared, Internal >

Definition at line 142 of file generic_shared.hpp.

Inheritance diagram for casadi::GenericWeakRef< Shared, Internal >:
Inheritance graph
[legend]

Public Member Functions

 GenericWeakRef (int dummy=0)
 Default constructor. More...
 
 GenericWeakRef (Shared shared)
 Construct from a shared object (also implicit type conversion) More...
 
Shared shared () const
 Get a shared (owning) reference. More...
 
bool alive () const
 Check if alive. More...
 
bool shared_if_alive (Shared &shared) const
 Thread-safe alternative to alive()/shared() More...
 
GenericWeakRefInternal< Shared, Internal > * operator-> ()
 Access functions of the node. More...
 
const GenericWeakRefInternal< Shared, Internal > * operator-> () const
 Const access functions of the node. More...
 
std::string debug_repr () const
 
bool is_null () const
 Is a null pointer? More...
 
casadi_int __hash__ () const
 Returns a number that is unique for a given Node. More...
 

Friends

class GenericSharedInternal< Shared, Internal >
 

Constructor & Destructor Documentation

◆ GenericWeakRef() [1/2]

template<typename Shared , typename Internal >
casadi::GenericWeakRef< Shared, Internal >::GenericWeakRef ( int  dummy = 0)

◆ GenericWeakRef() [2/2]

template<typename Shared , typename Internal >
casadi::GenericWeakRef< Shared, Internal >::GenericWeakRef ( Shared  shared)

Member Function Documentation

◆ __hash__()

template<typename Shared , typename Internal >
casadi_int casadi::GenericShared< Shared, Internal >::__hash__
inherited

If the Object does not point to any node, "0" is returned.

Extra doc: https://github.com/casadi/casadi/wiki/L_av

Definition at line 137 of file generic_shared_impl.hpp.

◆ alive()

template<typename Shared , typename Internal >
bool casadi::GenericWeakRef< Shared, Internal >::alive

◆ debug_repr()

template<typename Shared , typename Internal >
std::string casadi::GenericShared< Shared, Internal >::debug_repr
inherited

Definition at line 80 of file generic_shared_impl.hpp.

◆ is_null()

template<typename Shared , typename Internal >
bool casadi::GenericShared< Shared, Internal >::is_null
inherited

Definition at line 109 of file generic_shared_impl.hpp.

◆ operator->() [1/2]

template<typename Shared , typename Internal >
GenericWeakRefInternal< Shared, Internal > * casadi::GenericWeakRef< Shared, Internal >::operator->

◆ operator->() [2/2]

template<typename Shared , typename Internal >
const GenericWeakRefInternal< Shared, Internal > * casadi::GenericWeakRef< Shared, Internal >::operator->

◆ shared()

template<typename Shared , typename Internal >
Shared casadi::GenericWeakRef< Shared, Internal >::shared

◆ shared_if_alive()

template<typename Shared , typename Internal >
bool casadi::GenericWeakRef< Shared, Internal >::shared_if_alive ( Shared &  shared) const

Friends And Related Function Documentation

◆ GenericSharedInternal< Shared, Internal >

template<typename Shared , typename Internal >
friend class GenericSharedInternal< Shared, Internal >
friend

Definition at line 124 of file generic_shared.hpp.


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