ODIN
|
#include <tjvallist.h>
Public Member Functions | |
ValList (const STD_string &object_label="unnamedValList", unsigned int repetitions=1) | |
ValList (T value) | |
ValList (const ValList< T > &vl) | |
ValList & | operator= (const ValList< T > &vl) |
ValList & | set_value (T value) |
ValList & | add_sublist (const ValList< T > &vl) |
ValList & | multiply_repetitions (unsigned int reptimes) |
STD_vector< T > | get_values_flat () const |
STD_vector< T > | get_elements_flat () const |
bool | operator== (const ValList< T > &vl) const |
bool | operator< (const ValList< T > &vl) const |
T | operator[] (unsigned int i) const |
unsigned int | size () const |
STD_string | printvallist () const |
bool | parsevallist (const STD_string &str) |
STD_ostream & | print2stream (STD_ostream &os) const |
void | clear () |
Public Member Functions inherited from Labeled | |
Labeled (const STD_string &label="unnamed") | |
Labeled & | set_label (const STD_string &label) |
const STD_string & | get_label () const |
Labeled & | operator= (const Labeled &l) |
This class holds nested lists (tree) of values. Each node can contain a single value, or a list of other nested lists. In addition, it contains a repetition counter for this node. Its main purpose is to retrieve value lists (e.g. frequency lists, delay lists, reco indices) from the sequence tree.
Definition at line 36 of file tjvallist.h.
ValList< T >::ValList | ( | const STD_string & | object_label = "unnamedValList< T >" , |
unsigned int | repetitions = 1 |
||
) |
Empty node with given label and repetitions
Append another node to this
void ValList< T >::clear | ( | ) |
Clears the value list
STD_vector<T> ValList< T >::get_elements_flat | ( | ) | const |
Returns unrolled values of nested list for one repetition of this list
STD_vector<T> ValList< T >::get_values_flat | ( | ) | const |
Returns unrolled values of nested list
Multiply number of repetitions of this node by 'reptimes'
Definition at line 104 of file tjvallist.h.
Comparison operator
T ValList< T >::operator[] | ( | unsigned int | i | ) | const |
Acess i'th value in the nested list
bool ValList< T >::parsevallist | ( | const STD_string & | str | ) |
Parses list from string
STD_ostream& ValList< T >::print2stream | ( | STD_ostream & | os | ) | const |
Prints value list to stream
STD_string ValList< T >::printvallist | ( | ) | const |
Serializes list to a string
|
inline |
Returns number of values of one repetition of this node
Returns number of values
Definition at line 140 of file tjvallist.h.