aboutsummaryrefslogtreecommitdiff
path: root/container/person.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-01-13 11:32:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-01-13 11:32:49 +0200
commitd8f2d1a627160a47f028ebfb58e8bf1317a36b98 (patch)
tree76835818e3e9a6cf0cfe7b94bfdbd01fd1068655 /container/person.hxx
parentab51fa65f9e8cad4ef5a1db85029dfe6404e9a1f (diff)
Cosmetic changes
Diffstat (limited to 'container/person.hxx')
-rw-r--r--container/person.hxx22
1 files changed, 11 insertions, 11 deletions
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 <odb/core.hxx>
+typedef std::vector<std::string> names;
+typedef std::set<std::string> emails;
+typedef std::map<unsigned short, float> age_weight_map;
+
#pragma db object
class person
{
@@ -35,15 +39,13 @@ public:
// Nicknames.
//
- typedef std::vector<std::string> 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<std::string> 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<unsigned short, float> 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_;
};