3 #include "stat_private.h"
10 Stat::Stat(const Stat &other):
14 alloc_size(other.alloc_size),
16 owner_info(other.owner_info),
17 priv(other.priv ? new Private(*other.priv) : nullptr)
20 Stat &Stat::operator=(const Stat &other)
25 exists = other.exists;
28 alloc_size = other.alloc_size;
30 owner_info = other.owner_info;
32 priv = (other.priv ? new Private(*other.priv) : nullptr);
42 const string &Stat::get_owner() const
44 if(priv && owner_info.owner.empty())
45 priv->fill_owner_info(owner_info);
46 return owner_info.owner;
49 const string &Stat::get_group() const
51 if(priv && owner_info.group.empty())
52 priv->fill_owner_info(owner_info);
53 return owner_info.group;