RMF
RMF Namespace Reference

The namespace for all functionality in the library. More...

Namespaces

namespace  decorator
 See Decorators and Attributes for more information.
namespace  HDF5
 The namespace for all HDF5 functionality in the library.

Classes

class  BufferConstHandle
 Manage a shared buffer for loading a RMF. More...
class  BufferHandle
 Manage a shared buffer for storing a RMF. More...
class  CoordinateTransformer
 Transform coordinates into the global reference frame. More...
class  Decorator
 The base class for decorators. More...
class  Enum
 A strong enum with an associated string name for each value. More...
class  Exception
class  Factory
 The base class for Factories. More...
class  FileConstHandle
 A handle for a read-only RMF file. More...
class  FileHandle
 A handle for an RMF file. More...
class  ID
 A general purpose ID in RMF used, with different tags, to identify things. More...
class  IndexException
class  InternalException
class  IOException
class  Label
 A decorator-like class to mark certain nodes (e.g. molecule boundaries). More...
class  NodeConstHandle
 A handle for a particular node in a read-only hierarchy. More...
class  NodeHandle
 A handle for a particular node in the hierarchy. More...
class  Nullable
 Return a possibly null value. More...
class  RestoreCurrentFrame
 Restore the frame that was current on creation upon destruction. More...
class  SetCurrentFrame
 Set the current frame to a value and then return it to the old value when this goes out of scope. More...
struct  Traits
 Traits classes describing how RMF uses types for storing data. More...
class  TraverseHelper
 Track common data that one needs to keep as one traverses the hierarchy. More...
class  UsageException
class  Vector
 Represent a point in some dimension. More...

Typedefs

typedef std::vector< Category > Categories
typedef ID< CategoryTag > Category
typedef std::vector< CoordinateTransformer > CoordinateTransformers
 A list of them.
typedef std::vector< FileConstHandle > FileConstHandles
 Pass a list of them.
typedef std::vector< FileHandle > FileHandles
 Pass a list of them.
typedef float Float
typedef std::vector< Float > Floats
typedef std::vector< Floats > FloatsList
typedef FloatsTraits FloatsTag
typedef Traits< Floats > FloatsTraits
typedef FloatTraits FloatTag
typedef Traits< Float > FloatTraits
typedef ID< FrameTag > FrameID
typedef std::vector< FrameID > FrameIDs
typedef Enum< FrameTypeTag > FrameType
typedef int Int
typedef std::array< int, 2 > IntRange
typedef std::vector< Int > Ints
typedef std::vector< Ints > IntsList
typedef IntsTraits IntsTag
typedef Traits< Ints > IntsTraits
typedef IntTraits IntTag
typedef Traits< Int > IntTraits
typedef std::vector< NodeConstHandle > NodeConstHandles
 Pass a list of them.
typedef std::vector< NodeHandle > NodeHandles
 Pass a list of them.
typedef ID< NodeTag > NodeID
typedef std::vector< NodeID > NodeIDs
typedef Enum< NodeTypeTag > NodeType
typedef Enum< RepresentationTypeTag > RepresentationType
typedef std::string String
typedef std::vector< String > Strings
typedef std::vector< Strings > StringsList
typedef StringsTraits StringsTag
typedef Traits< Strings > StringsTraits
typedef StringTraits StringTag
typedef Traits< String > StringTraits
typedef std::vector< TraverseHelper > TraverseHelpers
typedef Vector< 3U > Vector3
typedef std::vector< Vector3 > Vector3s
typedef Vector3sTraits Vector3sTag
typedef Traits< std::vector< Vector< 3 > > > Vector3sTraits
typedef Vector3Traits Vector3Tag
typedef Traits< Vector< 3 > > Vector3Traits
typedef Vector< 4U > Vector4
typedef std::vector< Vector4 > Vector4s
typedef Vector4sTraits Vector4sTag
typedef Traits< std::vector< Vector< 4 > > > Vector4sTraits
typedef Vector4Traits Vector4Tag
typedef Traits< Vector< 4 > > Vector4Traits
typedef unsigned int VectorDimension
 Work around clang issue.

Functions

FileHandle create_rmf_buffer (BufferHandle buffer)
 Create an RMF in a buffer.
FileHandle create_rmf_file (std::string path)
 Create an RMF from a file system path.
void get_all_global_coordinates (FileConstHandle &fh, NodeConstHandle &nh, PyObject *coord)
 Get global XYZ coordinates for everything under the given node.
std::array< RMF::Vector3, 2 > get_bounding_box (NodeConstHandle root)
float get_diameter (NodeConstHandle root)
bool get_equal_current_values (FileConstHandle input, FileConstHandle out)
bool get_equal_static_values (FileConstHandle input, FileConstHandle out)
bool get_equal_structure (FileConstHandle input, FileConstHandle output, bool print_diff=false)
std::string get_message (const Exception &e)
std::string get_signature_string (FileConstHandle file)
 Return a string that captures information about the file.
std::size_t hash_value (const BufferConstHandle &t)
 Produce hash values for boost hash tables.
template<class TagT>
std::size_t hash_value (const Enum< TagT > &t)
 Produce hash values for boost hash tables.
std::size_t hash_value (const FileConstHandle &t)
 Produce hash values for boost hash tables.
template<class TagT>
std::size_t hash_value (const ID< TagT > &t)
 Produce hash values for boost hash tables.
std::size_t hash_value (const NodeConstHandle &t)
 Produce hash values for boost hash tables.
FileConstHandle open_rmf_buffer_read_only (BufferConstHandle buffer)
FileConstHandle open_rmf_file_read_only (std::string path)
BufferConstHandle read_buffer (std::string file_name)
void set_log_level (std::string level)
void show_info (RMF::FileConstHandle rh, std::ostream &out=std::cout)
void test_throw_exception ()
void validate (FileConstHandle fh)
 Validate the hierarchy, throwing an exception if any problems were found.
void write_buffer (BufferConstHandle buffer, std::string file_name)

Variables

static const FrameID ALL_FRAMES = FrameID(-1, FrameID::SpecialTag())

Key types

RMF files support storing a variety of different types of data. These include

  • IntKey: store an arbitrary integer as a 64 bit integer
  • FloatKey: store an arbitrary floating point number as a float
  • StringKey: store an arbitrary length string
  • IndexKey: store non-negative indexes as 64 bit integers
  • NodeIDKey: store the ID of a node in the hierarchy
  • NodeIDsKey: store a list of NodeIDs
  • DataSetKey: store a reference to an HDF5 data set via the path to the data set
  • IntsKey: store a list of arbitrary integers
typedef ID< IntTag > IntKey
typedef std::vector< IntKey > IntKeys
typedef ID< FloatTag > FloatKey
typedef std::vector< FloatKey > FloatKeys
typedef ID< StringTag > StringKey
typedef std::vector< StringKey > StringKeys
typedef ID< IntsTag > IntsKey
typedef std::vector< IntsKey > IntsKeys
typedef ID< FloatsTag > FloatsKey
typedef std::vector< FloatsKey > FloatsKeys
typedef ID< StringsTag > StringsKey
typedef std::vector< StringsKey > StringsKeys
typedef ID< Vector3Tag > Vector3Key
typedef std::vector< Vector3Key > Vector3Keys
typedef ID< Vector4Tag > Vector4Key
typedef std::vector< Vector4Key > Vector4Keys
typedef ID< Vector3sTag > Vector3sKey
typedef std::vector< Vector3sKey > Vector3sKeys

Node Types

The types nodes can take in an RMF file.

const NodeType INVALID_NODE_TYPE
const NodeType ROOT
 The root node.
const NodeType REPRESENTATION
 Represent part of a molecule.
const NodeType GEOMETRY
 Store a geometric object.
const NodeType FEATURE
 Store information about some feature of the system.
const NodeType ALIAS
const NodeType CUSTOM
 Arbitrary data that is not standardized.
const NodeType BOND
 A link between two atoms.
const NodeType ORGANIZATIONAL
 A node that is purely there for organizational purposes.
const NodeType PROVENANCE
 Represent the process by which a structure was created.

Frame Types

The types frames can take in an RMF file.

const FrameType INVALID_FRAME_TYPE
const FrameType STATIC
 The root frame.
const FrameType FRAME
 A frame in a sequence of frames.
const FrameType MODEL
 An independent model.
const FrameType CENTER
 A cluster center.
const FrameType FRAME_ALIAS
 An alias for another frame.
const FrameType ALTERNATE
 An alternate state for a frame or model.

Representation Types

The types that representations used in the decorator::Alternatives decorator can take.

const RepresentationType PARTICLE
const RepresentationType GAUSSIAN_PARTICLE

Batch data access

These methods provide batch access to attribute data to try to reduce the overhead of repeated function calls.

The missing_value argument is a placeholder that can fill in for values which are not found in the respective node.

Note
These methods are experimental and subject to change.
Floats get_values (const NodeConstHandles &nodes, FloatKey k, Float missing_value=std::numeric_limits< float >::max())

Names

std::string get_as_node_name (std::string input)
 Return a node name string that has been modified to obey the rules.
bool get_is_valid_key_name (std::string name)
 Return true iff the string is a valid key name.
bool get_is_valid_node_name (std::string name)
 Return true iff the string is a valid node name.

Showing the hierarchy

These functions print out the hierarchy with various extra information for each node. Each prints out an ASCII tree designed for human inspection.

void show_hierarchy (NodeConstHandle root, std::ostream &out)
void show_hierarchy (NodeConstHandle root)
void show_hierarchy_with_values (NodeConstHandle root, std::ostream &out)
void show_hierarchy_with_values (NodeConstHandle root)
void show_hierarchy_with_decorators (NodeConstHandle root, bool verbose=false, std::ostream &out=std::cout)
void show_frames (FileConstHandle fh, std::ostream &out=std::cout)

Copy functions

See the example cloning.py for a usage example.

void clone_file_info (FileConstHandle input, FileHandle output)
void clone_hierarchy (FileConstHandle input, FileHandle output)
void clone_loaded_frame (FileConstHandle input, FileHandle output)
void clone_static_frame (FileConstHandle input, FileHandle output)

Detailed Description

In python, the module is also called RMF.

Typedef Documentation

◆ Categories

typedef std::vector<Category> RMF::Categories

List of categories.

Definition at line 117 of file ID.h.

◆ Category

typedef ID<CategoryTag> RMF::Category

Identify a category within a file.

Definition at line 110 of file ID.h.

◆ CoordinateTransformers

Definition at line 56 of file CoordinateTransformer.h.

◆ FileConstHandles

typedef std::vector<FileConstHandle> RMF::FileConstHandles

Definition at line 70 of file FileConstHandle.h.

◆ FileHandles

typedef std::vector<FileHandle> RMF::FileHandles

Definition at line 39 of file FileHandle.h.

◆ Float

typedef float RMF::Float

The type used to store lists of floating point values.

Definition at line 33 of file types.h.

◆ FloatKey

typedef ID<FloatTag> RMF::FloatKey

Identify a value stored for a node.

Definition at line 41 of file keys.h.

◆ FloatKeys

typedef std::vector<FloatKey> RMF::FloatKeys

A list of identifiers.

Definition at line 41 of file keys.h.

◆ Floats

typedef std::vector<Float> RMF::Floats

The type used to store lists of floating point values.

Definition at line 35 of file types.h.

◆ FloatsKey

typedef ID<FloatsTag> RMF::FloatsKey

Identify a value stored for a node.

Definition at line 41 of file keys.h.

◆ FloatsKeys

typedef std::vector<FloatsKey> RMF::FloatsKeys

A list of identifiers.

Definition at line 41 of file keys.h.

◆ FloatsList

typedef std::vector<Floats> RMF::FloatsList

The type used to store lists of floating point values.

Definition at line 37 of file types.h.

◆ FloatsTag

typedef FloatsTraits RMF::FloatsTag

Definition at line 213 of file traits.h.

◆ FloatsTraits

typedef Traits<Floats> RMF::FloatsTraits

Definition at line 190 of file traits.h.

◆ FloatTag

typedef FloatTraits RMF::FloatTag

Definition at line 208 of file traits.h.

◆ FloatTraits

typedef Traits<Float> RMF::FloatTraits

Definition at line 187 of file traits.h.

◆ FrameID

typedef ID<FrameTag> RMF::FrameID

Identify a frame within a file.

Examples
benchmark/benchmark_rmf.cpp.

Definition at line 108 of file ID.h.

◆ FrameIDs

typedef std::vector<FrameID> RMF::FrameIDs

List of frame ids.

Definition at line 115 of file ID.h.

◆ FrameType

typedef Enum<FrameTypeTag> RMF::FrameType

The type for frames.

See Frame Types for a complete list of the possible values.

Definition at line 116 of file Enum.h.

◆ Int

typedef int RMF::Int

The type used to store integral values.

Definition at line 29 of file types.h.

◆ IntKey

typedef ID<IntTag> RMF::IntKey

Identify a value stored for a node.

Definition at line 41 of file keys.h.

◆ IntKeys

typedef std::vector<IntKey> RMF::IntKeys

A list of identifiers.

Definition at line 41 of file keys.h.

◆ IntRange

typedef std::array<int, 2> RMF::IntRange

Definition at line 56 of file types.h.

◆ Ints

typedef std::vector<Int> RMF::Ints

The type used to store lists of integral values.

Definition at line 31 of file types.h.

◆ IntsKey

typedef ID<IntsTag> RMF::IntsKey

Identify a value stored for a node.

Definition at line 41 of file keys.h.

◆ IntsKeys

typedef std::vector<IntsKey> RMF::IntsKeys

A list of identifiers.

Definition at line 41 of file keys.h.

◆ IntsList

typedef std::vector<Ints> RMF::IntsList

The type used to store lists of lists of integers values.

Definition at line 45 of file types.h.

◆ IntsTag

typedef IntsTraits RMF::IntsTag

Definition at line 212 of file traits.h.

◆ IntsTraits

typedef Traits<Ints> RMF::IntsTraits

Definition at line 189 of file traits.h.

◆ IntTag

typedef IntTraits RMF::IntTag

Definition at line 207 of file traits.h.

◆ IntTraits

typedef Traits<Int> RMF::IntTraits

Definition at line 186 of file traits.h.

◆ NodeConstHandles

typedef std::vector<NodeConstHandle> RMF::NodeConstHandles
Examples
benchmark/benchmark_rmf.cpp.

Definition at line 69 of file NodeConstHandle.h.

◆ NodeHandles

typedef std::vector<NodeHandle> RMF::NodeHandles

Definition at line 49 of file NodeHandle.h.

◆ NodeID

typedef ID<NodeTag> RMF::NodeID

Identify a node within a file.

Examples
benchmark/benchmark_rmf.cpp.

Definition at line 106 of file ID.h.

◆ NodeIDs

typedef std::vector<NodeID> RMF::NodeIDs

List of node ids.

Examples
benchmark/benchmark_rmf.cpp.

Definition at line 113 of file ID.h.

◆ NodeType

typedef Enum<NodeTypeTag> RMF::NodeType

The type for nodes.

See Node Types for a complete list of the possible values.

Definition at line 121 of file Enum.h.

◆ RepresentationType

typedef Enum<RepresentationTypeTag> RMF::RepresentationType

The type for representations used in decorator::Alternatives.

See Representation Types for a complete list of the possible values.

Definition at line 127 of file Enum.h.

◆ String

typedef std::string RMF::String

The type used to store lists of string values.

Definition at line 39 of file types.h.

◆ StringKey

typedef ID<StringTag> RMF::StringKey

Identify a value stored for a node.

Definition at line 41 of file keys.h.

◆ StringKeys

typedef std::vector<StringKey> RMF::StringKeys

A list of identifiers.

Definition at line 41 of file keys.h.

◆ Strings

typedef std::vector<String> RMF::Strings

The type used to store lists of string values.

Definition at line 41 of file types.h.

◆ StringsKey

typedef ID<StringsTag> RMF::StringsKey

Identify a value stored for a node.

Definition at line 41 of file keys.h.

◆ StringsKeys

typedef std::vector<StringsKey> RMF::StringsKeys

A list of identifiers.

Definition at line 41 of file keys.h.

◆ StringsList

typedef std::vector<Strings> RMF::StringsList

The type used to store lists of strings values.

Definition at line 43 of file types.h.

◆ StringsTag

typedef StringsTraits RMF::StringsTag

Definition at line 214 of file traits.h.

◆ StringsTraits

typedef Traits<Strings> RMF::StringsTraits

Definition at line 191 of file traits.h.

◆ StringTag

typedef StringTraits RMF::StringTag

Definition at line 209 of file traits.h.

◆ StringTraits

typedef Traits<String> RMF::StringTraits

Definition at line 188 of file traits.h.

◆ TraverseHelpers

typedef std::vector<TraverseHelper> RMF::TraverseHelpers

Definition at line 26 of file TraverseHelper.h.

◆ Vector3

typedef Vector<3U> RMF::Vector3

A Vector3

Examples
benchmark/benchmark_rmf.cpp.

Definition at line 48 of file types.h.

◆ Vector3Key

typedef ID<Vector3Tag> RMF::Vector3Key

Identify a value stored for a node.

Definition at line 41 of file keys.h.

◆ Vector3Keys

typedef std::vector<Vector3Key> RMF::Vector3Keys

A list of identifiers.

Definition at line 41 of file keys.h.

◆ Vector3s

typedef std::vector<Vector3> RMF::Vector3s

Many Vector3s

Definition at line 52 of file types.h.

◆ Vector3sKey

typedef ID<Vector3sTag> RMF::Vector3sKey

Identify a value stored for a node.

Definition at line 41 of file keys.h.

◆ Vector3sKeys

typedef std::vector<Vector3sKey> RMF::Vector3sKeys

A list of identifiers.

Definition at line 41 of file keys.h.

◆ Vector3sTag

typedef Vector3sTraits RMF::Vector3sTag

Definition at line 215 of file traits.h.

◆ Vector3sTraits

typedef Traits<std::vector<Vector<3> > > RMF::Vector3sTraits

Definition at line 194 of file traits.h.

◆ Vector3Tag

typedef Vector3Traits RMF::Vector3Tag

Definition at line 210 of file traits.h.

◆ Vector3Traits

typedef Traits<Vector<3> > RMF::Vector3Traits

Definition at line 192 of file traits.h.

◆ Vector4

typedef Vector<4U> RMF::Vector4

A Vector3

Definition at line 50 of file types.h.

◆ Vector4Key

typedef ID<Vector4Tag> RMF::Vector4Key

Identify a value stored for a node.

Definition at line 41 of file keys.h.

◆ Vector4Keys

typedef std::vector<Vector4Key> RMF::Vector4Keys

A list of identifiers.

Definition at line 41 of file keys.h.

◆ Vector4s

typedef std::vector<Vector4> RMF::Vector4s

Many Vector4s

Definition at line 54 of file types.h.

◆ Vector4sTag

typedef Vector4sTraits RMF::Vector4sTag

Definition at line 216 of file traits.h.

◆ Vector4sTraits

typedef Traits<std::vector<Vector<4> > > RMF::Vector4sTraits

Definition at line 195 of file traits.h.

◆ Vector4Tag

typedef Vector4Traits RMF::Vector4Tag

Definition at line 211 of file traits.h.

◆ Vector4Traits

typedef Traits<Vector<4> > RMF::Vector4Traits

Definition at line 193 of file traits.h.

◆ VectorDimension

typedef unsigned int RMF::VectorDimension

Definition at line 20 of file types.h.

Function Documentation

◆ clone_file_info()

void RMF::clone_file_info ( FileConstHandle input,
FileHandle output )

Copy the hierarchy structure and set structure from one RMF file to another.

Here is the call graph for this function:

◆ clone_hierarchy()

void RMF::clone_hierarchy ( FileConstHandle input,
FileHandle output )

Copy the hierarchy structure and set structure from one RMF file to another.

Here is the call graph for this function:

◆ clone_loaded_frame()

void RMF::clone_loaded_frame ( FileConstHandle input,
FileHandle output )

Copy the data of a single frame from between two files.

Here is the call graph for this function:

◆ clone_static_frame()

void RMF::clone_static_frame ( FileConstHandle input,
FileHandle output )

Copy the data of a single frame from between two files. Parts missing in the output file will be skipped.

Here is the call graph for this function:

◆ create_rmf_buffer()

FileHandle RMF::create_rmf_buffer ( BufferHandle buffer)
Parameters
bufferThe buffer to place the contents in.
Examples
benchmark/benchmark_rmf.cpp.
Here is the call graph for this function:

◆ create_rmf_file()

FileHandle RMF::create_rmf_file ( std::string path)
Parameters
paththe system path to the rmf file
Exceptions
RMF::IOExceptioncouldn't create file, or unsupported file format
Examples
benchmark/benchmark_rmf.cpp.
Here is the call graph for this function:

◆ get_all_global_coordinates()

void RMF::get_all_global_coordinates ( FileConstHandle & fh,
NodeConstHandle & nh,
PyObject * coord )

This will traverse the subset of the RMF file rooted at the given node in a depth first manner and put the XYZ coordinates for all appropriate nodes into the provided NumPy array, which must be an N*3 float array where N is the number of XYZ particles. The coordinates are global, i.e. they are transformed by any parent ReferenceFrame nodes.

This function is primarily intended to extract trajectory frames for visualization packages such as ChimeraX. It is only available to Python and if RMF is built with NumPy support.

Here is the call graph for this function:

◆ get_as_node_name()

std::string RMF::get_as_node_name ( std::string input)

Node and key names have to obey certain rules, such as no quotes in the name.

Here is the call graph for this function:

◆ get_bounding_box()

std::array< RMF::Vector3, 2 > RMF::get_bounding_box ( NodeConstHandle root)

Return a lower bound/upper bound pair that bounds the data stored in the tree.

Here is the call graph for this function:

◆ get_diameter()

float RMF::get_diameter ( NodeConstHandle root)

Return the diameter of the system. Unlike bounding box, this one can be called from python.

Here is the call graph for this function:

◆ get_equal_current_values()

bool RMF::get_equal_current_values ( FileConstHandle input,
FileConstHandle out )

Return true of the two have the same values in the current frame.

Here is the call graph for this function:

◆ get_equal_static_values()

bool RMF::get_equal_static_values ( FileConstHandle input,
FileConstHandle out )

Return true if the two have the same values in the static frame.

Here is the call graph for this function:

◆ get_equal_structure()

bool RMF::get_equal_structure ( FileConstHandle input,
FileConstHandle output,
bool print_diff = false )

Return true of the two have the same structure.

Here is the call graph for this function:

◆ get_is_valid_key_name()

bool RMF::get_is_valid_key_name ( std::string name)
Here is the call graph for this function:

◆ get_is_valid_node_name()

bool RMF::get_is_valid_node_name ( std::string name)
Here is the call graph for this function:

◆ get_message()

std::string RMF::get_message ( const Exception & e)

Use this instead of the more standard what() to get the message as what() presents issues for memory management with dynamically generated messages.

Here is the call graph for this function:

◆ get_signature_string()

std::string RMF::get_signature_string ( FileConstHandle file)

This string can be saved and compared against the string generated with future versions of the library to make sure that the old files parse reasonably well. The strings are diffable.

Here is the call graph for this function:

◆ hash_value() [1/5]

std::size_t RMF::hash_value ( const BufferConstHandle & t)

Definition at line 72 of file BufferConstHandle.h.

Here is the call graph for this function:

◆ hash_value() [2/5]

template<class TagT>
std::size_t RMF::hash_value ( const Enum< TagT > & t)

Definition at line 92 of file Enum.h.

Here is the call graph for this function:

◆ hash_value() [3/5]

std::size_t RMF::hash_value ( const FileConstHandle & t)

Definition at line 399 of file FileConstHandle.h.

Here is the call graph for this function:

◆ hash_value() [4/5]

template<class TagT>
std::size_t RMF::hash_value ( const ID< TagT > & t)

Definition at line 101 of file ID.h.

Here is the call graph for this function:

◆ hash_value() [5/5]

std::size_t RMF::hash_value ( const NodeConstHandle & t)

Definition at line 214 of file NodeConstHandle.h.

Here is the call graph for this function:

◆ open_rmf_buffer_read_only()

FileConstHandle RMF::open_rmf_buffer_read_only ( BufferConstHandle buffer)

Open an RMF from a buffer in read-only mode.

Exceptions
RMF::IOExceptioncouldn't open file, or unsupported file format
Examples
benchmark/benchmark_rmf.cpp.
Here is the call graph for this function:

◆ open_rmf_file_read_only()

FileConstHandle RMF::open_rmf_file_read_only ( std::string path)

Open an RMF from a file system path in read-only mode.

Parameters
paththe system path to the rmf file
Exceptions
RMF::IOExceptioncouldn't open file, or unsupported file format
Examples
benchmark/benchmark_rmf.cpp.
Here is the call graph for this function:

◆ set_log_level()

void RMF::set_log_level ( std::string level)

Set the log level from a string. Supported values are:

  • Trace
  • Info
  • Warn
  • Error
  • Off

Log4CXX is required for logging to be supported.

Examples
benchmark/benchmark_rmf.cpp.
Here is the call graph for this function:

◆ show_frames()

void RMF::show_frames ( FileConstHandle fh,
std::ostream & out = std::cout )

Show the frame hierarchy rather than the node hierarchy.

Here is the call graph for this function:

◆ show_hierarchy()

void RMF::show_hierarchy ( NodeConstHandle root,
std::ostream & out )

Print out just the node names and types.

Here is the call graph for this function:

◆ show_hierarchy_with_decorators()

void RMF::show_hierarchy_with_decorators ( NodeConstHandle root,
bool verbose = false,
std::ostream & out = std::cout )

Print out the list of decorators that can be used to decorate each node based on the current attributes in the loaded frame..

Here is the call graph for this function:

◆ show_hierarchy_with_values()

void RMF::show_hierarchy_with_values ( NodeConstHandle root,
std::ostream & out )

Print out all attributes for each node for the current frame.

Here is the call graph for this function:

◆ show_info()

void RMF::show_info ( RMF::FileConstHandle rh,
std::ostream & out = std::cout )

Show various statistics about the file such as attributes and how often they are used.

Here is the call graph for this function:

◆ test_throw_exception()

void RMF::test_throw_exception ( )

This function simply throws an exception. It is here for testing.

Here is the call graph for this function:

◆ validate()

void RMF::validate ( FileConstHandle fh)
Exceptions
exceptionif it is not valid and log any errors encountered.

Checks invariants, such as all representation leaves having coordinates and radii.

Here is the call graph for this function:

Variable Documentation

◆ ALIAS

const NodeType RMF::ALIAS
extern

Store a reference to another node. This node should be an alias decorator node and have no other data, at least for now. Aliases should be thought of as simply referencing existing objects in the scene, not creating new objects.

◆ ALL_FRAMES

const FrameID RMF::ALL_FRAMES = FrameID(-1, FrameID::SpecialTag())
static

A constant used to denote that the particular operation refers to all frames in the file.

Definition at line 20 of file constants.h.

◆ BOND

const NodeType RMF::BOND
extern

These are mostly for display purposes e.g. to show a wireframe view of the molecule.

◆ CUSTOM

const NodeType RMF::CUSTOM
extern

Programs can use these keys to store any extra data they want to put into the file.

◆ FEATURE

const NodeType RMF::FEATURE
extern

For example, the particles involved in scoring functions and their score can be encoded as feature nodes.

◆ FRAME

const FrameType RMF::FRAME
extern

◆ GAUSSIAN_PARTICLE

const RepresentationType RMF::GAUSSIAN_PARTICLE
extern

Represent the structure with at set of decorator::GaussianParticle nodes.

◆ ORGANIZATIONAL

const NodeType RMF::ORGANIZATIONAL
extern

This includes nodes that are just RMF::ReferenceFrame nodes.

◆ PARTICLE

const RepresentationType RMF::PARTICLE
extern

Representation via decorator::Particle nodes, the default.

◆ REPRESENTATION

const NodeType RMF::REPRESENTATION
extern