Falaise  4.0.1
SuperNEMO Software Toolkit
Public Types | Public Member Functions | List of all members
snemo::datamodel::tracker_trajectory_data Class Reference

SuperNEMO Tracker trajectory data model. More...

#include <falaise/snemo/datamodels/tracker_trajectory_data.h>

Inheritance diagram for snemo::datamodel::tracker_trajectory_data:
datatools::i_serializable datatools::i_tree_dumpable datatools::i_clear

Public Types

typedef std::vector< tracker_trajectory_solution::handle_typesolution_col_type
 Collection of handles on tracker trajectory solutions. More...
 
- Public Types inherited from datatools::i_tree_dumpable
enum  ostream_type
 

Public Member Functions

 tracker_trajectory_data ()
 Default constructor. More...
 
virtual ~tracker_trajectory_data ()
 Destructor: More...
 
bool has_solutions () const
 Check if there are some trajectory solutions. More...
 
size_t get_number_of_solutions () const
 Returns the number of solutions. More...
 
void add_solution (const tracker_trajectory_solution::handle_type &handle_, bool default_solution_=false)
 Add a trajectory solution. More...
 
const tracker_trajectory_solutionget_solution (int i_) const
 Return a non mutable reference to a trajectory solution by index. More...
 
void invalidate_solutions ()
 Reset the trajectory solutions. More...
 
bool has_default_solution () const
 Check if there is some default trajectory solution. More...
 
const tracker_trajectory_data::solution_col_typeget_solutions () const
 
tracker_trajectory_data::solution_col_typegrab_solutions ()
 
const tracker_trajectory_solutionget_default_solution () const
 Return a non mutable reference to the default trajectory solution is any. More...
 
void invalidate_default_solution ()
 Reset the default trajectory solution is any. More...
 
void set_default_solution (int index_)
 Set the default trajectory solution. More...
 
void reset ()
 Reset the internals. More...
 
const datatools::propertiesget_auxiliaries () const
 Return a mutable reference on the container of auxiliary properties. More...
 
datatools::propertiesgrab_auxiliaries ()
 Return a non mutable reference on the container of auxiliary properties. More...
 
virtual void clear ()
 Clear the object. More...
 
virtual void tree_dump (std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
 Smart print. More...
 
- Public Member Functions inherited from datatools::i_serializable
 i_serializable ()
 
virtual ~i_serializable ()
 
virtual const std::string & get_serial_tag () const=0
 
- Public Member Functions inherited from datatools::i_tree_dumpable
 i_tree_dumpable ()
 
virtual ~i_tree_dumpable ()
 
virtual void print_tree (std::ostream &out_=std::clog, const boost::property_tree::ptree &options_=empty_options()) const
 
void print_tree_json (std::ostream &out_=std::clog, const std::string &json_options_="") const
 
void print_tree_json (std::ostream &out_=std::clog, const char *json_options_=nullptr) const
 
void tree_dump_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="", const bool inherit_=false) const
 
void tree_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="") const
 
void smart_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="") const
 
- Public Member Functions inherited from datatools::i_clear
virtual ~i_clear ()
 

Additional Inherited Members

- Static Public Member Functions inherited from datatools::i_tree_dumpable
static const boost::property_tree::ptree & empty_options ()
 
static boost::property_tree::ptree make_base_print_options (const std::string &title_, const std::string &indent_="", const bool inherit_=false)
 
static std::ostream & last_skip_tag (std::ostream &out_)
 
static std::ostream & skip_tag (std::ostream &out_)
 
static std::ostream & last_tag (std::ostream &out_)
 
static std::ostream & tag (std::ostream &out_)
 
- Public Attributes inherited from datatools::i_tree_dumpable
 OSTREAM_COUT
 
 OSTREAM_CERR
 
 OSTREAM_CLOG
 

Detailed Description

SuperNEMO Tracker trajectory data model.

Member Typedef Documentation

◆ solution_col_type

Collection of handles on tracker trajectory solutions.

Constructor & Destructor Documentation

◆ tracker_trajectory_data()

snemo::datamodel::tracker_trajectory_data::tracker_trajectory_data ( )

Default constructor.

◆ ~tracker_trajectory_data()

virtual snemo::datamodel::tracker_trajectory_data::~tracker_trajectory_data ( )
virtual

Destructor:

Member Function Documentation

◆ add_solution()

void snemo::datamodel::tracker_trajectory_data::add_solution ( const tracker_trajectory_solution::handle_type handle_,
bool  default_solution_ = false 
)

Add a trajectory solution.

◆ clear()

virtual void snemo::datamodel::tracker_trajectory_data::clear ( )
virtual

Clear the object.

Implements datatools::i_clear.

◆ get_auxiliaries()

const datatools::properties& snemo::datamodel::tracker_trajectory_data::get_auxiliaries ( ) const

Return a mutable reference on the container of auxiliary properties.

◆ get_default_solution()

const tracker_trajectory_solution& snemo::datamodel::tracker_trajectory_data::get_default_solution ( ) const

Return a non mutable reference to the default trajectory solution is any.

◆ get_number_of_solutions()

size_t snemo::datamodel::tracker_trajectory_data::get_number_of_solutions ( ) const

Returns the number of solutions.

◆ get_solution()

const tracker_trajectory_solution& snemo::datamodel::tracker_trajectory_data::get_solution ( int  i_) const

Return a non mutable reference to a trajectory solution by index.

◆ get_solutions()

const tracker_trajectory_data::solution_col_type& snemo::datamodel::tracker_trajectory_data::get_solutions ( ) const

◆ grab_auxiliaries()

datatools::properties& snemo::datamodel::tracker_trajectory_data::grab_auxiliaries ( )

Return a non mutable reference on the container of auxiliary properties.

◆ grab_solutions()

tracker_trajectory_data::solution_col_type& snemo::datamodel::tracker_trajectory_data::grab_solutions ( )

◆ has_default_solution()

bool snemo::datamodel::tracker_trajectory_data::has_default_solution ( ) const

Check if there is some default trajectory solution.

◆ has_solutions()

bool snemo::datamodel::tracker_trajectory_data::has_solutions ( ) const

Check if there are some trajectory solutions.

◆ invalidate_default_solution()

void snemo::datamodel::tracker_trajectory_data::invalidate_default_solution ( )

Reset the default trajectory solution is any.

◆ invalidate_solutions()

void snemo::datamodel::tracker_trajectory_data::invalidate_solutions ( )

Reset the trajectory solutions.

◆ reset()

void snemo::datamodel::tracker_trajectory_data::reset ( )

Reset the internals.

◆ set_default_solution()

void snemo::datamodel::tracker_trajectory_data::set_default_solution ( int  index_)

Set the default trajectory solution.

◆ tree_dump()

virtual void snemo::datamodel::tracker_trajectory_data::tree_dump ( std::ostream &  out_ = std::clog,
const std::string &  title_ = "",
const std::string &  indent_ = "",
bool  inherit_ = false 
) const
virtual

Smart print.

Reimplemented from datatools::i_tree_dumpable.


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