gstlearn  1.0.0
CCC
FracEnviron Class Reference

#include <FracEnviron.hpp>

Inheritance diagram for FracEnviron:
AStringable ASerializable

Public Member Functions

 FracEnviron (double xmax=0., double ymax=0., double deltax=0., double deltay=0., double mean=0., double stdev=0.)
 
 FracEnviron (const FracEnviron &r)
 
FracEnvironoperator= (const FracEnviron &r)
 
virtual ~FracEnviron ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface to AStringable. More...
 
int getNFamilies () const
 
int getNFaults () const
 
double getDeltax () const
 
double getDeltay () const
 
double getMean () const
 
double getStdev () const
 
double getXmax () const
 
double getYmax () const
 
double getXextend () const
 
const FracFaultgetFault (int i) const
 
const FracFamilygetFamily (int i) const
 
void addFamily (const FracFamily &family)
 
void addFault (const FracFault &fault)
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 
- Public Member Functions inherited from ASerializable
 ASerializable ()
 
 ASerializable (const ASerializable &r)
 
ASerializableoperator= (const ASerializable &r)
 
virtual ~ASerializable ()
 
bool deserialize (std::istream &is, bool verbose=true)
 
bool serialize (std::ostream &os, bool verbose=true) const
 
bool dumpToNF (const String &neutralFilename, bool verbose=false) const
 

Static Public Member Functions

static FracEnvironcreateFromNF (const String &neutralFilename, bool verbose=true)
 
static FracEnvironcreate (double xmax=0., double ymax=0., double deltax=0., double deltay=0, double mean=0., double stdev=0.)
 
- Static Public Member Functions inherited from ASerializable
static String buildFileName (int status, const String &filename, bool ensureDirExist=false)
 
static String getHomeDirectory (const String &sub="")
 
static String getWorkingDirectory ()
 
static String getTestData (const String &subdir, const String &filename)
 
static String getFileIdentity (const String &filename, bool verbose=false)
 
static void setContainerName (bool useDefault, const String &containerName="", bool verbose=false)
 
static void unsetContainerName ()
 
static void setPrefixName (const String &prefixName)
 
static void unsetPrefixName ()
 
static const StringgetContainerName ()
 
static const StringgetPrefixName ()
 
static bool createDirectory (const String &dir)
 
static String getExecDirectory ()
 
static String getDirectory (const String &path)
 

Protected Member Functions

virtual bool _deserialize (std::istream &is, bool verbose=false) override
 Interface for ASerializable. More...
 
virtual bool _serialize (std::ostream &os, bool verbose=false) const override
 
String _getNFName () const override
 
- Protected Member Functions inherited from ASerializable
bool _fileOpenWrite (const String &filename, std::ofstream &os, bool verbose=false) const
 
bool _fileOpenRead (const String &filename, std::ifstream &is, bool verbose=false) const
 

Private Attributes

double _xmax
 Maximum horizontal distance. More...
 
double _ymax
 Maximum vertical distance. More...
 
double _deltax
 Dilation along the horizontal axis. More...
 
double _deltay
 Dilation along the vertical axis. More...
 
double _mean
 Mean of thickness distribution. More...
 
double _stdev
 Standard deviation of thickness distribution. More...
 
std::vector< FracFamily_families
 Family definition. More...
 
std::vector< FracFault_faults
 Fault definition. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from ASerializable
static bool _commentWrite (std::ostream &os, const String &comment)
 
template<typename T >
static bool _recordWrite (std::ostream &os, const String &title, const T &val)
 
template<typename T >
static bool _recordWriteVec (std::ostream &os, const String &title, const VectorT< T > &vec)
 
template<typename T >
static bool _recordRead (std::istream &is, const String &title, T &val)
 
template<typename T >
static bool _recordReadVec (std::istream &is, const String &title, VectorT< T > &vec, int nvalues)
 
static bool _onlyBlanks (char *string)
 
static bool _tableRead (std::istream &is, const String &string, int ntab, double *tab)
 
static bool _tableWrite (std::ostream &os, const String &string, int ntab, const VectorDouble &tab)
 

Constructor & Destructor Documentation

◆ FracEnviron() [1/2]

FracEnviron::FracEnviron ( double  xmax = 0.,
double  ymax = 0.,
double  deltax = 0.,
double  deltay = 0.,
double  mean = 0.,
double  stdev = 0. 
)

◆ FracEnviron() [2/2]

FracEnviron::FracEnviron ( const FracEnviron r)

◆ ~FracEnviron()

FracEnviron::~FracEnviron ( )
virtual

Member Function Documentation

◆ _deserialize()

bool FracEnviron::_deserialize ( std::istream &  is,
bool  verbose = false 
)
overrideprotectedvirtual

Interface for ASerializable.

Implements ASerializable.

◆ _getNFName()

String FracEnviron::_getNFName ( ) const
inlineoverrideprotectedvirtual

Implements ASerializable.

◆ _serialize()

bool FracEnviron::_serialize ( std::ostream &  os,
bool  verbose = false 
) const
overrideprotectedvirtual

Implements ASerializable.

◆ addFamily()

void FracEnviron::addFamily ( const FracFamily family)
inline

◆ addFault()

void FracEnviron::addFault ( const FracFault fault)
inline

◆ create()

FracEnviron * FracEnviron::create ( double  xmax = 0.,
double  ymax = 0.,
double  deltax = 0.,
double  deltay = 0,
double  mean = 0.,
double  stdev = 0. 
)
static

◆ createFromNF()

FracEnviron * FracEnviron::createFromNF ( const String neutralFilename,
bool  verbose = true 
)
static

Create a Environ by loading the contents of a Neutral File

Parameters
neutralFilenameName of the Neutral File
verboseVerbose

◆ getDeltax()

double FracEnviron::getDeltax ( ) const
inline

◆ getDeltay()

double FracEnviron::getDeltay ( ) const
inline

◆ getFamily()

const FracFamily& FracEnviron::getFamily ( int  i) const
inline

◆ getFault()

const FracFault& FracEnviron::getFault ( int  i) const
inline

◆ getMean()

double FracEnviron::getMean ( ) const
inline

◆ getNFamilies()

int FracEnviron::getNFamilies ( ) const
inline

◆ getNFaults()

int FracEnviron::getNFaults ( ) const
inline

◆ getStdev()

double FracEnviron::getStdev ( ) const
inline

◆ getXextend()

double FracEnviron::getXextend ( ) const

◆ getXmax()

double FracEnviron::getXmax ( ) const
inline

◆ getYmax()

double FracEnviron::getYmax ( ) const
inline

◆ operator=()

FracEnviron & FracEnviron::operator= ( const FracEnviron r)

◆ toString()

String FracEnviron::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface to AStringable.

Reimplemented from AStringable.

Member Data Documentation

◆ _deltax

double FracEnviron::_deltax
private

Dilation along the horizontal axis.

◆ _deltay

double FracEnviron::_deltay
private

Dilation along the vertical axis.

◆ _families

std::vector<FracFamily> FracEnviron::_families
private

Family definition.

◆ _faults

std::vector<FracFault> FracEnviron::_faults
private

Fault definition.

◆ _mean

double FracEnviron::_mean
private

Mean of thickness distribution.

◆ _stdev

double FracEnviron::_stdev
private

Standard deviation of thickness distribution.

◆ _xmax

double FracEnviron::_xmax
private

Maximum horizontal distance.

◆ _ymax

double FracEnviron::_ymax
private

Maximum vertical distance.


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