Points&Forces (core)
Software tools facilitating the task of surveying architecture
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
a_unit Class Reference

unit More...

#include <a_unit.h>

+ Inheritance diagram for a_unit:
+ Collaboration diagram for a_unit:

Public Member Functions

 a_unit ()
 
 a_unit (const a_unit &)
 
 a_unit (const std::string n, const std::string ns, double r)
 
virtual const std::string classname ()
 
std::string name () const
 
void name (const std::string name)
 
std::string short_name () const
 
void short_name (const std::string name)
 
double ratio () const
 
void ratio (const double ratio)
 
virtual void read (std::istream &i)
 
virtual void write (std::ostream &o) const
 
- Public Member Functions inherited from a_base
 a_base ()
 
void read (const std::string &file_in)
 
void write (const std::string &file_out) const
 
void small (double tol)
 
double small () const
 

Static Public Member Functions

static const std::string help ()
 
- Static Public Member Functions inherited from a_unit_base
static const std::string help ()
 
- Static Public Member Functions inherited from a_base
static const std::string help ()
 

Protected Attributes

std::string name_
 
std::string short_name_
 
double ratio_
 
- Protected Attributes inherited from a_base
double verysmall_
 

Detailed Description

unit

Definition at line 28 of file a_unit.h.

Constructor & Destructor Documentation

◆ a_unit() [1/3]

a_unit::a_unit ( )

Definition at line 110 of file a_unit.cxx.

◆ a_unit() [2/3]

a_unit::a_unit ( const a_unit u)

Definition at line 118 of file a_unit.cxx.

+ Here is the call graph for this function:

◆ a_unit() [3/3]

a_unit::a_unit ( const std::string  n,
const std::string  ns,
double  r 
)

Definition at line 126 of file a_unit.cxx.

Member Function Documentation

◆ classname()

virtual const std::string a_unit::classname ( )
inlinevirtual

return class name: should be overridden by children classes

Reimplemented from a_unit_base.

Definition at line 34 of file a_unit.h.

◆ help()

const std::string a_unit::help ( )
static

Definition at line 6 of file a_unit.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ name() [1/2]

std::string a_unit::name ( ) const
inline

Definition at line 36 of file a_unit.h.

+ Here is the caller graph for this function:

◆ name() [2/2]

void a_unit::name ( const std::string  name)
inline

Definition at line 37 of file a_unit.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ratio() [1/2]

double a_unit::ratio ( ) const
inline

Definition at line 40 of file a_unit.h.

+ Here is the caller graph for this function:

◆ ratio() [2/2]

void a_unit::ratio ( const double  ratio)
inline

Definition at line 41 of file a_unit.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read()

void a_unit::read ( std::istream &  i)
virtual

read object from stream: should be overridden by children classes

Reimplemented from a_base.

Definition at line 31 of file a_unit.cxx.

+ Here is the call graph for this function:

◆ short_name() [1/2]

std::string a_unit::short_name ( ) const
inline

Definition at line 38 of file a_unit.h.

+ Here is the caller graph for this function:

◆ short_name() [2/2]

void a_unit::short_name ( const std::string  name)
inline

Definition at line 39 of file a_unit.h.

+ Here is the call graph for this function:

◆ write()

void a_unit::write ( std::ostream &  o) const
virtual

write object to stream: should be overridden by children classes

Reimplemented from a_base.

Definition at line 102 of file a_unit.cxx.

+ Here is the call graph for this function:

Member Data Documentation

◆ name_

std::string a_unit::name_
protected

Definition at line 48 of file a_unit.h.

◆ ratio_

double a_unit::ratio_
protected

Definition at line 50 of file a_unit.h.

◆ short_name_

std::string a_unit::short_name_
protected

Definition at line 49 of file a_unit.h.


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