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

unit system More...

#include <a_unit_system.h>

+ Inheritance diagram for a_unit_system:
+ Collaboration diagram for a_unit_system:

Public Member Functions

 a_unit_system ()
 
 a_unit_system (const a_unit_system &)
 
 ~a_unit_system ()
 
virtual const std::string classname ()
 
void name (const std::string name)
 
std::string name () const
 
void decimals1 (const int val)
 
int decimals1 () const
 
void decimals2 (const int val)
 
int decimals2 () const
 
int levels1 () const
 
int levels2 () const
 
void addlevel1 (a_unit &u)
 
void addlevel2 (a_unit &u)
 
a_unitlevel1 (int n) const
 
a_unitlevel2 (int n) const
 
std::string dim1 (const double v)
 
std::string dim1_det (const double v)
 
std::string dim2 (const double v)
 
std::string dim2_det (const double v)
 
std::string dim1 (const a_point &)
 
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 Member Functions

void reset ()
 

Protected Attributes

std::string name_
 
std::deque< a_unit * > levels1_
 
std::deque< a_unit * > levels2_
 
int decimals1_
 
int decimals2_
 
- Protected Attributes inherited from a_base
double verysmall_
 

Detailed Description

unit system

Author
P.Smars
Date
2000-2020
Warning
portability: ansi C++
Exceptions
a_unit_system::file_error

Definition at line 33 of file a_unit_system.h.

Constructor & Destructor Documentation

◆ a_unit_system() [1/2]

a_unit_system::a_unit_system ( )
inline

Definition at line 36 of file a_unit_system.h.

◆ a_unit_system() [2/2]

a_unit_system::a_unit_system ( const a_unit_system u)

Definition at line 117 of file a_unit_system.cxx.

+ Here is the call graph for this function:

◆ ~a_unit_system()

a_unit_system::~a_unit_system ( )

Definition at line 134 of file a_unit_system.cxx.

+ Here is the call graph for this function:

Member Function Documentation

◆ addlevel1()

void a_unit_system::addlevel1 ( a_unit u)

Definition at line 139 of file a_unit_system.cxx.

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

◆ addlevel2()

void a_unit_system::addlevel2 ( a_unit u)

Definition at line 153 of file a_unit_system.cxx.

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

◆ classname()

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

return class name: should be overridden by children classes

Reimplemented from a_unit_base.

Definition at line 39 of file a_unit_system.h.

◆ decimals1() [1/2]

int a_unit_system::decimals1 ( ) const
inline

Definition at line 45 of file a_unit_system.h.

◆ decimals1() [2/2]

void a_unit_system::decimals1 ( const int  val)
inline

Definition at line 44 of file a_unit_system.h.

+ Here is the caller graph for this function:

◆ decimals2() [1/2]

int a_unit_system::decimals2 ( ) const
inline

Definition at line 47 of file a_unit_system.h.

◆ decimals2() [2/2]

void a_unit_system::decimals2 ( const int  val)
inline

Definition at line 46 of file a_unit_system.h.

+ Here is the caller graph for this function:

◆ dim1() [1/2]

std::string a_unit_system::dim1 ( const a_point p)

Definition at line 196 of file a_unit_system.cxx.

+ Here is the call graph for this function:

◆ dim1() [2/2]

std::string a_unit_system::dim1 ( const double  v)

Definition at line 167 of file a_unit_system.cxx.

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

◆ dim1_det()

std::string a_unit_system::dim1_det ( const double  v)

Definition at line 203 of file a_unit_system.cxx.

+ Here is the call graph for this function:

◆ dim2()

std::string a_unit_system::dim2 ( const double  v)

Definition at line 211 of file a_unit_system.cxx.

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

◆ dim2_det()

std::string a_unit_system::dim2_det ( const double  v)

Definition at line 240 of file a_unit_system.cxx.

+ Here is the call graph for this function:

◆ help()

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

Definition at line 23 of file a_unit_system.cxx.

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

◆ level1()

a_unit * a_unit_system::level1 ( int  n) const

Definition at line 107 of file a_unit_system.cxx.

+ Here is the caller graph for this function:

◆ level2()

a_unit * a_unit_system::level2 ( int  n) const

Definition at line 112 of file a_unit_system.cxx.

+ Here is the caller graph for this function:

◆ levels1()

int a_unit_system::levels1 ( ) const
inline

Definition at line 48 of file a_unit_system.h.

+ Here is the caller graph for this function:

◆ levels2()

int a_unit_system::levels2 ( ) const
inline

Definition at line 49 of file a_unit_system.h.

+ Here is the caller graph for this function:

◆ name() [1/2]

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

Definition at line 43 of file a_unit_system.h.

+ Here is the caller graph for this function:

◆ name() [2/2]

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

Definition at line 42 of file a_unit_system.h.

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

◆ read()

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

read object from stream: should be overridden by children classes

Reimplemented from a_base.

Definition at line 59 of file a_unit_system.cxx.

+ Here is the call graph for this function:

◆ reset()

void a_unit_system::reset ( )
protected

Definition at line 96 of file a_unit_system.cxx.

+ Here is the caller graph for this function:

◆ write()

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

write object to stream: should be overridden by children classes

Reimplemented from a_base.

Definition at line 81 of file a_unit_system.cxx.

+ Here is the call graph for this function:

Member Data Documentation

◆ decimals1_

int a_unit_system::decimals1_
protected

Definition at line 71 of file a_unit_system.h.

◆ decimals2_

int a_unit_system::decimals2_
protected

Definition at line 72 of file a_unit_system.h.

◆ levels1_

std::deque<a_unit *> a_unit_system::levels1_
protected

Definition at line 69 of file a_unit_system.h.

◆ levels2_

std::deque<a_unit *> a_unit_system::levels2_
protected

Definition at line 70 of file a_unit_system.h.

◆ name_

std::string a_unit_system::name_
protected

Definition at line 68 of file a_unit_system.h.


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