OpenStructure
Loading...
Searching...
No Matches
Namespaces | Data Structures | Typedefs | Functions
ost Namespace Reference

Namespaces

namespace  bindings
 
namespace  conop
 
namespace  db
 
namespace  dng_startup
 
namespace  geom
 
namespace  gfx
 
namespace  gui
 
namespace  img
 
namespace  info
 
namespace  io
 
namespace  mol
 
namespace  ost_startup
 
namespace  seq
 
namespace  settings
 
namespace  stutil
 
namespace  table
 
namespace  table_selector
 
namespace  testutils
 
namespace  xmlrunner
 

Data Structures

class  ConstGenericPropContainer
 
class  Error
 
class  FileLogSink
 
class  FixedString
 
class  GenericPropContainer
 
class  GenericPropContainerImpl
 
struct  GenericPropError
 
class  IntegrityError
 
class  InvalidHandle
 
class  Logger
 
class  LogSink
 
class  MultiLogSink
 
class  PagedArray
 
struct  PairToTupleConverter
 
class  PodVector
 
class  Profile
 
struct  Range
 
class  StreamLogSink
 
class  StringLogSink
 
class  StringRef
 
class  TriMatrix
 
struct  Units
 
struct  VectorToListConverter
 

Typedefs

typedef boost::variant< String, Real, int, bool, geom::Vec3GenericPropValue
 
typedef std::stack< LogSinkPtrLogSinkStack
 
typedef boost::shared_ptr< LogSinkLogSinkPtr
 
typedef boost::shared_ptr< StringLogSinkStringLogSinkPtr
 
typedef boost::shared_ptr< FileLogSinkFileLogSinkPtr
 
typedef boost::shared_ptr< MultiLogSinkMultiLogSinkPtr
 

Functions

template<typename T , typename F >
boost::shared_ptr< T > dyn_cast (F f)
 
template<typename H >
void CheckHandleValidity (const H &handle)
 
void DLLEXPORT_OST_BASE SetPrefixPath (const String &prefix)
 
String DLLEXPORT_OST_BASE GetPrefixPath ()
 
String DLLEXPORT_OST_BASE GetSharedDataPath ()
 
DLLEXPORT_OST_BASE std::ostream & operator<< (std::ostream &stream, const StringRef &strref)
 
bool DLLEXPORT_OST_BASE compare_files (const String &test, const String &gold_standard, const std::unordered_set< int > &ignore_line={})
 
 _GetPrefixFromPythonPath ()
 
 _SetupOstPrefix ()
 
 _TrySetCompoundsLib (path)
 
 _SetupCompoundsLib ()
 

Typedef Documentation

◆ FileLogSinkPtr

typedef boost::shared_ptr<FileLogSink> FileLogSinkPtr

Definition at line 89 of file log_sink.hh.

◆ GenericPropValue

typedef boost::variant<String, Real, int, bool, geom::Vec3> GenericPropValue

Definition at line 50 of file generic_property.hh.

◆ LogSinkPtr

typedef boost::shared_ptr<LogSink> LogSinkPtr

Definition at line 42 of file log_sink.hh.

◆ LogSinkStack

typedef std::stack<LogSinkPtr> LogSinkStack

Definition at line 30 of file log.hh.

◆ MultiLogSinkPtr

typedef boost::shared_ptr<MultiLogSink> MultiLogSinkPtr

Definition at line 102 of file log_sink.hh.

◆ StringLogSinkPtr

typedef boost::shared_ptr<StringLogSink> StringLogSinkPtr

Definition at line 70 of file log_sink.hh.

Function Documentation

◆ _GetPrefixFromPythonPath()

_GetPrefixFromPythonPath ( )
protected
Get the prefix from this file's path

Definition at line 37 of file __init__.py.

◆ _SetupCompoundsLib()

_SetupCompoundsLib ( )
protected
 This function sets up the compound lib.

By order of priority, the following heuristics are used:

1. The $OST_COMPOUNDS_CHEMLIB environment variable
2. The 'compounds.chemlib' file in the shared path under the folder pointed
  by the $OST_ROOT environment variable
3. The 'compounds.chemlib' file in the shared path under the OST prefix where
  the ost python module is installed.

If no compound library can be loaded with any of these strategies, a warning
message is issued.

Definition at line 75 of file __init__.py.

◆ _SetupOstPrefix()

_SetupOstPrefix ( )
protected
 This function attempts to set the OST prefix path if $OST_ROOT was not
set already.

It does so by assuming that the __init__.py file is located under
$OST_ROOT/lib(64)?/pythonX.XX/site-packages/ost. This might not be the case
in all settings (conda, pip?). In that case this function should be
adapted.

Definition at line 45 of file __init__.py.

◆ _TrySetCompoundsLib()

_TrySetCompoundsLib (   path)
protected
Tries to set the compound lib to 'path', or raises a ValueError.

Definition at line 65 of file __init__.py.

◆ CheckHandleValidity()

template<typename H >
void CheckHandleValidity ( const H &  handle)
inline

Definition at line 38 of file invalid_handle.hh.

◆ compare_files()

bool DLLEXPORT_OST_BASE compare_files ( const String test,
const String gold_standard,
const std::unordered_set< int > &  ignore_line = {} 
)

◆ dyn_cast()

template<typename T , typename F >
boost::shared_ptr< T > dyn_cast ( f)
inline

a convenient shortcut for the painfully long boost::dynamic_pointer_cast

Definition at line 29 of file dyn_cast.hh.

◆ GetPrefixPath()

String DLLEXPORT_OST_BASE GetPrefixPath ( )

get the path prefix

◆ GetSharedDataPath()

String DLLEXPORT_OST_BASE GetSharedDataPath ( )

◆ operator<<()

DLLEXPORT_OST_BASE std::ostream & operator<< ( std::ostream &  stream,
const StringRef strref 
)

◆ SetPrefixPath()

void DLLEXPORT_OST_BASE SetPrefixPath ( const String prefix)

set path prefix