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

#include <a_base.h>

+ Inheritance diagram for a_base:
+ Collaboration diagram for a_base:

Classes

class  file_open_error
 
class  file_read_error
 
class  file_write_error
 

Public Member Functions

 a_base ()
 
virtual const std::string classname ()
 
virtual void read (std::istream &i)
 
virtual void write (std::ostream &o) const
 
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 ()
 

Protected Attributes

double verysmall_
 

Friends

std::istream & operator>> (std::istream &in, a_base &o)
 
std::ostream & operator<< (std::ostream &out, const a_base &o)
 
std::istream & operator>> (std::istream &in, a_base *o)
 
std::ostream & operator<< (std::ostream &out, const a_base *o)
 

Detailed Description

\top class of all points&forces libraries

Author
P.Smars
Date
2020

Definition at line 27 of file a_base.h.

Constructor & Destructor Documentation

◆ a_base()

a_base::a_base ( )
inline

Definition at line 30 of file a_base.h.

Member Function Documentation

◆ classname()

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

return class name: should be overridden by children classes

Reimplemented in a_unit_system, a_unit_base, a_unit, a_triangle, a_text_base, a_text, a_tetrahedron, a_segment, a_point2, a_point, a_plane, a_mat_base, a_geom_base, a_coord_base, a_coord, and a_circle.

Definition at line 32 of file a_base.h.

◆ help()

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

get help about class (without need to create object): should be overridden by children classes

Definition at line 21 of file a_base.cxx.

+ Here is the caller graph for this function:

◆ read() [1/2]

void a_base::read ( const std::string &  file_in)

read object from file: meant to be reused by children classes

Definition at line 34 of file a_base.cxx.

+ Here is the call graph for this function:

◆ read() [2/2]

virtual void a_base::read ( std::istream &  i)
inlinevirtual

read object from stream: should be overridden by children classes

Reimplemented in a_unit_system, a_unit, a_triangle, a_tetrahedron, a_segment, a_point2, a_point, a_plane, a_mat, a_coord, and a_circle.

Definition at line 38 of file a_base.h.

+ Here is the caller graph for this function:

◆ small() [1/2]

double a_base::small ( ) const
inline

Definition at line 46 of file a_base.h.

◆ small() [2/2]

void a_base::small ( double  tol)
inline

Definition at line 45 of file a_base.h.

◆ write() [1/2]

void a_base::write ( const std::string &  file_out) const

write object to file: meant to be reused by children classes

Definition at line 45 of file a_base.cxx.

+ Here is the call graph for this function:

◆ write() [2/2]

virtual void a_base::write ( std::ostream &  o) const
inlinevirtual

write object to stream: should be overridden by children classes

Reimplemented in a_unit_system, a_unit, a_triangle, a_tetrahedron, a_segment, a_point2, a_point, a_plane, a_mat, a_coord, and a_circle.

Definition at line 40 of file a_base.h.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream& operator<< ( std::ostream &  out,
const a_base o 
)
friend

write object to stream: meant to be reused by children classes

Definition at line 62 of file a_base.cxx.

◆ operator<< [2/2]

std::ostream& operator<< ( std::ostream &  out,
const a_base o 
)
friend

write object refered by pointer to stream: meant to be reused by children classes

Definition at line 74 of file a_base.cxx.

◆ operator>> [1/2]

std::istream& operator>> ( std::istream &  in,
a_base o 
)
friend

read object from stream: meant to be reused by children classes

Definition at line 56 of file a_base.cxx.

◆ operator>> [2/2]

std::istream& operator>> ( std::istream &  in,
a_base o 
)
friend

read object refered by pointer from stream: meant to be reused by children classes

Definition at line 68 of file a_base.cxx.

Member Data Documentation

◆ verysmall_

double a_base::verysmall_
protected

Definition at line 62 of file a_base.h.


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