Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
ODemo::Person Class Reference

A fairly simple class for Person. More...

#include <Person.h>

Collaboration diagram for ODemo::Person:
Collaboration graph

Public Member Functions

 Person (std::string name)
 Constructor initializes the name of the person. More...
 
 Person (const Person &)=delete
 Disallow copy-construction of people: More...
 
 Person (Person &&)=delete
 Disallow move-construction of people: More...
 
Personoperator= (const Person &)=delete
 Disallow copy-assignmentof people: More...
 
Personoperator= (Person &&)=delete
 Disallow move-assignment of people: More...
 
virtual ~Person ()
 Destructor. More...
 
std::string get_name () const
 Return the persons name. More...
 

Private Attributes

std::string m_name
 

Detailed Description

A fairly simple class for Person.

Person does not model the concept Assignable (cfr. Austern, Generic Programming and the STL, Chapter 6).

Definition at line 17 of file Person.h.

Constructor & Destructor Documentation

ODemo::Person::Person ( std::string  name)
explicit

Constructor initializes the name of the person.

Definition at line 13 of file Person.cpp.

References COMP_MISC_MEMBER_TRACER.

ODemo::Person::Person ( const Person )
delete

Disallow copy-construction of people:

ODemo::Person::Person ( Person &&  )
delete

Disallow move-construction of people:

ODemo::Person::~Person ( )
virtual

Destructor.

Definition at line 15 of file Person.cpp.

References COMP_MISC_MEMBER_TRACER.

Member Function Documentation

Person& ODemo::Person::operator= ( const Person )
delete

Disallow copy-assignmentof people:

Person& ODemo::Person::operator= ( Person &&  )
delete

Disallow move-assignment of people:

string ODemo::Person::get_name ( ) const

Return the persons name.

Definition at line 17 of file Person.cpp.

References COMP_MISC_MEMBER_TRACER, and m_name.

Member Data Documentation

std::string ODemo::Person::m_name
private

Definition at line 42 of file Person.h.

Referenced by get_name().


The documentation for this class was generated from the following files: