Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Forward iterator associated to an angular range. More...
#include <bayeux/geomtools/angular_range.h>
Public Member Functions | |
iterator (const angular_range &ar_, unsigned int nsteps_=36) | |
unsigned int | get_nsamples () const |
int | get_current_step () const |
Return the current step index. More... | |
double | get_current_angle () const |
Return the current angle value. More... | |
bool | is_at_first () const |
Check if the iterator is positioned at the first sample. More... | |
bool | is_at_last () const |
Check if the iterator is positioned at the last sample. More... | |
bool | is_finished () const |
Check if the iterator is finished (past-the-end) More... | |
void | set_first () |
Set the iterator at first position. More... | |
void | set_last () |
Set the iterator at last position. More... | |
void | set_finished () |
Set the iterator at finished (past-the-end) More... | |
void | step () |
Increment the iterator position by one unit. More... | |
void | tree_dump (std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const |
Smart print. More... | |
double | operator * () const |
iterator | operator++ () |
Increment operator. More... | |
bool | operator! () const |
Check the validity of the iterator. More... | |
Public Member Functions inherited from datatools::i_tree_dumpable | |
i_tree_dumpable () | |
Constructor. More... | |
virtual | ~i_tree_dumpable () |
Destructor. More... | |
virtual void | print_tree (std::ostream &out_=std::clog, const boost::property_tree::ptree &options_=empty_options()) const |
Main new interface method for printing. More... | |
void | print_tree_json (std::ostream &out_=std::clog, const std::string &json_options_="") const |
Printing with jsonized options. More... | |
void | print_tree_json (std::ostream &out_=std::clog, const char *json_options_=nullptr) const |
Printing with jsonized options. More... | |
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 |
Additional Inherited Members | |
Public Types inherited from datatools::i_tree_dumpable | |
enum | ostream_type { OSTREAM_COUT = 1, OSTREAM_CERR = 2, OSTREAM_CLOG = 3 } |
Enumeration for standard output streams. More... | |
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_) |
Forward iterator associated to an angular range.
geomtools::angular_range::iterator::iterator | ( | const angular_range & | ar_, |
unsigned int | nsteps_ = 36 |
||
) |
Default constructor
double geomtools::angular_range::iterator::get_current_angle | ( | ) | const |
Return the current angle value.
int geomtools::angular_range::iterator::get_current_step | ( | ) | const |
Return the current step index.
unsigned int geomtools::angular_range::iterator::get_nsamples | ( | ) | const |
Return the number of angle samples (number of steps + 1)
bool geomtools::angular_range::iterator::is_at_first | ( | ) | const |
Check if the iterator is positioned at the first sample.
bool geomtools::angular_range::iterator::is_at_last | ( | ) | const |
Check if the iterator is positioned at the last sample.
bool geomtools::angular_range::iterator::is_finished | ( | ) | const |
Check if the iterator is finished (past-the-end)
double geomtools::angular_range::iterator::operator * | ( | ) | const |
Indirection operator
bool geomtools::angular_range::iterator::operator! | ( | ) | const |
Check the validity of the iterator.
iterator geomtools::angular_range::iterator::operator++ | ( | ) |
Increment operator.
void geomtools::angular_range::iterator::set_finished | ( | ) |
Set the iterator at finished (past-the-end)
void geomtools::angular_range::iterator::set_first | ( | ) |
Set the iterator at first position.
void geomtools::angular_range::iterator::set_last | ( | ) |
Set the iterator at last position.
void geomtools::angular_range::iterator::step | ( | ) |
Increment the iterator position by one unit.
|
virtual |
Smart print.
Reimplemented from datatools::i_tree_dumpable.