1 #ifndef PhysicsTools_MVAComputer_Variable_h 2 #define PhysicsTools_MVAComputer_Variable_h 57 name(name), value(value) {}
83 typedef std::vector<Value>
_Data;
97 inline ValueList(
const _Data &orig) : data_(orig) {}
101 { data_ = orig.
data_;
return *
this; }
107 { data_.push_back(
Value(
id, value)); }
110 { data_.push_back(value); }
112 inline size_type
size()
const {
return data_.size(); }
113 bool empty()
const {
return data_.empty(); }
115 inline const_iterator
begin()
const {
return data_.begin(); }
116 iterator
begin() {
return data_.begin(); }
118 inline const_iterator
end()
const {
return data_.end(); }
119 iterator
end() {
return data_.end(); }
121 inline const _Data &
values()
const {
return data_; }
124 inline const_reference
front()
const {
return *data_.begin(); }
125 reference
front() {
return *data_.begin(); }
127 inline const_reference
back()
const {
return *data_.rbegin(); }
128 reference
back() {
return *data_.rbegin(); }
130 inline const_pointer
data()
const {
return &front(); }
131 pointer
data() {
return &front(); }
156 #endif // PhysicsTools_MVAComputer_Variable_h
Container::value_type value_type