Function getAllBeans

Synopsis

#include <include/Database.h>

template <class C>
std::vector< bean_ptr< C > > getAllBeans()

Description

No description yet.

Mentioned in

Source

Lines 87-97 in include/Database_tmpl_impl.hpp. Line 77 in include/Database.h.

template<class C>
std::vector< bean_ptr<C> > Database::getAllBeans()
{
    std::vector<sqlid_t> ids=getBeanIds<C>();
    size_t N=ids.size();
    std::vector< bean_ptr<C> > ans;
    ans.reserve(N);
    for(size_t i=0;i<N;i++)
        ans.push_back( loadBean<C>(ids[i]) );
    return ans;
}





Add Discussion as Guest

Log in