Clipper
clipper::CResolution Class Reference

Resolution container. More...

#include <container_types.h>

Inheritance diagram for clipper::CResolution:
clipper::Container clipper::Resolution

Public Member Functions

 CResolution (const String name="", const Resolution &resol=NullResolution)
 constructor: make null object or top object in tree
 CResolution (Container &parent, const String name="", const Resolution &resol=NullResolution)
 constructor: make child object
void init (const Resolution &resolution_)
 initialiser: from Resolution
Public Member Functions inherited from clipper::Container
 Container (const String name="")
 constructor: make null object or top object in a tree
 Container (Container &parent, const String &path)
 constructor: from any other member and a relative path
virtual void update ()
 update: hierarchical content update function
String path () const
 get the path of this tree object
String name () const
 get the name of this tree object
void set_name (const String &name)
 set the name of this tree object
bool is_destroyed_with_parent () const
 is this object to be destroyed when parent is destroyed?
void set_destroyed_with_parent (const bool d=true)
 set this object to be destroyed when parent is destroyed
void move (const String &path)
 'move' method moves this object to somewhere else in the hierarchy
bool has_parent () const
 test if this object has a parent
const Containerparent () const
 get the parent of this object
Containerparent ()
 get the parent of this object
int num_children () const
 return number of children
const Containerchild (const int &i) const
 get the i'th child of this object
Containerchild (const int &i)
 get the i'th child of this object
const Containerultimate_parent () const
 get the ultimate parent of this object - the top of the tree
Containerultimate_parent ()
 get the ultimate parent of this object - the top of the tree
Containerparent_ptr ()
 get the parent of this object (NULL on fail)
template<class T>
T * parent_of_type_ptr ()
 search up the tree for a parent of the specified type (NULL on fail)
Containerfind_path_ptr (const String &path)
 find an object using a directory-like path (NULL on fail)
virtual ~Container ()
 destructor: virtual
void debug ()
Public Member Functions inherited from clipper::Resolution
 Resolution ()
 null constructor
 Resolution (const ftype &resol_)
 constructor: from ftype
void init (const ftype &resol_)
 initialiser: from ftype
const ftypelimit () const
 get resolution limit
ftype invresolsq_limit () const
 get invresolsq limit
bool is_null () const
 test if value has been initialised

Detailed Description

Resolution container.

CResolution: This has a name and a resolution. It overrides the base resolution for any objects below it.

Member Function Documentation

◆ init()

void clipper::CResolution::init ( const Resolution & resolution_)

initialiser: from Resolution

The object is initialised, and children are updated.

Parameters
resolution_The value to give to the contained object.

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