From d8f2d1a627160a47f028ebfb58e8bf1317a36b98 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 13 Jan 2011 11:32:49 +0200 Subject: Cosmetic changes --- container/person.hxx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'container/person.hxx') diff --git a/container/person.hxx b/container/person.hxx index f9160b8..941bfc6 100644 --- a/container/person.hxx +++ b/container/person.hxx @@ -12,6 +12,10 @@ #include +typedef std::vector names; +typedef std::set emails; +typedef std::map age_weight_map; + #pragma db object class person { @@ -35,15 +39,13 @@ public: // Nicknames. // - typedef std::vector name_list; - - const name_list& + const names& nicknames () const { return nicknames_; } - name_list& + names& nicknames () { return nicknames_; @@ -51,15 +53,15 @@ public: // Emails. // - typedef std::set email_set; + typedef ::emails emails_type; - const email_set& + const emails_type& emails () const { return emails_; } - email_set& + emails_type& emails () { return emails_; @@ -67,8 +69,6 @@ public: // Age-to-weight map. // - typedef std::map age_weight_map; - const age_weight_map& age_weight () const { @@ -92,8 +92,8 @@ private: std::string first_; std::string last_; - name_list nicknames_; - email_set emails_; + names nicknames_; + emails_type emails_; age_weight_map age_weight_; }; -- cgit v1.1