votca 2024.2-dev
Loading...
Searching...
No Matches
votca::tools::Name Class Reference

Name object. More...

#include <name.h>

Collaboration diagram for votca::tools::Name:

Public Member Functions

 Name ()=default
 
 Name (const std::string name)
 
void setName (const std::string &name)
 
const std::string & getName () const
 

Private Attributes

std::string name_
 
bool name_set_ {false}
 

Detailed Description

Name object.

This object is meant to be used a derived type for larger objects. In this way the same methods for setting and getting the name of an object will be uniformly defined.

Definition at line 38 of file name.h.

Constructor & Destructor Documentation

◆ Name() [1/2]

votca::tools::Name::Name ( )
default

◆ Name() [2/2]

votca::tools::Name::Name ( const std::string name)
inline

Definition at line 45 of file name.h.

Member Function Documentation

◆ getName()

const std::string & votca::tools::Name::getName ( ) const
inline

Definition at line 50 of file name.h.

◆ setName()

void votca::tools::Name::setName ( const std::string & name)
inline

Definition at line 46 of file name.h.

Member Data Documentation

◆ name_

std::string votca::tools::Name::name_
private

Definition at line 40 of file name.h.

◆ name_set_

bool votca::tools::Name::name_set_ {false}
private

Definition at line 41 of file name.h.


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