Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
basic::citation_manager::AuthorNames Class Reference

Data structure for author names. More...

#include <Citation.hh>

Inheritance diagram for basic::citation_manager::AuthorNames:
Inheritance graph

Public Member Functions

 AuthorNames ()=delete
 Basic constructor – deleted. More...
 AuthorNames (std::string const &given_names, std::string const &surname, std::string const &initials)
 Initialization constructor. More...
 AuthorNames (AuthorNames const &)=default
 ~AuthorNames () override=default
AuthorNamesOP clone () const
AuthorNamesoperator= (AuthorNames const &)=default
 Assignment operator. More...
std::string const & given_names () const
 Get the given name(s). More...
std::string const & surname () const
 Get the surname(s). More...
std::string const & initials () const
 Get the initial(s). More...
- Public Member Functions inherited from utility::VirtualBase
 VirtualBase ()=default
 Default constructor. More...
virtual ~VirtualBase ()=default
 The virtual destructor is one of the main reasons for the VirtualBase class. More...
 VirtualBase (VirtualBase const &)=default
 VirtualBase (VirtualBase &&)=default
VirtualBaseoperator= (VirtualBase const &)=default
VirtualBaseoperator= (VirtualBase &&)=default

Private Attributes

std::string given_names_
std::string surname_
std::string initials_

Detailed Description

Data structure for author names.

Constructor & Destructor Documentation

basic::citation_manager::AuthorNames::AuthorNames ( )

Basic constructor – deleted.

basic::citation_manager::AuthorNames::AuthorNames ( std::string const &  given_names,
std::string const &  surname,
std::string const &  initials 

Initialization constructor.

References runtime_assert_string_msg, and surname_.

basic::citation_manager::AuthorNames::AuthorNames ( AuthorNames const &  )
basic::citation_manager::AuthorNames::~AuthorNames ( )

Member Function Documentation

AuthorNamesOP basic::citation_manager::AuthorNames::clone ( ) const
std::string const& basic::citation_manager::AuthorNames::given_names ( ) const

Get the given name(s).

References given_names_.

std::string const& basic::citation_manager::AuthorNames::initials ( ) const

Get the initial(s).

References initials_.

AuthorNames& basic::citation_manager::AuthorNames::operator= ( AuthorNames const &  )

Assignment operator.

std::string const& basic::citation_manager::AuthorNames::surname ( ) const

Get the surname(s).

References surname_.

Member Data Documentation

std::string basic::citation_manager::AuthorNames::given_names_

Referenced by given_names().

std::string basic::citation_manager::AuthorNames::initials_

Referenced by initials().

std::string basic::citation_manager::AuthorNames::surname_

Referenced by AuthorNames(), and surname().

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