Class bean_ptr

Synopsis

#include <include/bean_ptr.h>

template<class C>
class bean_ptr : public shared_res< real_bean<C> >

Description

No description yet.

Mentioned in

Inheritance

Ancestors: shared_res

Methods

bean_ptr overload
destroy

Mentioned in

destroyed
get_id

Mentioned in

operator bool
operator*
operator->
operator=
save

Source

Lines 42-74 in include/bean_ptr.h.

template<class C>
class bean_ptr : public shared_res< real_bean<C> >
{
    friend class hiberlite::access;
    template<class Archive>
    void hibernate(Archive & ar);

    friend class Registry<C>;
    bean_ptr(bean_key k, rb_pair<C>* rbpair);

    sqlid_t tmp_id;

    public:
        bean_ptr(bean_key k);

        bean_ptr();

        operator bool() const;

        bean_ptr(const bean_ptr<C>& other);
        bean_ptr<C>& operator=(const bean_ptr<C>& other);

        void save();
        void destroy();

        bool destroyed() {
            return shared_res< real_bean<C> >::get_object()->destroyed();
        }

        inline sqlid_t get_id();
        inline C& operator*();
        inline C* operator->();
};





Add Discussion as Guest

Log in